TeeChart WPF - Export to PDF

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
gbs
Newbie
Newbie
Posts: 7
Joined: Mon May 27, 2013 12:00 am

TeeChart WPF - Export to PDF

Post by gbs » Wed Jul 31, 2013 12:19 pm

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

gbs
Newbie
Newbie
Posts: 7
Joined: Mon May 27, 2013 12:00 am

Re: TeeChart WPF - Export to PDF

Post by gbs » Wed Jul 31, 2013 12:21 pm

btw. Using version TeeChart for .NET 2013 4.1.2013.5283, working with VB.NET

gbs
Newbie
Newbie
Posts: 7
Joined: Mon May 27, 2013 12:00 am

Re: TeeChart WPF - Export to PDF

Post by gbs » Wed Jul 31, 2013 3:30 pm

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.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: TeeChart WPF - Export to PDF

Post by Sandra » Fri Aug 02, 2013 9:04 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

gbs
Newbie
Newbie
Posts: 7
Joined: Mon May 27, 2013 12:00 am

Re: TeeChart WPF - Export to PDF

Post by gbs » Fri Aug 02, 2013 10:00 am

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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: TeeChart WPF - Export to PDF

Post by Sandra » Fri Aug 02, 2013 11:05 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply