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!

printing in landscape mode

Status
Not open for further replies.

ngmac

Programmer
Dec 4, 2002
3
US
I figured out how to print an x,y graph from a table of data in VB6. But I can't get it to print in landscape mode. If I set it to landscape mode, it defaults to portrait mode when it prints the graph. All of my efforts have been in vain. What simple thing am I overlooking?
 
You didn't indicate what code you are using to select landscape mode or to print, but the following has worked for me:
Printer.Orentiation = vbPRORLandscape
Printer.Print ...
 
The solution to my problem that I received from DRWUNTZ might work for printing text, I tried the suggestion of Print.Orientation = VBPRORLandscape and Printer.Print ...
My clarification is that I am printing a purely graphical picture, if you will, with no text. It will print the screen if I set autoredraw to TRUE, but won't allow me to set the printer to the landscape mode, so consequently not everything on the right side of my graph gets printed. I have looked in vain through the 900 plus page book by Gary Cornell on VB6 and can't seem to find anything on printing of graphical figures. A friend suggested that I paste it and rotate the image so that I won't need the landscape mode to print it. I'm not sure that is how I should proceed. I am currently thinking that I may just reduce the entire figure to the point where I can get it all on in portrait mode although it would be nice to be able to print screen in the landscape mode.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top