1. Sivaprakash BKR
  2. PowerBuilder
  3. Friday, 11 August 2023 13:24 PM UTC

Hello

Using Powerbuilder 2022 R2 IDE: Build 2819 Runtime: 1900, combination of fonts:  Unicode & special font for Tamil language

OUTPUT IN DATAWINDOW

 

NATIVE PDF OUTPUT

ISSUES:

2ND LINE MISSING DATA [SEE VALUE BEFORE PINCODE IS MISSING ]   [ TAMIL FONT USED ]
3RD LINE IS COMPLETELY MISSING   [ UNICODE ]
4TH LINE IS ALSO MISSING              [ UNICODE ]
2ND COLUMN DATA IS NOT PRINTING CORRECTLY [ ONLY ONE CHARACTER GETS PRINTED ] [ UNICODE ]
3RD COLUMN HEADING IS NOT PRINTED CORRECTLY.

I have the following settings, to export dw to PDF
dw_report.Modify("DataWindow.Export.PDF.Method = NativePDF!")
dw_report.Modify("DataWindow.Export.PDF.NativePDF.UsePrintSpec = Yes")
dw_report.Modify("DataWindow.Export.PDF.NativePDF.ImageFormat = 1")
dw_report.Modify("DataWindow.Export.PDF.NativePDF.PDFStandard = 1" )
ll_ret = tab_1.tabpage_2.dw_report.SaveAs(ls_filename, PDF!, True)

Anything need to be added to get it printed correctly?

Happiness Always
BKR Sivaprakash

 

John Fauss Accepted Answer Pending Moderation
  1. Sunday, 13 August 2023 00:12 AM UTC
  2. PowerBuilder
  3. # 1

Is the "Packaging custom fonts in the generated PDF files" checkbox checked in the Application object's additional properties/PDF Export tab?

If not, you might wish to enable this option, then regenerate the PDF and see if it makes a difference.

Comment
  1. Sivaprakash BKR
  2. Sunday, 13 August 2023 10:36 AM UTC
Thanks John Fauss,

Already done. Missed to mention that in my original post (issue).

Now we found the issue is while mixing two different fonts [ tamil font + unicode ] or arrive a string by concatenating a couple of string.

[ eg.] ls_str = ls_str1 + " : " + ls_str2 // ls_str1 and ls_str2 are both unicode characters, we expect the hardcoded colon string will also be a unicode.

dw_1.modify("field1.text = '" + ls_str + "'")

In dw, field1 appears correct, but in exported pdf, we see only colon.

  1. Helpful 1
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 11 August 2023 18:00 PM UTC
  2. PowerBuilder
  3. # 2

Hi BKR;

  There was an open ticket for a similar issue in the PB 2022 R2 beta. Although the customers language was Arabic but they had similar PDF problems. If you compile with build 2819 ... Does your issue get resolved?

Regards ... Chris 

Comment
  1. Sivaprakash BKR
  2. Saturday, 12 August 2023 12:36 PM UTC
Tried with build 2819, same issue.

  1. Helpful
  1. Chris Pollach @Appeon
  2. Saturday, 12 August 2023 13:17 PM UTC
In that case, I would then suggest opening a support ticket. If you could also include a small test case with that, then that would be great!
  1. Helpful
  1. Sivaprakash BKR
  2. Wednesday, 16 August 2023 06:50 AM UTC
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.