Skip to Content
1
Sep 02, 2019 at 04:12 PM

How to print a Sap B1 CR report layout on a custom printer

1567 Views Last edit Sep 05, 2019 at 02:07 PM 2 rev

Dear Experts,
I'm using Sap Business One version 9.3 PL10 (sql/Hana) and I'm trying to print Crystal Reports Document on different printers using DI Api sdk.

I can print a cr report layout, using SAPbobsCOM.ReportLayoutsService and SAPbobsCOM.ReportLayoutPrintParams.

The problem is that the default windows printer is always used even if, in sap b1, another printer is associated with the report layout.

Is it possible to set a custom printer before printing report layout (oReportLayoutService.Print(oReportPrintParams) ) ?

Thank you in advance.

Kind regard,

Moreno