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

Using Word Envelopes and Labels Settings

Status
Not open for further replies.
Oct 5, 1999
105
GB
Is it possible to utilise the standard Envelope & Labels settings available to Word in a macro without using the Menu Option.

I want to write a specialised printing macro, and am happy to use the Envelope.PrintOut method etc. but I need to know the available formats before I call it.

Does anyone know where they are stored or how to access them?

Thanks
 
From MSDN some of the paramaters for the envelope.printout method - can you use some of these?
Size

Optional Object. A string that specifies the envelope size. The string should match one of the sizes listed on the left side of the Envelope size box in the Envelope Options dialog box (for example, "Size 10").

Height

Optional Object. The height of the envelope (in points) when the Size argument is set to "Custom size."

Width

Optional Object. The width of the envelope (in points) when the Size argument is set to "Custom size."

FeedSource

Optional Object. True to use the FeedSource property of the Envelope object to specify which paper tray to use when printing the envelope.
 
Yes, that is the idea. Unfortunately, for example, in

Size
Optional Object. A string that specifies the envelope size. The string should match one of the sizes listed on the left side of the Envelope size box in the Envelope Options dialog box (for example, "Size 10").

how do I find out beforehand what is "listed on the left side of the Envelope size box"?

Paul
 
I am not sure, but i would think that the values you are talking about could be printer driver specific in some way. It might be better to use custom which should always be there and then specify exactly what you want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top