Solved TD-20891: SalReportPrintToFile to PDF

Report bugs and possible workarounds.
Mike Vandine

Re: TD-20891: SalReportPrintToFile to PDF

Post by Mike Vandine » 29 Apr 2014, 09:53

The garbled display that you show is exactly what I see when I transfer a Word document to my iPad.

I'm running the app now.

I may need to give this to another person who has an Apple machine other than my iPad if it needs to be printed.

Mike Vandine

Re: TD-20891: SalReportPrintToFile to PDF

Post by Mike Vandine » 29 Apr 2014, 09:56

Yes, I can preview this fine on my iPad. I will need to give this to someone else in Gupta for a determination.

Thanks for the simple testcase!

Best regards,

Dietmar
Germany
Posts: 102
Joined: 12 Apr 2018, 14:47
Location: Bielefeld, Germany

Re: TD-20891: SalReportPrintToFile to PDF

Post by Dietmar » 29 Apr 2014, 10:40

Thanks for your quick response.
We are hoping for a quick solution, this is really important for us.

Dietmar Teich

Mike Vandine

Re: TD-20891: SalReportPrintToFile to PDF

Post by Mike Vandine » 01 May 2014, 04:37

Hi all,

I've had some people able to create the PDF file and transfer it to their iPad and can print it fine on a HP OfficeJet 6700.

Two others have had problems:

"Yes can see that happen on my iMac OSX 10.9.2. Looks like a font problem to me. Maybe they need to use a font on Windows where they create the pdf that is avialble on the Mac as well? Or embed the font?"

"See garbage when printing from my son’s Macbook air – OSX Mavericks. Just the logo is fine."

So, can one of you have a look at the font you are using and confirm that this font is available on the Mac system you are using? Can you possibly embed the font in the PDF file? This makes sense with the PDF created from PDFCreator; I suspect that it embeds the font into the PDF file that it creates.

Best regards,

Dietmar
Germany
Posts: 102
Joined: 12 Apr 2018, 14:47
Location: Bielefeld, Germany

Re: TD-20891: SalReportPrintToFile to PDF

Post by Dietmar » 01 May 2014, 07:31

Hi Mike,

first of all i am glad to hear that the problem can be reproduced on mac systems.

Yor are asking about the font.
Yor can see the font we used in our testcase when you open the qrp with the report designer.
It ist just "arial", nothing unusual.
I dont know if this font is available on mac systems.

You ask if i could embed the font into the pdf file.
As you can see in our testcase we set the parameter "nFontOption" to 2, which means "Import true type fonts for all strings".
Parameter "nEmbed" ist set to 1, which means "embed the font in the generated PDF".
So i think the fonts should be embedded in the pdf.

We tried all other setting for "nFontOption" and for "nEmbed" in ervery combination, but the result is the same.
Maybe there is a problem in the function SalReportPrintToFileEx() and the fonts are NOT embedded even if parameters tell it to do so?

Maybe it has to do with the location of the fonts on the machine creating the pdf.
We tried to copy the font into the application directory, but the result is the same.
So this was no workaround for us.


Dietmar Teich

Mike Vandine

Re: TD-20891: SalReportPrintToFile to PDF

Post by Mike Vandine » 01 May 2014, 07:44

OK. Thanks for the confirmation.

I will need to get a bug logged for this and see what we can find out.

Mike Vandine

Re: TD-20891: SalReportPrintToFile to PDF

Post by Mike Vandine » 02 May 2014, 06:06

Hi all,

I've logged defect TD-20849 for this issue. Someone from Development will have a look at this to see what might be going wrong.

I'm still waiting for test cases for the other issues reported in this thread. See the details that I am after from the entry for 24 April for size differences and wrong images.

Best regards,

Dietmar
Germany
Posts: 102
Joined: 12 Apr 2018, 14:47
Location: Bielefeld, Germany

Re: TD-20891: SalReportPrintToFile to PDF

Post by Dietmar » 08 May 2014, 06:49

Hi Mike,

thanks for your help.
This problem is very important for us.
Please find a solution as fast as possible.

Dietmar Teich

aeintveld
Netherlands
Posts: 65
Joined: 22 Mar 2017, 16:03
Location: The Netherlands

Re: TD-20891: SalReportPrintToFile to PDF

Post by aeintveld » 09 May 2014, 20:41

With My testcase in the initial post you can not reproduce the problem?

aeintveld
Netherlands
Posts: 65
Joined: 22 Mar 2017, 16:03
Location: The Netherlands

Re: TD-20891: SalReportPrintToFile to PDF

Post by aeintveld » 14 May 2014, 09:06

Mike,

I took me half a day or so but I finally managed to create a testcase for the wrong images displayed in a PDF.
I'll send you a PM with the sources.

Regarding the size difference and the problem reading it on a Mac (or any android phone):
My testcase in my first post (with the qrp i added later) and the PDF's in the zip will show the problem.

Hope to hear from you soon.

Reagards,

Alexander

Mike Vandine

Re: TD-20891: SalReportPrintToFile to PDF

Post by Mike Vandine » 15 May 2014, 07:02

Thanks for the testcase, Alexander.

Yes, I can reproduce the problem of the size difference with the first testcase.

Best regards,

Mike Vandine

Re: TD-20891: SalReportPrintToFile to PDF

Post by Mike Vandine » 15 May 2014, 07:54

Hi Alexander,

Yes, I can reproduce exactly what you say. Thanks for the excellent testcase.

This works fine with TD6.1 SP4 but fails with TD6.2. I will log a defect.

Best regards,

Mike Vandine

Re: TD-20891: SalReportPrintToFile to PDF

Post by Mike Vandine » 15 May 2014, 08:32

Hi Guys,

I have created defect TD-20891 for the image mixing and TD-20892 for the PDF size difference. I have flagged these plus the unreadable PDF on a MAC as needing escalation.

Best regards,

aeintveld
Netherlands
Posts: 65
Joined: 22 Mar 2017, 16:03
Location: The Netherlands

Re: TD-20891: SalReportPrintToFile to PDF

Post by aeintveld » 15 May 2014, 11:42

Thanks Mike for the quick response!

Hope the fix will be available soon!

Regards,

Alexander

User avatar
H3PO4
Germany
Posts: 241
Joined: 10 Mar 2017, 07:53
Location: Rohlstorf, Germany

Re: TD-20891: SalReportPrintToFile to PDF

Post by H3PO4 » 19 May 2014, 10:12

Thank you Mike!

Regards
Henning

Return to “Bug Reports”

Who is online

Users browsing this forum: [Ccbot] and 0 guests