Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-01

LazReport Images and Unicode

9 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Giuliano Colla

I'm trying to use LazReport to generate reports which should show an image (the company logo) and some Chinese text.
Currently (Lazarus 1.0.4 on Linux platform) I have the following scenario:

1) Report preview is correct (Image and Chinese text properly shown)

2) Report printout shows the Image, but skips Chinese characters.

3) Pdf export shows the image, but replaces Chinese characters with question marks. I understand that PowerPdf doesn't support Unicode, but changing the font encoding from Unicode to Big5 doesn't help.

4) Html export shows the Chinese characters, but doesn't show the image.

5) Text export shows the Chinese characters, but obviously doesn't show the image.

Is there a way to get a printout which properly reproduces the Report preview?

Can someone point me in the right direction?

Giuliano

Reply by email

Jesus Reyes
to Giuliano Colla

--- El lun 14-ene-13, Giuliano Colla escribi?:

2) Report printout shows the Image, but skips Chinese characters.

That's correct, TPostscriptCanvas do not support all unicode, Latin and Cyrillic should be fine though.

3) Pdf export shows the image, but replaces Chinese characters with question marks. I understand that PowerPdf doesn't support Unicode, but changing the font encoding from Unicode to Big5 doesn't help.

That's correct, PowerPdf is limited to Latin scripts.

4) Html export shows the Chinese characters, but doesn't show the image.

Yes, it doesn't export images. I think an option can be added to html exporter so it can export images too.

5) Text export shows the Chinese characters, but obviously doesn't show the image.

That's correct.

Show quoted text 8 lines
Is there a way to get a printout which properly reproduces the Report preview? Can someone point me in the right direction? Giuliano

There are at least two solutions, according to bug report http://bugs.freepascal.org/view.php?id=15161 using Qt interface should work. The other solution is exporting pages as images with Image Exporter, that I can confirm it does ok, see LazReport/source/addons/imgexport/lr_extexp.lpk

There is another possibility, for the future, time ago petr kristan made a CairoCanvas object that can be used instead of TPostscriptPrinterCanvas. After I fixed some things I made it work again but showing Chinese text and images was unsuccessful. It currently uses plain cairo to show text, I will try to improve it.

Jesus Reyes A.

Reply by email

Jesus Reyes
to Jesus Reyes

--- El mi? 16-ene-13, Jesus Reyes escribi?:

Show quoted text 5 lines
There are at least two solutions, according to bug report http://bugs.freepascal.org/view.php?id=15161 using Qt interface should work. The other solution is exporting pages as images with Image Exporter, that I can confirm it does ok, see LazReport/source/addons/imgexport/lr_extexp.lpk

Forgot to say, the Image exporter has another html exporter (appear as "HTML (div-based)" on export list) that do include images and Chinese text

Jesus Reyes A.

Reply by email

Giuliano Colla
to Jesus Reyes
Jesus Reyes wrote 9 lines
--- El mi? 16-ene-13, Jesus Reyes escribi?: > There are at least two solutions, according to bug report http://bugs.freepascal.org/view.php?id=15161 using Qt > interface should work. The other solution is exporting pages > as images with Image Exporter, that I can confirm it does > ok, see LazReport/source/addons/imgexport/lr_extexp.lpk > Forgot to say, the Image exporter has another html exporter (appear as "HTML (div-based)" on export list) that do include images and Chinese text

Thank you very much. I'll try your suggestions.

Giuliano

Show quoted text 7 lines
Jesus Reyes A. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

patspiper
to Jesus Reyes: --- El lun 14-ene-13, Giuliano Colla escribi?: That's correct, TPostscriptCanvas do not…
Jesus Reyes wrote 7 lines
--- El lun 14-ene-13, Giuliano Colla escribi?: > 2) Report printout shows the Image, but skips Chinese > characters. > That's correct, TPostscriptCanvas do not support all unicode, Latin and Cyrillic should be fine though.

What about Arabic? Some fonts do not produce any Arabic output at all, and others produce detached characters (isolated form) only.

Pls refer to bug http://bugs.freepascal.org/view.php?id=19435 and http://forum.lazarus.freepascal.org/index.php/topic,13206.0.html for more info.

Stephano

Reply by email

Héctor F. Fiandor Rosario
to Giuliano Colla: I'm trying to use LazReport to generate reports which should show an image (the company…

I?m using the Lazarus version 1.0.4 and I have completed an application using units from prior applications inclusive some of then from Delphi5-

I have found that some label.caption are written correctly in spanish, but other don?t admit the accents as for example in the word Termin?.

i will appreciate any help

thanks in advance,

yours truly,

Ing. H?ctor F. Fiandor Rosario

Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistem a Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas Infomed: http://www.sld.cu/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130122/b205908d/attachment.html>

Reply by email

Sven Barth
to Héctor F. Fiandor Rosario
H?ctor F. Fiandor Rosario wrote 8 lines
I?m using the Lazarus version 1.0.4 and I have completed an application using units from prior applications inclusive some of then from Delphi5- I have found that some label.caption are written correctly in spanish, but other don?t admit the accents as for example in the word Termin?. i will appreciate any help thanks in advance,

As was said many times already: do not post to an existing thread as this decreases the likelyhood that someone reads your message.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130123/b8d5c772/attachment-0001.html>

Reply by email

Juha Manninen
to Héctor F. Fiandor Rosario: I?m using the Lazarus version 1.0.4 and I have completed an application using units from…
H?ctor F. Fiandor Rosario wrote
I have found that some label.caption are written correctly in spanish, but other don?t admit the accents as for example in the word Termin?.

It sounds strange. If there was such bug in TLabel, it would affect all label captions and not only some of them.
Can you attach a demo application demonstrating it?

Juha

Reply by email

Héctor F. Fiandor Rosario
to Juha Manninen

dear Mr. Manninen, thanks very much for your observation,

after my message, I have been working with the appl. and found that redefining the label control the problem was solved.

thanks again

yours

Ing. H?ctor F. Fiandor Rosario

Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistem a Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas Infomed: http://www.sld.cu/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130123/6c34d630/attachment.html>

Reply by email