Skip to Content
0
N B
Aug 21, 2009 at 03:48 PM

Printers having inconsistent errors w/VB.NET2005 & CR2008SP1 .NET methods

28 Views

Having issues when previewing or creating PDF files on some printers using our VB.NET 2005 app that uses the ReportDocument (Crystal for .NET) object and methods:

objReportDocument.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, strMainAttachment)

ReportViewer.ShowDialog()

The errors are inconsistent, but worked just fine using the old Report Designer Component methods.

Some of the errors:

  • A generic message of Program has encountered and error and needs to shut down, we apologize for the inconvenience.

  • COMException - the value is write-only.

  • COMException - cannot create ActiveX component.

The printers/drivers we are using are HP LaserJet 4350 PCL6 and HP LaserJet M1522 MFP Series PCL6

Again - this just started happening when we moved to the Crystal for .NET methods to execute our Crystal reports. We were able to use these printers just fine before. And, it seems to occur only when creating PDF files or previewing (essentially not having to prompt for a printer).

Any suggestions?