Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Print SSRS report directly to the printer

$
0
0

I have been trying to figure out how to set the printer name so that it will show up in the Print destination dialog.  I am using the this code to set the medium type and the printer name

xPrintSettings.printMediumType(SRSPrintMediumType::Printer);

xPrintSettings.printerName(strFmt('@"%1"',xPrinterName));

It picks up the Print Medium type but will not pick up the printer name when I do a SrsReportRunUtil::showSettingsDialog(xPrintSettings).  Eventually I will want to print  directly to the printer, but I am trying to make sure it is picking up the printer name correctly first.  Currently it appears to picking up the default printer which in my case is fax.  Can some one please give me an example of how to set the printer name?

Thank you


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>