Hello All,
I need to get the list of all available printers via X++ code? so that I can add it as a lookup for an ssrs report so that it lets users select printers they want
Please suggest me how to do it..
Hello All,
I need to get the list of all available printers via X++ code? so that I can add it as a lookup for an ssrs report so that it lets users select printers they want
Please suggest me how to do it..
static void AvailablePrinters(Args _args)
{
Microsoft.Dynamics.AX.Framework.Reporting.Shared.PrinterHelper printerHelper;
System.Collections.ArrayList names;
System.Collections.IEnumerator enumerator;
str name;
// BP Deviation documented
printerHelper = new Microsoft.Dynamics.AX.Framework.Reporting.Shared.PrinterHelper();
names = printerHelper.get_PrinterNames();
if (names != null)
{
enumerator = names.GetEnumerator();
while (enumerator.MoveNext())
{
name = enumerator.get_Current();
info(name);
}
}
}
I am just looking for a way to get the list of all available printers via x++
Hi Martin,
Its about D365 current version
Which version of AX is this question about?
Hi Gunjan,
Thanks your reply.
My requirement is that I ll prompting a dialog before the report is sent to printers. SO I need to add drop down in dialog where user should have all the printers
Hi,
Could you please explain your requirement? You can always show the report dialog and choose the print destination where you will get a list of printers available.
André Arnaud de Cal...
292,884
Super User 2025 Season 1
Martin Dráb
231,760
Most Valuable Professional
nmaenpaa
101,156
Moderator