Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 949

Summary: Export theme, huge size if base64 checkbox checked.
Product: .NET TeeChart Reporter: sdgr
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED NOTABUG    
Severity: critical CC: chris, sandra
Priority: ---    
Version: TeeChart for .NET 4.1.2013.11080   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: Two screenshots and an exported theme.

Description sdgr 2014-10-08 06:06:07 EDT
Created attachment 299 [details]
Two screenshots and an exported theme.

Used TeeChart version: .NET 4.1.2013.11082

Hi,
I have a chart with 7 line series, nothing special.
If I go to the Editor of TeeChart and export the theme 
- without series base64, I get a file size = 7Kb
- with series base64, I get a file size = 9Mb !

I attached two screenshots and the exported theme (9 Mb).
Other charts in my application, having also a number of line charts, don't have such huge size.

Can you figure out the reason for this behaviour?
Thanks,
Stefan.
Comment 1 sandra pazos 2014-10-24 08:37:03 EDT
To reproduce the problem loads the client theme with the code below: 

Private void Form1_Load(object sender, EventArgs e)
        {
            tChart1.Import.Theme.Load(@"HugeSeries\Chart1.xml"); 
        }
Comment 2 christopher ireland 2014-11-03 09:39:04 EST
I do not consider this a defect, as the SaveWithBase64 property of the Theme class uses the Template export to export the entire chart to a stream, and then renders this stream as Base64 to save in a text file. I therefore consider the size of this theme as within expected parameters.