PDA

View Full Version : Printing txt file vs Printing pdf file



rmagro
31st August 2008, 15:02
Hi all,
is it different to print (sending to printer) a txt file from printing a pdf file?
I mean, can the same Qt code handle both situation ?

If not, how do I load (with qt code) a pdf file, for sending it to the default printer?

Thank you very mutch for you kind reply..

Roby

wysota
31st August 2008, 18:16
You can use QDesktopServices to open it in a default PDF viewer for your system.

Roonyunlimited
9th July 2012, 15:32
I have written some sample data to file "sample.txt". I would like to print the contents of the file to my printer. Could you please tell me how will the code be in order to do this ? Sorry for asking a question in middle of this discussion.

high_flyer
9th July 2012, 15:45
Could you please tell me how will the code be in order to do this ?
Could you please ask a question that can be answered?