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 #3250 is a reply to message #3245] Tue, 16 May 2006 18:10 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
luzr wrote on Tue, 16 May 2006 01:35

To fix it, simply add texts together:
r << "[s0;C+92 " + DeQtf("Round 1") + " ]";

(Note that adding here is possible becase DeQtf returns String).

Mirek


Thanks to your help now everything works as I wanted.
I think this way to print (knowing it) is superior to that to send directly the file to the printer. In fact the font size can be selected and the text can be rescaled and reoriented before to send it to the printer. This is of course more flexible. For this reason I've added a size font selector that rescale the image file when necessary.
Now I need few information to permit me to organize a good pagination. Report has too much option and I'm a bit lost.
I run the following commands regarding the dimension and I've obtained the following results:
1)	sz = r.GetSize();    //  3968 x 6074  => aspect ratio = 0.652)
2)	sz = r.GetPageMMs(); //  320 x 240 => aspect ratio = 0.75
3)	sz = r.GetPagePixels(); // 1024 x 768 => aspect ratio = 0.75

I guess GetPageMMs() returns the dimensions in millimeters.
Now 2) and 3) returns dimensions that produce the same aspect ratio. So I wonder what GetSize() returns to give a different aspect ratio.

In the row
    r << "[s0;C+92 " + DeQtf("=====================================") + " ]" ;

which are the unit of the font height indicated by '92'?

Last question. If I send my code example to the printer (actually a pdfdriver) I obtain the following attached picture.
In it you can see an offset both for vertical and horizontal in the top left page. But If I preview it with Perform(r) the offset is absent on the screen! So, is it present some offset or the pdfprinter do some bad joke?

Thank you.

Luigi

PS: I guess these information, knowing the the number of lines of the file (maybe even the longest row of the file), should be enough to produce an acceptable pagination. If I need some other parameter please let me know it.
index.php?t=getfile&id=139&private=0
  • Attachment: swiss5.jpg
    (Size: 16.62KB, Downloaded 3133 times)

[Updated on: Tue, 16 May 2006 18:10]

Report message to a moderator

 
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: Sun Apr 28 05:24:37 CEST 2024

Total time taken to generate the page: 0.05783 seconds