Change printer tray

Add-in Express™ Support Service
That's what is more important than anything else

Change printer tray
 
martin ratcliffe




Posts: 15
Joined: 2006-08-17
I am trying to addd a printing option via an adding (office 2007) and latest Epress addin.

What i want to do is have a button which prints the current document or spreadsheet , printing one copy to tray 1 and one to tray 2 of the default print

we have macros that do this at the moment just though it would be cleaner this way. Only problem is i can not find how to get access to the trays or print options of the object.

Using Vb by the way
Posted 21 May, 2007 05:19:43 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Martin.

Did you try to use the PageSetup property of Excel application? Doesn't it suit you?


P.S. Note that we take up your forum requests in the order we receive them. Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
Posted 21 May, 2007 07:05:34 Top
martin ratcliffe




Posts: 15
Joined: 2006-08-17
Tried that thank but i now get
Object reference not set to an instance of an object.
when trying to set the trays

Posted 21 May, 2007 07:57:40 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Can I look at the code, please?
Posted 21 May, 2007 08:04:48 Top
martin ratcliffe




Posts: 15
Joined: 2006-08-17
sorted i had not been allocating an instance of word to my object !

Having problems with the printout function now will check forums

thanks for the help
Posted 21 May, 2007 08:15:33 Top