* * *

Author Topic: TPrintDialog in Linux  (Read 1785 times)

eric

  • Jr. Member
  • **
  • Posts: 94
TPrintDialog in Linux
« on: August 22, 2005, 05:46:57 pm »
Does TPrintDialog work in Linux at present? On my system the program exits immediately when processing PrintDialog1.Execute. No exception is raised and no output messages are posted.

I'm using the latest SVN version of Lazarus with FPC 2.0.

Eric

alanphys

  • New member
  • *
  • Posts: 30
RE: TPrintDialog in Linux
« Reply #1 on: August 23, 2005, 08:10:36 am »
Mine works fine on FC2 using CUPS. Check that you have both the Printers and the PrinterDlgs units in your uses clause and that your printer is correctly installed and set up. Some other people have reported strange behaviour with printing.
Alanphys

eric

  • Jr. Member
  • **
  • Posts: 94
RE: TPrintDialog in Linux
« Reply #2 on: August 23, 2005, 08:55:53 am »
Thanks, I've got all those things. I do have two printers though; I wonder if TPrintDialog chokes on more than one?

Eric

alanphys

  • New member
  • *
  • Posts: 30
RE: TPrintDialog in Linux
« Reply #3 on: August 24, 2005, 08:13:22 am »
I have three printers installed and I can print from all using the print dialog. Do you maybe want to post your code?

alanphys
Alanphys

eric

  • Jr. Member
  • **
  • Posts: 94
RE: TPrintDialog in Linux
« Reply #4 on: August 24, 2005, 12:19:56 pm »
Thanks for the suggestion, but on further investigation it turns out that the problem is a conflict between Printer4Lazarus or TPrinter and one of the forms in my project. Any use of the Printer object causes a crash if this particular form is open, or if it's opened subsequently. Printing works fine in other projects. I'm going to have a lot of fun debugging this. :(

Eric

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads