Page 1 of 1

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

Posted: Thu May 02, 2019 6:14 am
by 15684378
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.

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

Posted: Thu May 02, 2019 9:35 am
by Christopher
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?