[SOLVED] A generic error occured in GDI+

Stimulsoft Ultimate discussion
Jean-Yves
Posts: 7
Joined: Mon Jul 15, 2013 6:42 am

[SOLVED] A generic error occured in GDI+

Post 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
Last edited by Jean-Yves on Mon Aug 26, 2013 7:47 am, edited 1 time in total.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: A generic error occured in GDI+

Post by Alex K. »

Hello,

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

Thank you.
Jean-Yves
Posts: 7
Joined: Mon Jul 15, 2013 6:42 am

Re: A generic error occured in GDI+

Post 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
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: A generic error occured in GDI+

Post by Alex K. »

Hello,

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

Thank you.
Jean-Yves
Posts: 7
Joined: Mon Jul 15, 2013 6:42 am

Re: A generic error occured in GDI+

Post by Jean-Yves »

Open the attached file using the report design utility and hit F5.

Thanks a lot
Jean-Yves
Attachments
Report2013.mrt
(5.28 KiB) Downloaded 543 times
Report2011.mrt
(5.32 KiB) Downloaded 455 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: A generic error occured in GDI+

Post 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.
Jean-Yves
Posts: 7
Joined: Mon Jul 15, 2013 6:42 am

Re: A generic error occured in GDI+

Post 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.
Attachments
Label visual summary
Label visual summary
20130819_100618.jpg (1.14 MiB) Viewed 12234 times
Report_2013_1908.mrt
Report (version 2013.2)
(5.13 KiB) Downloaded 411 times
Report_2011_1908.mrt
Report (version 2011.1)
(5.17 KiB) Downloaded 384 times
Report-2013.pdf
PDF generated report (version 2013.2)
(80.09 KiB) Downloaded 391 times
Report-2011.pdf
PDF generated report (version 2011.1)
(65.48 KiB) Downloaded 449 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: A generic error occured in GDI+

Post 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.
Jean-Yves
Posts: 7
Joined: Mon Jul 15, 2013 6:42 am

Re: A generic error occured in GDI+

Post by Jean-Yves »

Hello,

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

Thanks
Attachments
Zebra GK-420t properties when clicked on "Advanced > Printing defaults..." button of printer's properties dialog
Zebra GK-420t properties when clicked on "Advanced > Printing defaults..." button of printer's properties dialog
ZebraPrintingDefaults.png (41.07 KiB) Viewed 12220 times
Zebra GK-420t properties when clicked on "General > Preferences..." button of printer's properties dialog
Zebra GK-420t properties when clicked on "General > Preferences..." button of printer's properties dialog
ZebraGeneralPreferences.png (37.46 KiB) Viewed 12220 times
Screenshot of report designer with paper size specifications you gave
Screenshot of report designer with paper size specifications you gave
PaperSizeCustom.png (122.79 KiB) Viewed 12220 times
Labels that were printed with specifications you gave
Labels that were printed with specifications you gave
20130821_162702.jpg (1.02 MiB) Viewed 12220 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: A generic error occured in GDI+

Post 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.
Post Reply