0
Answer

Crystal Reports Programmatically Printing Problem

Ask a question
Carl Schrader

Carl Schrader

16y
6k
1

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