SAP Knowledge Base Article - Public

1391760 - There is no "Printer" button in the Page Setup dialog when using the RDC on the Windows Vista OS

Symptom

There is no "Printer" button on the Page Setup dialog when using the Report Designer Component (RDC) on the Windows Vista operating system (OS).

Reproducing the Issue

  1. Create a Visual Basic 6 (VB6) application that uses the RDC from Crystal Reports XI Release 2.
  2. Use the PrinterSetup or PrinterSetupEx method off of the Report Object.
  3. Deploy the application to a Vista machine using the RDC merge modules.
  4. Call the Page Setup dialog with the PrinterSetup or PrinterSetupEx method in code.
  5. The "Printer" button will not be seen on the Page Setup dialog.

This can also be demonstrated with other applications installed on a Vista machine.

  1. Open a document in any application that can print.
  2. Go to File > Page Setup
  3. There is no "Printer" button available on the Page Setup dialog

Environment:

Crystal Reports XI R2 (v11.5)
Report Designer Component (RDC)
Windows Vista OS

Cause

This is the result of a change in functionality with the Vista operating system.

  • Microsoft has made a change to the common application programming interface (API) as used by Report Designer Component (RDC) for the Page Setup dialog window.
  • It is no longer possible to change printer selection directly through the Page Setup dialog.
  • Other applications that also use this API have the same behavior.
    • See for example Internet Explorer, Notepad, or any other application.

Resolution

To work around this change in the Vista OS you can adjust the code in your VB6 RDC application to use the .PrintOut method of the Report object. Set the property of the .PrintOut method to True in order to force the dialog to display.

In other applications use the "Print" button or the File > Print selection in order to select the printer.

The issue has been identified in Crystal Reports XI Release 2 and logged under Problem Report ID ADAPT01075402. There is currently no target Fix Pack or Service Pack scheduled for this issue.

See Also

See Notes:

  • 1234091 - There is no "Printer" button in the Page Setup dialog when running DesktopIntelligence on a Windows Vista client
  • 1229692 - 'Printer' button not available for Crystal Reports XI R2 on Windows Vista

Keywords

Printer button page setup dialog dialogue RDC designer Crystal Reports XI R2 CR 2008 Vista PrinterSetup PrinterSetupEx Report Designer Component PrintOut ADAPT01075402 01075402 1075402 , KBA , BI-DEV , Business Intelligence Software Development Kits (SDKs) , Problem

Product

SAP Crystal Reports XI R2