cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Crystal Reports 2008 - System.Runtime.InteropServices.SEHException: External component has thrown an exception.

Former Member
0 Likes
912

Hi

When the customer tries to print a report in crystal receives an error external component has thrown an exception error for all reports.

My apllication uses Crystal Reports 2008 (CR Developer) 12.5.0.1190

The customer has installed the corresponding merge modules

Windows 7 (32 bits)

To print a report the application use Report Application Server(RAS) component (PrintOutputController.PrintReport), instead of PrintToPrinter method 

(SAP Note 1729446 The print job queuing becomes very slow when using custom paper size in Crystal Reports through PrintToPrint method)

And it’s going fine except a customer that has a USB connected printer: GESTETNER NRG 161.

When printing he gets the following error messaging (Portuguese language):

ErrorCode: -2147467259
System.Runtime.InteropServices.SEHException: O componente externo accionou uma excepção.
em CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.PrintReport(PrintReportOptions options)
em I2SPrintNetApp.PrintManager.ImprimeRelatorio(ISCDReportClientDocument rptClientDoc, PageSettings pagSett, Int32 nCurPage, Int32 nLastPage)
em I2SPrintNetApp.CRViewerForm.timerParaPrintDialog_Tick(Object sender, EventArgs e)
em System.Windows.Forms.Timer.OnTick(EventArgs e)
em System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
em System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
=======================================
CrystalDecisions.ReportAppServer.Controllers
=======================================

Note:

System.Runtime.InteropServices.SEHException: O componente externo accionou uma excepção. (portuguese)

System.Runtime.InteropServices.SEHException: External component has thrown an exception. (english)

Curiously that error doesn’t occur for all other printers!

When we replace de Report Application Server(RAS) component (PrintOutputController.PrintReport) for PrintToPrinter method the mentioned error doesn’t occur!

What’s wrong?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

I believe this is the key to a solution:

Curiously that error doesn’t occur for all other printers!

Your options:

1) Do not use that printer driver

2) See if there are any updates for the printer driver

Note that this may be a framework issue. E.g.; the printer driver may not work with .NET and testing this may not be a bad idea either.

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow us on Twitter

Got Enhancement ideas? Try the SAP Idea Place

Share Your Knowledge in SCN Topic Spaces

Former Member
0 Likes

Hello Ludek

 

Thanks for your replay.
I took a time to try to resolve the issue and come up with some solution.

Also I share your opinion and have decided two identical cases with the driver update!

In this case (GESTETNER) | can’t find any compatible driver.

But the question persisted. What is the difference between PrintToPrinter (which works) and the Report Application Server(RAS) component that causes the error in question.

Is there any clue?

Message was edited by: Ludek Uher

Former Member
0 Likes

Could be the Service Pack as you are on SP 5, so getting to SP 6 will be a good idea:

https://share.sap.com/I818592/MyAttachments/3437042f-94d6-4df5-9708-bd0fdd9dd7ec/

Other than that, I'd suspect code. Search for printoutputcontroller (search box in top right corner). Don has a number of very good posts with code and I think even a sample app.

- Ludek

Former Member
0 Likes

Hi,

Crystal Reports 2008 (CR Developer) 12.5.0.1190.

The recommended service Pack 6 returns the following error

Crystal Reports 2008 FP 6.2 Update can not be installed because the product version in the system is it fairly old?       

(Translation from portuguese to english)

I appreciate some help. Thanks.

Former Member
0 Likes

Apologies, my bad. That link is to SP 6 Fix Pack 2. SP 6 is here:

https://share.sap.com/I818592/MyAttachments/a4e36dda-8350-4808-a96f-a88194295dc3/

if  you wish, you can apply FP 2 on top of SP6, once SP 6 is installed.

- Ludek

Message was edited by: Ludek Uher

Former Member
0 Likes

Thanks for help.
I already have installed SP 6 CR 2008 Pack 2.

The only problem is only with the printer (GESTETNER).
This is a printer driver issue absolutely because I've solved some similar situations with upgrading the printer driver.


I can only test the GESTETNER problem when the merge modules SP 6 are available.

Former Member
0 Likes

Hi Ludek

 

Grateful, I have already got the MSI for SP 6 through your suggested link.

This is a printer driver GESTETNER particularity.

You cannot waste any more time with driver problems!

Answers (0)