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