Hi,
i'm using Crystal Reports for VS version 13.0.13.1597 with Visual Studio 2013
Unfortunately I get a COMExeption when trying to Print some reports after previously displaying a preview using the CrystalDecisions.Windows.Forms.CrystalReportViewer Component.
System.Runtime.InteropServices.COMException was unhandled by user code
HResult=-2147483648
Message=
No Error.
Source=rptcontrollers.dll
ErrorCode=-2147483648
StackTrace:
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetPage(PageRequestContext pPageRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.GetPage(PageRequestContext pageReqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.QueryPageSettingsEventHandler(Object sender, QueryPageSettingsEventArgs e)
at System.Drawing.Printing.PrintDocument.OnQueryPageSettings(QueryPageSettingsEventArgs e)
at System.Drawing.Printing.PrintDocument._OnQueryPageSettings(QueryPageSettingsEventArgs e)
at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)
at System.Drawing.Printing.PrintController.Print(PrintDocument document)
at System.Drawing.Printing.PrintDocument.Print()
at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(PrinterSettings printerSettings, PageSettings pageSettings, PrintLayoutSettings layoutSettings, Boolean reformatReportPageSettings)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(PrinterSettings printerSettings, PageSettings pageSettings, PrintLayoutSettings layoutSettings, Boolean reformatReportPageSettings)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(PrinterSettings printerSettings, PageSettings pageSettings, Boolean reformatReportPageSettings)
at Soloplan.CarLo.Printing.PrintAdapterCrystalReports2011.Print() in c:\project.net\Soloplan\CarLo\Printing\PrintAdapterCrystalReports2011.cs:Line 1528.
InnerException:
As you can see the error message is a bit short on information what went wrong, especially the Message: No Error.
Is there any possiblity to extend the information on this exception?
The behavior is reproducible with some reports, while others work just fine, and even with the problematic reports it only when the call of the Print function is done while the preview is shown.
I hope someone can point me in the right direction.
Thanks
Johannes