Bug with exporting charts in PDF when using more than one Measures

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
BIQ
Newbie
Newbie
Posts: 1
Joined: Thu Sep 06, 2018 12:00 am

Bug with exporting charts in PDF when using more than one Measures

Post by BIQ » Thu May 02, 2019 6:14 am

Hi,

We are facing issues while exporting charts containing more than one measure in PDF format. The bug is reproducible with the same exception/error thrown each time that that action is taken by the end user.
(Export of the same charts (containing more than one measure) in other formats (such as JPEG, PNG, etc) works fine.)

Here are the error/exception details:

********** System.ArgumentNullException **********
Value cannot be null.
Parameter name: encoder
at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
at Steema.TeeChart.Export.PDFImageListEntry.get_DataLength()
at Steema.TeeChart.Export.PDFDocument.WriteImages(Stream stream)
at Steema.TeeChart.Export.PDFDocument.SaveToStream(Stream stream)
at Steema.TeeChart.Export.ImageExportFormat.Save(String FileName)
at biq.TeeChartForm2.ExportChart(TChart& theChart, String& Path, FormatType& FilterIndex)
at biq.TeeChartForm2.ExportAll()
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

1 exception(s)

***************** App Info *****************
Release 5.05, 31 Aug 2018, Build: 192
Arguments: Work
locally~~

OS: Microsoft Windows 7 Professional v6.1.7601.65536
OS Platform: Win32NT (64-bit)
UI Culture: English (United States)
Physical Mem: 8.902GB/15.884GB
Virtual Mem: 7.999TB/8TB available to vb.net
C:\ 82.78GB free


Please let me know if i can provide any additional information.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Bug with exporting charts in PDF when using more than one Measures

Post by Christopher » Thu May 02, 2019 9:35 am

BIQ wrote:
Thu May 02, 2019 6:14 am
Please let me know if i can provide any additional information.
Yes please - would you be so kind as to give us some code with which we can reproduce this issue here?
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply