Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » RichText,QTF,RTF... » Is it possible to send a QTF text to the printer (PrinterJob)?
Is it possible to send a QTF text to the printer (PrinterJob)? [message #38112] Sat, 01 December 2012 15:36 Go to next message
lectus is currently offline  lectus
Messages: 329
Registered: September 2006
Location: Brazil
Senior Member
Is it possible to send a QTF text to the printer (PrinterJob)?

Thanks
Re: Is it possible to send a QTF text to the printer (PrinterJob)? [message #38113 is a reply to message #38112] Sat, 01 December 2012 15:54 Go to previous messageGo to next message
lectus is currently offline  lectus
Messages: 329
Registered: September 2006
Location: Brazil
Senior Member
Nevermind. Embarassed

Got it to work with:
Report r;
r << "some qtf text";
Perform(r);


BTW... what's the difference between Report and PrinterJob?
Re: Is it possible to send a QTF text to the printer (PrinterJob)? [message #38186 is a reply to message #38112] Tue, 04 December 2012 15:58 Go to previous messageGo to next message
deep is currently offline  deep
Messages: 198
Registered: July 2011
Location: Bangalore
Experienced Member
Hi Lectus,

Check this

http://www.ultimatepp.org/forum/index.php?t=msg&goto=376 18&&srch=report+preview#msg_37618

You can use following functions / File <Report/ReportDlg.cpp>

Vars(Report,firstpage,JobTitle) This prints with printer selection dialog
bool Print(Report& r, int i, const char *_name)



Same as above but prints to default printer without dialog
bool DefaultPrint(Report& r, int i, const char *_name)


Warm Regards

Deepak
Re: Is it possible to send a QTF text to the printer (PrinterJob)? [message #38191 is a reply to message #38112] Wed, 05 December 2012 02:56 Go to previous message
lectus is currently offline  lectus
Messages: 329
Registered: September 2006
Location: Brazil
Senior Member
Thanks!

ReportView with those Print functions are a very cool combination for custom report printing!
Previous Topic: RichEdit page size
Next Topic: Is there a way to set page width in the QTF Designer / Topic++ editor / UWord ?
Goto Forum:
  


Current Time: Thu Dec 12 12:43:43 CET 2019

Total time taken to generate the page: 0.01766 seconds