Page 1 of 1

TeeChart 8.04 GIF and PDF Exports

Posted: Sun Nov 02, 2008 3:56 pm
by 10545668
I have been testing the update and have found that the PDF and GIF exports do not work.

The PDF output creates a file that cannot be read by Adobe. Adobe thinks that it is an unsupported file type or that the file has been damaged.

The GIF output aborts with an Access Violation in rtl120.bpl.

I am using the 2009 C++ Personality and I have recently installed Update 1 for the 2009 release. (The update forced me to make a lot of changes, and the update may be related to these problems).

I have duplicated both of these problems in your demo program. I did this within the Chart Picture section of the Exporting group with the All Features tab.

Posted: Mon Nov 03, 2008 10:12 am
by narcis
Hi MikeD,

Thanks for reporting. I could reproduce the issue here without installing Update 1 too. I've added it (TV52013515) to the defect list to be fixed ASAP.

Posted: Mon Nov 03, 2008 3:30 pm
by 10545668
Thanks. Could you let me know when you have it fixed in that I am holding up the release of my software until I have the fix. I need the PDF output as it is heavily used. I have the 2009 RAD studio and I am a Source customer.

Posted: Wed Apr 08, 2009 2:48 pm
by 10551554
Hello
I have the same problem with PDF export.
I have migrated to RAD Studio 2009 because I need Unicode support.
I have also bought TeeChart Pro 8 with Source Code.
Please, could you fix this bug ASAP?
Your wonderful piece of code is vital for us!
Best regards

Posted: Wed Apr 08, 2009 2:55 pm
by narcis
Hi Al1,

Yes, this one is in the top-priority list to be investigated.

Posted: Wed Apr 22, 2009 3:59 pm
by 10551554
Thanks Narcís,

Have you any idea how to solve this?
I can see a lot of null chars inserted in the PDF file!

If you need more time, have you another way to generate a PDF?

Best regards,

Posted: Thu Apr 23, 2009 7:52 am
by narcis
Hi Al1,

This is issue is specific to C++ Builder 2009 and haven't find a way to solve it yet. Using other version of C++ Builder works fine.

Posted: Thu Apr 23, 2009 9:54 am
by 10551554
Hello Narcís,

But I'm using Delphi 2009 (Update 2)!
Here is my code:

Code: Select all

  if SaveDialog1.Execute
  then
    TeeSaveToPDFFile(Chart1, SaveDialog1.FileName,
      Chart1.Width, Chart1.Height);
I can send you a generated file.

Thanks,

Posted: Thu Apr 23, 2009 10:04 am
by narcis
Hi Al1,

Yes, sorry. I must have said Delphi/C++ Builder 2009.

Posted: Thu Apr 23, 2009 3:59 pm
by 10551554
OK,

After looking into TeePDFCanvas.pas source code, I have modified the WriteStringToStream procedure and the TextToPDFText function of the TPDFCanvas:

Code: Select all

procedure WriteStringToStream(Stream: TStream; const S:AnsiString);
function TextToPDFText(const AText: String): AnsiString;
With this minor modification, Acrobat Reader can open the PDF file. But the TextToPDFText function needs also to be modified to hex-encode every byte of the AText (Wide)String! You may use SizeOf instead of Length and something else for AText...

Acrobat Reader send a message: "La police ArialUnicodeMS contient un /Widths erroné". About this font, I can see in the PDF file that Encoding is set to WinAnsiEncoding. I think it is not correct.

Hope this help!

Posted: Fri Apr 24, 2009 9:05 am
by narcis
Hi Al1,

Thanks for the information. We will consider your suggestions.