Click to See Complete Forum and Search --> : Change The Printer Properties
How can you access the [default] printer properties. And change them. Example changing from Portriat to Landscape..
Or using A4 or Envelope. Please show me some code...........
-Kayoca Mortation
FirstKnight
Jan 16th, 2000, 08:40 PM
The easiest way I can think of right now is to put a command dialog control on the form and the use either Commondialog1.Orientation for landscape or portrait. To changer paper size use Commondialog1.Showprinter.
------------------
Today is the last day of your past :)
Hey FirstKnight thanks.... But i know that already. I mean like if your using DataReport
and when i want to use landscape and the [default] printer is portriat. then my app is giving a error. "paper is larger then the paper width." So i think i am gone use the [default] printer properties to change the orientation. :) And now i need to know is how can you change them by code in vb. Because the DataReport is always using the [default] printer. Please help me out. It's a pain in my head......
smalig
Jan 16th, 2000, 08:57 PM
Use the Printer Object.
Printer.Orientation = vbPRORPortrait
Printer.Orientation = vbPRORLandscape
------------------
smalig
smalig@hotmail.com
http://vbcode.webhostme.com/
Sorry Smalig that wont work with DataReport.
I have tryed many times. I realy need access to the Printer Properties. So i can change the orientation or other settings. So when the user log into the windows next time that the settings are still there. i am trying to use the printerproperties api. But i am not that good yet with the API's...
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.