1 static void callerreport_printsetting(Args _args) 2 { 3 LedgerJournalController controller = new LedgerJournalController (); 4 LedgerJournalTable ledgerjournaltable; 5 SRSPrintDestinationSettings settings; 6 Args args = new Args(); 7 8 select firstonly ledgerjournaltable 9 order by createddatetime desc; 10 controller.parmReportName(ssrsreportstr(LedgerJournal,Report)); 11 controller.parmArgs(args); 12 13 settings = controller.parmReportContract().parmPrintSettings(); 14 settings.printMudiumType(SRSPrintMediumType::File); 15 settings.fileFormat(SRSReportFileFormat::PDF); 16 settings.fileName(@‘D\\:TEST.pdf‘); 17 if(controller.prompt()) 18 { 19 controller.run(); 20 } 21 22 }
时间: 2024-10-18 00:30:40