PDF Export will not open in Adobe Reader X

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
lilo
Newbie
Newbie
Posts: 62
Joined: Wed Sep 07, 2011 12:00 am

PDF Export will not open in Adobe Reader X

Post by lilo » Thu Jul 05, 2012 11:21 am

If I export a chart to pdf with the export feature, it will not open in Adobe Reader X.

"Error exists on this page" message appears.

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

Re: PDF Export will not open in Adobe Reader X

Post by Sandra » Fri Jul 06, 2012 12:06 pm

Hello lilo,

Using last version of TeeChartFor.Net and next code:

Code: Select all

       public Form1()[attachment=0]Testpdf.zip[/attachment]
        {
            InitializeComponent();
            InitializeChart();

        }

        private void InitializeChart()
        {
            Steema.TeeChart.Styles.Line line1 = new Line(tChart1.Chart);
            line1.FillSampleValues();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            tChart1.Export.Image.PDF.Save(@"C:\tmp\Testpdf.pdf");
        }
The export is showed correctly in ADOBE READER X as you can check in my attached pdf. If you can not open this pdf correctly in your machine, please install again ADOBE READER X and try again to open my .pdf file and your .pdf file.
Testpdf.zip
(3.46 KiB) Downloaded 687 times
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

lilo
Newbie
Newbie
Posts: 62
Joined: Wed Sep 07, 2011 12:00 am

Re: PDF Export will not open in Adobe Reader X

Post by lilo » Sat Jul 07, 2012 7:47 am

Your chart opens correctly. If I try to export my chart with custom axes, formatting, etc, the chart will not open.

lilo
Newbie
Newbie
Posts: 62
Joined: Wed Sep 07, 2011 12:00 am

Re: PDF Export will not open in Adobe Reader X

Post by lilo » Sat Jul 07, 2012 8:44 am

My project might give you a better idea of what the problem is.

http://www.geologynet.com/logplotms/logplotmssetup.exe

Go to Help Menu-Demo Data to get started.

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

Re: PDF Export will not open in Adobe Reader X

Post by Sandra » Mon Jul 09, 2012 11:24 am

Hello lilo,

Thanks for your application, but we need the code. Could you arrange for me a simple code where you can reproduce your problem because we can try to reproduce exactly your problem here?

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

lilo
Newbie
Newbie
Posts: 62
Joined: Wed Sep 07, 2011 12:00 am

Re: PDF Export will not open in Adobe Reader X

Post by lilo » Thu Jul 19, 2012 4:49 am

As a workaround, I am going to use print to pdf using a pdf driver. This works perfectly for me.

Is it possible to remove the export to pdf option in the Export Dialog?

lilo
Newbie
Newbie
Posts: 62
Joined: Wed Sep 07, 2011 12:00 am

Re: PDF Export will not open in Adobe Reader X

Post by lilo » Thu Jul 19, 2012 8:47 am

I just downloaded latest version July 2012. With this version the pdf export works fine. However, one chart will not export shape fill types. Can you support filltypes in a future release? Also, the export does not support some custom embedded fonts?

Private Sub TChart1_AfterDraw(ByVal sender As Object, ByVal g As Steema.TeeChart.Drawing.Graphics3D) Handles TChart1.AfterDraw
'Hatch Fill
myGraphicsRect.Height = RECT_HGT2 '- 4 '(point2.X, point1.Y, point2.X, point2.Y)
myGraphicsRect.Width = RECT_WID2 '- 4
g.Rectangle(myGraphicsRect)
Dim br2 As New Drawing2D.HatchBrush(CType(PatBoxFillType2(i), Drawing2D.HatchStyle), PatBoxFillColor2(i), Drawing.Color.Transparent)
myGraphicsPath.AddRectangle(myGraphicsRect)
Dim FillReg As New Region(myGraphicsPath)
g.FillRegion(br2, FillReg)

'Custom Symbol Font
g.Font.Name = SymbolFont(i)
g.Font.Size = SymbolSize(i)
g.Font.Italic = SymbolItalic(i)
g.Font.Bold = SymbolBold(i)
g.Font.Underline = False 'SymbolUnderline(i)
g.Font.Color = SymbolColor(i)
' Get the font metrics.
Dim total_hgt As Single
Dim text_wid As Single
Dim text_hgt As Single
Dim text_bound_wid As Single
Dim text_bound_hgt As Single
Dim total_bound_wid As Single
Dim total_bound_hgt As Single
Dim theta As Single
Dim phi As Single
Dim FontFamily1 = New FontFamily(SymbolFont(i))
Dim Font = New Font(FontFamily1, SymbolSize(i), FontStyle.Regular, GraphicsUnit.Pixel)
End Sub

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

Re: PDF Export will not open in Adobe Reader X

Post by Sandra » Tue Jul 24, 2012 10:06 am

Hello lilo,

We have your request in bug list report with number[TF02016273]. We will try to fix it for upcoming versions of TeeChartFor.Net.

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