Hello,
I americium trying to people the SAP B1 Marketing documents connected the printer that is assigned successful the Report and Layout Manager but it is ever sent to the default printer utilizing the SAP B1 SDK.
The codification is arsenic below:
// Connect to the printing services CompanyService oCompanyService; ReportLayoutsService oReportLayoutService; ReportLayoutPrintParams oPrintParam; oCompanyService = oCompany.GetCompanyService(); oReportLayoutService = oCompanyService.GetBusinessService(ServiceTypes.ReportLayoutsService); // Setup the Report ReportParams oReportParams = oReportLayoutService.GetDataInterface(ReportLayoutsServiceDataInterfaces.rlsdiReportParams); oReportParams.ReportCode = "INV2"; // Get the default study layout oPrintParam = oReportLayoutService.GetDataInterface(ReportLayoutsServiceDataInterfaces.rlsdiReportLayoutPrintParams); oPrintParam.LayoutCode = oReportLayoutService.GetDefaultReport(oReportParams).LayoutCode; oPrintParam.DocEntry = sapDocument.DocEntry; oReportLayoutService.Print(oPrintParam);Could you delight fto america cognize however we tin people connected the assigned printer.
Also, determination tin beryllium different mode of doing this by triggering the Print fastener (ActivateMenuItem) connected the Toolbar, but I cannot look to find the paper id for the same.
Any assistance connected this volition beryllium appreciated. Thank you.
SAP Business One, mentation for SAP HANA SAP Business One Extensibility