We use TMS Web Core 2.9.6 and FNC UI Pack 7.0. If we do an PDF export for a FNC data grid with more than one page and the header string assigned to TTMSFNCDataGridPDFIO.Options header contains german umlauts like ä, Ä, ö, Ö, ü or Ü, then the header in the PDF is only correct displayed on the last page. On the first pages the header is somehow encrypted. Depending on this string it is also possible that even no PDF is displayed on calling the Save method of TTMSFNCDataGridPDFIO.
We encountered that this problem exists for all strings in the PDF export, even the grid data strings.
We'll investigate asap.
Hi,
When we test this here in our PDF export demo, we couldn't see an issue
Can you put together a small sample?
The first you could do without a sample of mine is to ensure that the PDF document spans more than one page.
Here it is:
Take your PDFExport demo and replace
TMSFNCDataGrid1.LoadSampleData;
by
TMSFNCDataGrid1.LoadFromCSVData('timereport.csv');
in unit UPDFExport.pas.
Save the attached file timereport.txt under timereport.csv in the same folder as the index.html file (BTW, I was not able to attach it with the .csv file extension).
timereport.txt (3.3 KB)
That's what I did.
Thanks, will test and and see why it goes wrong.
Hi,
We've seen issues with special characters and are currently looking for a solution. This might take some time due to the complexity of the issue.
Hi,
In WEB, for special characters, it's required to include the font inside the PDF. We already have a property FullFontEmbedding at TMSFNCPDFLib level, but it's currently not exposed at TTMSFNCDataGridPDFIO. I've attached a sample that creates a class inheriting from TTMSFNCDataGridPDFIO and sets FullFontEmbedding to true. This should fix the issue with special characters. As long as the font contains the characters the PDF should render properly.
PDFExport.zip (17.2 KB)
It works, thank you. Merry christmas, happy holidays and a happy new year.
Thank you, and a merry christmas to you too!
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
