Envelope Printing

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Envelope Printing

Post by armsys » Wed Jun 11, 2008 6:40 am

Is it possible to perform envelope printng with Macro Scheduler script?
Programmatically, how could it be realized? In particular, how can I send HP LJ codes thru MS script? Has any done it with MS before?

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Jun 12, 2008 5:28 am

Rough outline.....

Set up a printer with specs for envelope.
Assign that printer to LPT3
Stack envelopes in the printer.
Use Macro Scheduler for the rest:
Write the address lines to filename.txt
Use DOS command TYPE filename.txt and redirect it to LPT3
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Thu Jun 12, 2008 9:05 am

Bob,
Thanks for your help.
However, the requirement is somewhat more complicated than your generic pseudocode:
1. Print "Printed Matter", "Confidential",... on the fly;
2. Change fonts and languages (English, Chinese,...etc.) for names and addresses for different countries.
My question is whether it's doable with Macro Scheduler. I wish to do it with VBScript but I have no idea how to accomplish it.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Jun 12, 2008 9:15 am

Any reason why you can't just use Microsoft Word?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Thu Jun 12, 2008 10:48 am

For better control with Macro Scheduler's Dialog.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Jun 12, 2008 11:00 am

Macro Scheduler can interface with Word via VBScript, or you could have it call a Word VBA routine. So I'd use a combination of both.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts