Page 1 of 1
TeeChart WPF - Export to PDF
Posted: Wed Jul 31, 2013 12:19 pm
by 15666029
Just want to let you guys know that there are some problem when exporting charts to PDF:
- Fonts not embedded (see here)
- Height and Width of the PDF must be an integer or the created PDF is not viewable at all
- Fastline with LinePen.Width of 0.5 breaks the created PDF, it only shows the panel but the chart and all labels are not rendered. Using a LinePen width of 1,2,... works
- [*/]
bye
Re: TeeChart WPF - Export to PDF
Posted: Wed Jul 31, 2013 12:21 pm
by 15666029
btw. Using version TeeChart for .NET 2013 4.1.2013.5283, working with VB.NET
Re: TeeChart WPF - Export to PDF
Posted: Wed Jul 31, 2013 3:30 pm
by 15666029
Just update to latest release and still same problems, nothing about that stuff in the change logs so nothing unexpected
Workaround for points 1 and 2 are quiet easy as I simply need to change the values to working ones for the PDF export and change them back to original after it's done.
Re: TeeChart WPF - Export to PDF
Posted: Fri Aug 02, 2013 9:04 am
by 10050769
Hello gbs,
Thanks for your information. I have added your request 2 and 3 in the wish-list with number [TW16016674]. We will try to fix it to upcoming versions of TeeChartFor.Net. On the other hand, the workaround at the moment is convert to int values the double values, using Round or truncate of Math class. See next example of code:
Code: Select all
private void InitializeChart()
{
FastLine fastLine1 = new FastLine(tChart1.Chart);
tChart1.Aspect.View3D = false;
tChart1.Header.Font.Bold = true;
tChart1.Header.Font.Size = 15;
fastLine1.FillSampleValues();
fastLine1.LinePen.Width = 1;
button1.Click += button1_Click;
}
void button1_Click(object sender, RoutedEventArgs e)
{
tChart1.Export.Image.PDF.Width = Math.Round(400.3,0);
tChart1.Export.Image.PDF.Height = Math.Round(300.3,0);
tChart1.Export.Image.PDF.Save(@"C:\testChart.pdf");
}
Thanks,
Re: TeeChart WPF - Export to PDF
Posted: Fri Aug 02, 2013 10:00 am
by 15666029
Excactly what I do right now, but you should put them on the errorlist not wishlist as they were really hard to find and can be a real showstopper when it comes to exporting to PDF. thanks
Re: TeeChart WPF - Export to PDF
Posted: Fri Aug 02, 2013 11:05 am
by 10050769
Hello gbs,
Excactly what I do right now, but you should put them on the errorlist not wishlist as they were really hard to find and can be a real showstopper when it.
We work with a unique list where there is all the problems, internally we classify the problems in bugs, feature requests or enhancements, it is the way we have decided use to classify the problems internally and work. To treat issues we are based in different variables, for example, severity. In your case the severity of your request is serious.
I hope I have clarified our way to work and treat problems.
Thanks,