on 2025 Mar 11 3:26 PM
Hi
In below code is it possible to set default printer & path of Pdf file to be saved
oCmpSrv = oCompany.GetCompanyService();
oReportLayoutService = (ReportLayoutsService)oCmpSrv.GetBusinessService(SAPbobsCOM.ServiceTypes.ReportLayoutsService);
oPrintParam = (ReportLayoutPrintParams)oReportLayoutService.GetDataInterface(SAPbobsCOM.ReportLayoutsServiceDataInterfaces.rlsdiReportLayoutPrintParams);
oPrintParam.LayoutCode = "INV20005";
oPrintParam.DocEntry = 34681;
oReportLayoutService.Print(oPrintParam);
Thanks
Request clarification before answering.
Hi ramco1917,
As DI API does not appear to have the Printer Setting functionality, there is a workaround that will require some manual work to set the desired printer in the layout (rpt) file itself.
These are the steps to apply the workaround:
Kindly help to test the above mentioned steps and share whether it helps for your cause or not.
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
11 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.