TeeChart 8.04 GIF and PDF Exports
TeeChart 8.04 GIF and PDF Exports
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.
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.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Al1,
Yes, this one is in the top-priority list to be investigated.
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 |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
Hello Narcís,
But I'm using Delphi 2009 (Update 2)!
Here is my code:
I can send you a generated file.
Thanks,
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);
Thanks,
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Al1,
Yes, sorry. I must have said Delphi/C++ Builder 2009.
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 |
Instructions - How to post in this forum |
OK,
After looking into TeePDFCanvas.pas source code, I have modified the WriteStringToStream procedure and the TextToPDFText function of the TPDFCanvas:
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!
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;
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!
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Al1,
Thanks for the information. We will consider your suggestions.
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 |
Instructions - How to post in this forum |