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 » LineEdit, EditFields, DocEdit » How to Print a file inside LineEdit
Re: How to Print a file inside LineEdit [message #3230 is a reply to message #3227] Sun, 14 May 2006 21:44 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
forlano wrote on Sun, 14 May 2006 13:34

Hello,

I've a file in a LineEdit widget and I desire to send it to the Printer. I've found with Assist the Print() function but it seems to work with RichText while I've a simple text file. So I wonder if it works or there is a U++ Print method that can do the job. (At the moment I've not a printer so I cannot test if the Print() method RichTest based works in my case).

BTW, this question is more general because in principle I could want to print a text file bypassing any widget and sending it directly to the printer.

Thank you,

Luigi

PS: The class RichEdit has the Print() method, why LineEdit has not the same?


There is no direct support for printing of LineEdit.

The simplest way to print is to use Report. Simply, instead to sending your stuff to "Draw", you use Report (which implements Draw interface), just add some calls to perform pagination. Alternatively, use Qtf, which you can send to Report as well.

Mirek

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to let appear by default the bar in the LineEdit?
Next Topic: Append separate Strings to a DocEdit[SOLVED]
Goto Forum:
  


Current Time: Sat Apr 27 15:30:51 CEST 2024

Total time taken to generate the page: 0.02838 seconds