TeeChart 8.04 GIF and PDF Exports

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MikeD
Newbie
Newbie
Posts: 30
Joined: Mon Jun 25, 2007 12:00 am

TeeChart 8.04 GIF and PDF Exports

Post by MikeD » Sun Nov 02, 2008 3:56 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Nov 03, 2008 10:12 am

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.
Best Regards,
Narcís Calvet / 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

MikeD
Newbie
Newbie
Posts: 30
Joined: Mon Jun 25, 2007 12:00 am

Post by MikeD » Mon Nov 03, 2008 3:30 pm

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.

Al1
Newbie
Newbie
Posts: 14
Joined: Tue Jan 20, 2009 12:00 am

Post by Al1 » Wed Apr 08, 2009 2:48 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Apr 08, 2009 2:55 pm

Hi Al1,

Yes, this one is in the top-priority list to be investigated.
Best Regards,
Narcís Calvet / 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

Al1
Newbie
Newbie
Posts: 14
Joined: Tue Jan 20, 2009 12:00 am

Post by Al1 » Wed Apr 22, 2009 3:59 pm

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,

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Apr 23, 2009 7:52 am

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.
Best Regards,
Narcís Calvet / 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

Al1
Newbie
Newbie
Posts: 14
Joined: Tue Jan 20, 2009 12:00 am

Post by Al1 » Thu Apr 23, 2009 9:54 am

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,

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Apr 23, 2009 10:04 am

Hi Al1,

Yes, sorry. I must have said Delphi/C++ Builder 2009.
Best Regards,
Narcís Calvet / 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

Al1
Newbie
Newbie
Posts: 14
Joined: Tue Jan 20, 2009 12:00 am

Post by Al1 » Thu Apr 23, 2009 3:59 pm

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!

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Apr 24, 2009 9:05 am

Hi Al1,

Thanks for the information. We will consider your suggestions.
Best Regards,
Narcís Calvet / 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