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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Landscape printer problem

Status
Not open for further replies.

Sakheb

Programmer
May 22, 2003
11
IN
when I print from a crystal object in VB6 everything works fine. All the portrait oriented reports get printed as portrait. All the landscape oriented reports get printed as landscape. But, when i change the printer properties in the crystal object (PrinterPort, PrinterDriver, PrinterName) everything gets printed as portrait. Even the landscape reports. Even if I'm not doing anything in particular to change the orientation of the report, it defaults to portrait.

somebody help please!

-Sak
 
Are the defaults on the printer set to portrait?

It looks like your inheriting the printer defaults.

Reebo
Scotland (Sunny with a Smile)
 
ya, I think the default is set to portrait. I tried changing the orientation of the printer by this code:

for each x in printers
if (x.devicename = "\\serve1602\printer1") then
x.orientation = vbprorLandscape
end if
next x

but, turns out, the x.orientation is just a read only property.

How do I change it so that the crystal doesn't inherit the printer defaults???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top