Carl Schrader

Carl Schrader

  • NA
  • 110
  • 0

Crystal Reports Programmatically Printing Problem

Jan 23 2008 11:46 AM

Calling the PrintOut method after programmatically selecting a printer (via the SelectPrinter method) I get an "AccessViolationException" which states "Attempted to read or write to protected memory. This is often and indication that other memory is corrupt".

If I comment out the call to the SelectPrinter method and print using the default printer, I do not get this error and the report prints.

The problem is not printer specific. I am using Crystal Reports XI and Windows XP Service Pack 2.

I would greatly appreciate any suggestions on what may be causing this issue.

Thanks,

Carl