Crystal Reports Print Error

P

Peter

I have .NET3.5 Windows Service application which prints Crystal Reports and
once in a while I get the following error, if I try to print right after the
error everything works just fine. Does anyone know what might be causing
this problem?

The error is occuring at CrystalReport.Print(String printer, Int32 copies,
Boolean collated, String paperSource) line

Thank You


Peter

System.AccessViolationException: Attempted to read or write protected
memory. This is often an indication that other memory is corrupt.

at System.Drawing.SafeNativeMethods.PrintDlg(PRINTDLGX86 lppd)

at System.Drawing.Printing.PrinterSettings.GetOutputPort()

at System.Drawing.Printing.PrinterSettings.FastDeviceCapabilities(Int16
capability, IntPtr pointerToBuffer, Int32 defaultValue, String printerName)

at System.Drawing.Printing.PrinterSettings.Get_PaperSources()

at System.Drawing.Printing.PrinterSettings.get_PaperSources()

at CrServer.CrystalReport.Print(String printer, Int32 copies, Boolean
collated, String paperSource)
 
J

Jialiang Ge [MSFT]

Hello Peter,

This sounds like a Crystal Report Development issue. I'm not an expert on
CR. Microsoft supports setup and installation for the Crystal Reports
products that are included with Microsoft Visual Studio. All other support
is provided by Business Objects. We would like to suggest you post the
question at https://www.sdn.sap.com/irj/sdn/businessobjects-support

For more details, please refer to the KB article:
http://support.microsoft.com/kb/317789/en-us
[Licensing and support for Crystal Reports for Visual Studio .NET and for
Visual Studio 2005]

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/default.aspx?target=assistance&ln=en-us.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

Jialiang Ge [MSFT]

Thank you very much for sharing the solution with us!

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top