Recent

Author Topic: Lazreport printing error under OSX  (Read 4403 times)

rlaci3

  • Newbie
  • Posts: 1
Lazreport printing error under OSX
« on: June 14, 2012, 09:22:17 am »
Hi! I have created a report, with two TFrDbDataset and two TSQLQuery.

Code: [Select]
frReport1.PrepareReport;
frReport1.ShowPreparedReport;

Everything works fine, the report displays the data which comes from the SQLite database.
The problem comes when I want to print from this preview. The dialog appears, where I can change printer, etc. Then sometimes it prints the page, sometimes it throws an error External: EXC_BAD_ACCESS.
I don't know where to look for the problem.

It would be fine to export the report to PDF, but it can't display Hungarian ő and ű characters, it displays a question mark instead. Any ideas?

I have Lazarus 0.9.30.4, FPC 2.6.0, OSX 10.7.4.

Thanks for your help.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Lazreport printing error under OSX
« Reply #1 on: June 14, 2012, 03:01:15 pm »
Thanks for a clear problem description ;)


I don't know where to look for the problem.

It would be fine to export the report to PDF, but it can't display Hungarian ő and ű characters, it displays a question mark instead. Any ideas?
You might want to search through the forum on things like utf8 or unicode and Lazreport. I remember reports about this before.

You can also search the bug tracker..

(Note: haven't used Lazreport myself, so unfortunately I don't know the answer)
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

sylvanus67

  • New Member
  • *
  • Posts: 25
Re: Lazreport printing error under OSX
« Reply #2 on: June 14, 2012, 05:21:48 pm »
Quote
It would be fine to export the report to PDF, but it can't display Hungarian ő and ű characters, it displays a question mark instead. Any ideas?

It is my problem, too. And problem for others.

http://www.lazarus.freepascal.org/index.php/topic,17105.msg93876.html#msg93876
http://www.lazarus.freepascal.org/index.php/topic,16914.0.html


BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Lazreport printing error under OSX
« Reply #3 on: June 14, 2012, 05:31:14 pm »
Have a look through the bug tracker (link on the left). Edit: Perhaps a bug has already been raised for this, such as http://bugs.freepascal.org/view.php?id=15161

If there's no bug for your problems yet, you could submit one. Please include your operating system, Lazarus version etc and a small sample program that shows the problem would be ideal. (The project you should file it under is project: "Lazarus Packages", Category "LazReport").

Note: I haven't worked with Lazreport; you might want to go through any samples, wiki pages (e.g. http://wiki.lazarus.freepascal.org/LazReport_Documentation) and documentation to make sure you don't need to e.g. translate between character sets when using it.

This way, the developers will see the problem and will be able to keep track of it and fix it.

Good luck.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018