Page 1 of 1

PDF Export will not open in Adobe Reader X

Posted: Thu Jul 05, 2012 11:21 am
by 15660116
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.

Re: PDF Export will not open in Adobe Reader X

Posted: Fri Jul 06, 2012 12:06 pm
by 10050769
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 686 times
Thanks,

Re: PDF Export will not open in Adobe Reader X

Posted: Sat Jul 07, 2012 7:47 am
by 15660116
Your chart opens correctly. If I try to export my chart with custom axes, formatting, etc, the chart will not open.

Re: PDF Export will not open in Adobe Reader X

Posted: Sat Jul 07, 2012 8:44 am
by 15660116
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.

Re: PDF Export will not open in Adobe Reader X

Posted: Mon Jul 09, 2012 11:24 am
by 10050769
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,

Re: PDF Export will not open in Adobe Reader X

Posted: Thu Jul 19, 2012 4:49 am
by 15660116
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?

Re: PDF Export will not open in Adobe Reader X

Posted: Thu Jul 19, 2012 8:47 am
by 15660116
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

Re: PDF Export will not open in Adobe Reader X

Posted: Tue Jul 24, 2012 10:06 am
by 10050769
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,