SAP Knowledge Base Article - Public

1920452 - ENH: Engine has API - CopyTo/CopyFrom - RAS now has this same ability

Symptom

To be able to make extensive changes while printing a simplified method using the ClientDocument was to use the CopyTo and CopyFrom API's to pass the printer info from the Report to the Windows Printer settings and from it.

Environment

Crystal Reports Developer for Visual Studio

Resolution

RAS now has this same ability using the new API's:

  • printOptions.CopyFromPrinterSettingsAndPageSettings(eromPrinterSettings, eromPageSettings);
  • printOptions.CopyToPrinterSettingsAndPageSettings(eromPrinterSettings, eromPageSettings);

See attached sample application on how to use.

Keywords

RAS, CopyTo, CopyFrom, crystal reports for visual studio, crforvs , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio

Attachments

RASCopyTest.rar