Hi Everyone,
Using below code I am able to save PDF copy of my SSRS report.
But I want to get direct print of my PDF copy without saving it to directory.
What change shall I make in main method of Controller class?
public static void main(Args _args)
{
#define.ReportDesign("CHI_GenerateRecLabelMobReport.Report")
CHI_GenerateRecLabelMobController generateRecLabelMobController;
//
SRSPrintDestinationSettings printerSettings;
//
generateRecLabelMobController = new CHI_GenerateRecLabelMobController();
generateRecLabelMobController.parmReportName(#ReportDesign);
generateRecLabelMobController.parmArgs(_args);
generateRecLabelMobController.parmShowDialog(false);
//link the printer settings to the controller
printerSettings = generateRecLabelMobController.parmReportContract().parmPrintSettings();
//print to pdf and always overwrite if the file exists
printerSettings.printMediumType(SRSPrintMediumType::File);
printerSettings.fileFormat(SRSReportFileFormat::PDF);
printerSettings.overwriteFile(true);
printerSettings.fileName(@"C:\\test.pdf");
//run & save the report
generateRecLabelMobController.startOperation();
}
Thank you on advance.