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
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.