Page 1 of 2

[SOLVED] A generic error occured in GDI+

Posted: Mon Jul 15, 2013 8:50 am
by Jean-Yves
Hi

I am new to StimulSoft and want to challenge it as a replacement solution to Crystal Reports for Visual Studio I've been using for years. The aim is to estimate the weird-caracter support ability of SS's barcode fields.

Case context
* Windows 7 x64
* StimulSoft Reports Ultimate 2011.1
* Zebra GK420t label printer as default printer

Reproducing the issue
* Run the designer
* Create a new label-type report for Eltron 4'*1.5' papersize and drop two barcode fields down it. Both are Code128Auto (the one I use for years) one is valued (remove quotes) "WEIRD_BARCODE" and the other "1+2#3\4=5".
* Hit the F5 key -> render is fine
* Hit the Print button -> Exception (see the stack trace below)

Please advise what to do to fix this issue.
Thanks a lot.
Jean-Yves
System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
at System.Drawing.Graphics.get_Clip()
at System.Drawing.Graphics.Save()
at Stimulsoft.Report.Painters.StiPageGdiPainter.Paint(StiComponent comp, StiPaintEventArgs e)
at Stimulsoft.Report.Viewer.StiPageViewControl.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
Designer
Assembly Version: 2011.1.1000.0
Win32 Version: 2011.1.1000.0
CodeBase: file:///C:/Program%20Files%20(x86)/Stimulsoft%20Reports.Ultimate%202011.1/Bin/Designer.exe
----------------------------------------
Stimulsoft.Report
Assembly Version: 2011.1.1000.0
Win32 Version: 2011.1.1000.0
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Stimulsoft.Report/2011.1.1000.0__ebe6666cba19647a/Stimulsoft.Report.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Stimulsoft.Base
Assembly Version: 2011.1.1000.0
Win32 Version: 2011.1.1000.0
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Stimulsoft.Base/2011.1.1000.0__ebe6666cba19647a/Stimulsoft.Base.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Stimulsoft.Report.Design
Assembly Version: 2011.1.1000.0
Win32 Version: 2011.1.1000.0
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Stimulsoft.Report.Design/2011.1.1000.0__ebe6666cba19647a/Stimulsoft.Report.Design.dll
----------------------------------------
Stimulsoft.Controls.Win
Assembly Version: 2011.1.1000.0
Win32 Version: 2011.1.1000.0
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Stimulsoft.Controls.Win/2011.1.1000.0__ebe6666cba19647a/Stimulsoft.Controls.Win.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Stimulsoft.Report.Check
Assembly Version: 2011.1.1000.0
Win32 Version: 2011.1.1000.0
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Stimulsoft.Report.Check/2011.1.1000.0__ebe6666cba19647a/Stimulsoft.Report.Check.dll
----------------------------------------
Stimulsoft.Report.Helper
Assembly Version: 2011.1.1000.0
Win32 Version: 2011.1.1000.0
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Stimulsoft.Report.Helper/2011.1.1000.0__ebe6666cba19647a/Stimulsoft.Report.Helper.dll
----------------------------------------
Stimulsoft.Report.Win
Assembly Version: 2011.1.1000.0
Win32 Version: 2011.1.1000.0
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Stimulsoft.Report.Win/2011.1.1000.0__ebe6666cba19647a/Stimulsoft.Report.Win.dll
----------------------------------------
Stimulsoft.Report.Design.WebViewer
Assembly Version: 2011.1.1000.0
Win32 Version: 2011.1.1000.0
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Stimulsoft.Report.Design.WebViewer/2011.1.1000.0__ebe6666cba19647a/Stimulsoft.Report.Design.WebViewer.dll
----------------------------------------
Stimulsoft.Report.Design.SLViewer
Assembly Version: 2011.1.1000.0
Win32 Version: 2011.1.1000.0
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Stimulsoft.Report.Design.SLViewer/2011.1.1000.0__ebe6666cba19647a/Stimulsoft.Report.Design.SLViewer.dll
----------------------------------------
Stimulsoft.Controls
Assembly Version: 2011.1.1000.0
Win32 Version: 2011.1.1000.0
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Stimulsoft.Controls/2011.1.1000.0__ebe6666cba19647a/Stimulsoft.Controls.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Stimulsoft.Editor
Assembly Version: 2011.1.1000.0
Win32 Version: 2011.1.1000.0
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Stimulsoft.Editor/2011.1.1000.0__ebe6666cba19647a/Stimulsoft.Editor.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Drawing.Design
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.Design.dll
----------------------------------------
System.Design
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
ryyxsevp
Assembly Version: 0.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

Re: A generic error occured in GDI+

Posted: Mon Jul 15, 2013 9:46 am
by Alex K.
Hello,

We made some improvements in that direction in last versions.
Please check the last build.

Thank you.

Re: A generic error occured in GDI+

Posted: Mon Jul 15, 2013 11:44 am
by Jean-Yves
Thanks for the quick answer. :)

I also tried with 2013.2, still basic no datasource, no more exception but a quite blank label. Only appears (I guess) the end of the watermark (demo version), but no barcode at all and a rotated 90° CCW printout... :/
All this using the same printer properties (that works using Crystal Reports for VS2012) as for 2011.1

Jean-Yves

Re: A generic error occured in GDI+

Posted: Mon Jul 15, 2013 11:49 am
by Alex K.
Hello,

Can you please send us a sample with test data for analysis.

Thank you.

Re: A generic error occured in GDI+

Posted: Mon Jul 15, 2013 3:32 pm
by Jean-Yves
Open the attached file using the report design utility and hit F5.

Thanks a lot
Jean-Yves

Re: A generic error occured in GDI+

Posted: Thu Jul 18, 2013 7:11 am
by Alex K.
Hello,

In the last builds was the replacement Stimulsoft.Report.Components.StiPanel to Panel. So the new file will be opened in the older version without panels. Please check the version.

Thank you.

Re: A generic error occured in GDI+

Posted: Mon Aug 19, 2013 8:49 am
by Jean-Yves
Hello,

Sorry but your last tip didn't make me see things clearer. I then decided to get back to basics. I downloaded latest driver from Zebra for Windows 7 x64 and created one low-level report from scratch on both 2011.1 and 2013.2 (demo) version.

Context:
1) Zebra GK-420t is fed with landscape-oriented 4"x1.5" labels
2) StimulSoft report has been generated using "label report wizard" and has been designed to use
- no datasource
- Eltron ref# 800240-155 label settings (officially 4"x1.5")
- one text area with the value "BLABLA123"
- one Code128Auto barcode with the value "BLABLA123"

Results:
=> SS 2011.1 designer gives a good preview and crashes when printing on Zebra GK-420t
=> SS 2013.2 designer gives a good preview and prints OK but portrait-oriented-like on Zebra GK-420t
=> both prints OK on Zebra GK-420t when saved to PDF format before
=> Crystal Reports report prints OK on Zebra GK-420t with more complex reporting (with datasource and so on)
(please consult attached JPEG)

There seems to be obviously a problem between StimulSoft communication and Windows printing library. Zebra driver can't be incriminated so far, because it works through Adobe Reader and Crystal Reports.
I really do need to give my boss a decision on early September, regarding which runtime to use in our future application (StimulSoft or Crystal Reports) and there is unfortunately no true challenging until now, because of this problem. I MUST fix this.

Can you advise on what to do, please ?
Thanks.

Re: A generic error occured in GDI+

Posted: Mon Aug 19, 2013 9:10 am
by HighAley
Hello.

There is a wrong Paper Size in your report template.
Please, set the Paper Size property of the Page to Custom.

Thank you.

Re: A generic error occured in GDI+

Posted: Wed Aug 21, 2013 2:34 pm
by Jean-Yves
Hello,

I did everything you advised and there is no change at all. :/
Please find attached information about my configuration.

Thanks

Re: A generic error occured in GDI+

Posted: Thu Aug 22, 2013 11:56 am
by HighAley
Hello.

As we see the Orientation of the Page in report is Landscape and in the printer drivers it's Portrait. Please, try to set the same Orientation.

Thank you.