Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

priting more than one form on the same page 3

Status
Not open for further replies.

Peppy

Programmer
Sep 3, 2001
12
US
Hi, I was browsing the vb 6.0 forum for threads about
resizing forms. I need a form that is 12240 w x 15840 H and
the height and width will not take this size. The resize event will only work during run time. I was wondering if you have a solution. I thought about making two forms 6120 X 7920
but then I would need them to be print on one page and I do not know how to do that can anyone help? Appreciate the feedback. Thanks Peppy



 
Yes your are exactly right, this was beautiful. I was able
to lay out my lables exactly the way I need them. But it does not print that size in run-time. I tried re-size event
and that didn't work. I am not sure why..I tried putting that event right after load sub on the form with the layout
and I tried putting this resize event before the print sub
on the form from which the cmdprint is on...but nooop that didn't work. I ssuspect this is something simple...maybe I am too tired...any more ideas Peppy
 
Tim, I went back to what you were suggesting before
for printing purposes. Now I have got this form layout
the way I want in design time, and I need it to print
the same in run time...so I did this

Private Sub cmdPrint_Click()
Dim ckcopy As Form
Set ckcopy = frmCkCopy

Printer.ScaleMode = vbUser
Printer.Print ;
Printer.PaintPicture ckcopy.Image, 100, 12225, 16800
Printer.EndDoc

End Sub

but it is printing a blank page????
can you help
 

Printer.PaintPicture ckcopy.Image, 100, 12225, 16800

Scale is in twips. there are 1440 twips/inch. therefore, at 12225 twips, your stert position is just over 8 & 1/2". In other words, your printing past the right edge of the paper! oops........
By the way, if you use twips on your form also, you can position your labels on your form where you want them, then use the labels Top & Left for the printers Y & X. Tim

Remember the KISS principle:
Keep It Simple, Stupid!
 
Ok I follow you about the page I think
are you saying vbUser = twips?
And can you be more specific about x and y coordinates as I
am not familiar with this...thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top