SAP Knowledge Base Article - Preview

2163438 - How do I make Crystal Reports for Visual Studio print my reports?

Symptom

Over the years there have been various SDK's based on various platforms and the current one uses the Framework System.Drawing.Printing

In a Windows Desktop application and Crystals Winform viewers Print report Button default is using PrintToPrinter API, same one that can be used in code.

There are limitations within this method so a Report Application Server ( RAS ) API called PrintOutputController can be used to allow more customized printer selections and features.

To expand on the Crystal Reports Printing Doc two SAP employee's have created here is the "how to" when printing through our .NET SDK.

https://blogs.sap.com/2019/05/31/printing-crystal-reports/ ( Update - Printing labels wiki has been added )

This document will also link to this KBA to get the sample application I have created to show you what is happening within CR for .NET.

For now I have noted most of the subroutines so it should be self explanary but look for the updated Document for detailed info.

Also notice you can get the history of your reports through the drop down list. This is required because some of these updated printer properties require the reports to be saved in CR Designer or in CR for VS Designer.


Read more...

Environment

  • Crystal Reports for Visual Studio SP 13 ( requires SP 14 so a slight modification is required before compiling - SP 14 should be out end of June 2015 )

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio

Keywords

Crystal Reports, Crystal reports for Visual Studio, P2P, POC, PrintToPrinter, PrintOutputController, .NET, Winform Viewer , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.