SAP Knowledge Base Article - Public

1918143 - Access Violation when using the PrintOutputController

Symptom

  • Report contains a tab character in a text field object.
  • When printing the report using the PrintOutputController the error is thrown:

 "Access Violation" - "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

  • The following errors may also be thrown:

“The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))”

"External component has thrown an exception." 
"At CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.PrintReport(PrintReportOptions options)"

Environment

  • SAP Crystal Reports, developer version for Microsoft Visual Studio - Service Pack 5 or 6
  • Microsoft Visual Studio 2010 / 2012

Reproducing the Issue

  1. Create a report with a text object
  2. Add text that contains a tab character to the text object
  3. Cerate a simple application using the Crystal Reports SDK for .NET
  4. Use the following code to print the report:
rptClientDoc.PrintOutputController.PrintReport(rasPROpts);

 

Cause

  • The issue has been escalated for a fix
  • Reference ADAPT01698780

 

Resolution

 

Keywords

printout print out CRVS CR4VS 2012 2010 output controller , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Bug Filed

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio