SAP Knowledge Base Article - Public

2203807 - Schedule to Print always prints to the default printer

Symptom

When using a custom SDK application to schedule a crystal report to printer, the job always prints to the default printer - even if the job status states it printed to the specified custom printer.

Environment

  • SAP BusinessObjects Business Intelligence platform 4.0
  • SAP BusinessObjects Business Intelligence platform 4.1

Cause

This issue occurs due to changes in how Crystal Reports are scheduled going from BOE XI R3 to BI 4

Resolution

BI4 requires the setting of an additional option in order to specify a custom printer.  Specifically the page layout needs to be set.

e.g.

IReportPrinterOptions printerOptions = oReport.getReportPrinterOptions();

printerOptions.setEnabled(true);

printerOptions.setPrinterName("Canon Inkjet iP100 series");

printerOptions.setPageLayout(3);

The page layout options come from:

com.crystaldecisions.sdk.plugin.desktop.common.IReportPrinterOptions.CeReportLayout
public static final int  CUSTOM_SETTING  4
public static final int  DEFAULT_PRINTER_SETTNG  1
public static final int  NO_PRINTER_SETTING  2
public static final int  REPORT_FILE_SETTING  0
public static final int  USE_SPECIFIED_PRINTER_SETTING  3

Keywords

printing sdk default schedule printoptions sched layout pagelayout , KBA , BI-DEV-JAV , BI Software Development Kits (SDKs) - Java , Problem

Product

SAP Crystal Server 2013