Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3510

how to select printer in oReportLayoutService.Print

$
0
0

hi all i am using this code fro print invoice but all time print in Default printer. i need change to other printer  how to can make it

 if (con() == false)                return;            SAPbobsCOM.ReportLayoutsService oReportLayoutService = (SAPbobsCOM.ReportLayoutsService)Vcmp.GetCompanyService().GetBusinessService(SAPbobsCOM.ServiceTypes.ReportLayoutsService);            SAPbobsCOM.ReportLayoutPrintParams oReporPrintParams = oReportLayoutService.GetDataInterface(SAPbobsCOM.ReportLayoutsServiceDataInterfaces.rlsdiReportLayoutPrintParams);            SAPbobsCOM.ReportParams oReportParam = oReportLayoutService.GetDataInterface(SAPbobsCOM.ReportLayoutsServiceDataInterfaces.rlsdiReportParams);            oReportParam.ReportCode = "INV2";            SAPbobsCOM.DefaultReportParams oReportParaDefault = oReportLayoutService.GetDefaultReport(oReportParam);            oReporPrintParams.LayoutCode = "INV20012";// oReportParaDefault.LayoutCode;            oReporPrintParams.DocEntry = num;                      oReportLayoutService.Print(oReporPrintParams); 

Viewing all articles
Browse latest Browse all 3510

Trending Articles



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