I found printform function can only print form using portrait format. How can i print form using Landscape format?
I couldn't find more documents for VB print, can anyone give me some good suggestion?
Thank you!
Best Regards,
Kevin Shen
Printable View
I found printform function can only print form using portrait format. How can i print form using Landscape format?
I couldn't find more documents for VB print, can anyone give me some good suggestion?
Thank you!
Best Regards,
Kevin Shen
did you try
Printer.Orientation = vbPRORLandscape
before Printform?
I tried to set center the printed form on the page and use zoom property, but can not work. I don't know why.
Printer.ScaleLeft = -((Printer.Width - FrmTestGraph.Width) / 2)
Printer.ScaleTop = -((Printer.Height - FrmTestGraph.Height) / 2)
Printer.Zoom=50
Best Regards,
Kevin Shen
The Zoom property is not guaranteed to work on all printers. It works on most laser printers, but not on many inkjet printers.
I tried this code printer.orientation = vbPRORLandscape for printing the form in landscape using command button on the form. But if I click the print command second time it gives me the error "can't print form image to this type of printer". I also tried setting it to vbPRORPortait after printing but gives the same error.
can somebody please help to resolve this problem