Hi to all:
I would like print in a box a few lines of text but I want print this lines centering...
VB have some instruction to do this?
Thanks
Printable View
Hi to all:
I would like print in a box a few lines of text but I want print this lines centering...
VB have some instruction to do this?
Thanks
I don't really know what this so called 'box' is.
But in label control there is the property Align, this aligns text (Eg in centre). Is this what you want?
Hi:
No...that property it's to appear in the screen...I want print!
Oh, printing to an object. Sorry I don't know.
to print to a form, in the center horizantal and vertical
vb Code:
printstr = "the string i want to print" form1.currentx = (form1.scalewidth - form1.textwidth(printstr)) /2 form1.currenty = (form1.scaleheight - form1.textheight(printstr)) /2
he forgot to put form1.print printstr
Hi:
Ok...this code print text center vertical and horizontal,but in the middle of a form...It's not exactly that I want to do!!!
That I want to do is:
1 - I Draw a box:
Now I want put text "The String I want to Print" in this box but centered.Code:Printer.Line (700, 4600)-(5350, 7680), , B
This is possible?
i think that should do it, but haven't testedvb Code:
printer.currentx = (5350-700 - printer.textwidth(printstr)) /2 printer.currenty = (7680 - 4600 - printer.textheight(printstr)) /2 printer.print printstr
ok,the code work!
Thanks a lot