PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → create report pdf file to not suppert unicode
create report pdf file to not suppert unicode
Iniciado por guest, 26,abr. 2015 15:04 - 8 respuestas
Publicado el 26,abril 2015 - 15:04
i am try create pdf but not show unicode,RTF field proper,that field(unicode,rtf) only english Language, not support other language (like this hindi,gujrati,chanish.....)

over code is
FileName is string = CompleteDir(fDataDir()) +"jsmtest.PDF"
iDestination(iPDF, FileName)
iPrintReport(RPT_PrintPepar)
Publicado el 27,abril 2015 - 05:10
i am create to pdf file to... rtf unicode file is give only (????????????????????????????????) sign...
Publicado el 28,abril 2015 - 05:03
i am try to create (.xls) to that type problem arivel.

rtf and unicode datatype set in database. to this field in generat pdf,xls file to ploblem is show that data (??????????????)


please help me
please give solution
Publicado el 28,abril 2015 - 08:00
Have you set text fields in you DB to support UNICODE?

Have you enabled your UI control's UNICODE feature?

HTH

Yogi Yang
Publicado el 28,abril 2015 - 09:34
but sir,, report is successfull created problem is comvert to pdf file then after prolem that unicode field...
Publicado el 28,abril 2015 - 13:36
If I know correctly in WD when we enter UNICODE in any control it does not complain and show the same on screen but if the required settings are not set as stated in my previous post what happens is that the content entered in UNICODE is converted to ANSI when save to DB.

And Reports retrieve the information to display or print from DB so what is shows in ANSI instead of UNICODE.

HTH

Yogi Yang
Publicado el 28,abril 2015 - 14:03
Hi Vijay,

You need to specify that the generated PDF is in unicode with iParameterPDF("","",iPDFUnicode). You do it just before launching the print preview (or or printing the PDF if not from the print preview).

<a class="ExternalLink" rel="nofollow" target="_blank" href="http://doc.windev.com/en-US/?3046007">http://doc.windev.com/en-US/&hellip;</a>

Best regards,
Alexandre Leclerc
Publicado el 28,abril 2015 - 15:29
but sir,

iParameterPDF("","",iPDFUnicode)

this function is not worked in windev17
Publicado el 28,abril 2015 - 16:09
Hi Vijay,

I did not know you were in version 17. The Unicode feature in PDF appeared in version 18. At that point you could simply upgrade to version 20 while they are in promotion period for the English version (until May 31, 40% discount).

The other option (maybe) is to make a standard non Unicode report and convert manually from Unicode to standard ANSI when printing you data. I never tested that but it might work.

Best regards,
Alexandre Leclerc