Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Printing problem

I am having trouble setting my printer to landscape.

What I have is a VB program that is creating a word document and setting that doc to landscape. Then when I go to print I call up the printer I want using ActivePrinter = "DYMO LabelWriter 400"
and that printer is not set to landscape and I need to know how to set that printer to landscape.

any ideas ?
[382 byte] By [AM003295] at [2007-11-11 8:29:41]
# 1 Re: Printing problem
Please post the exact code you're using to select a printer. I am not familiar with any object or property named "ActivePrinter."
Phil Weber at 2007-11-11 17:25:23 >
# 2 Re: Printing problem
ActivePrinter = "DYMO LabelWriter 400(Copy 1)"
oWord.Documents(DocIndex).PrintOut Copies:=1, Collate:=True

The above code is all I use, and I think the ActivePrinter makes this guy the defalt printer, and the oWord... prints it. My problem is the word doc is set to landscape and I need to set the printer to landscape also. It needs to be set in the program.
AM003295 at 2007-11-11 17:26:23 >