Click to See Complete Forum and Search --> : How can I print form using Landscape format?
kevin shen
September 19th, 2001, 07:55 PM
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
shree
September 19th, 2001, 08:08 PM
did you try
Printer.Orientation = vbPRORLandscape
before Printform?
kevin shen
September 19th, 2001, 11:16 PM
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
shree
September 20th, 2001, 08:35 AM
The Zoom property is not guaranteed to work on all printers. It works on most laser printers, but not on many inkjet printers.
kumar03
November 29th, 2001, 03:44 PM
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
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.