Report via Word

Posted by LegacyUser on 23-Feb-2005 09:49

We use Word via COM-objects to print some reports.

Now it seems that theese reports that works with Word 2000, does not work with Word 2002. We use the option DefaultTray to get the right paper tray for information, invoice etc, but Word 2002 does not understand what stands in DefaultTray. Has anyone a solution ?

All Replies

Posted by LegacyUser on 17-Mar-2006 09:08

I don't see hwo to sign up for an account on this site...

I was having the same problem, but with Word 2003.

Quite by accident, I found something that fixed it while I was using some debug code. To put it short: Setting the DefaultTray property would not stick unless I retrieved the DefaultTray property first and then set it. For some reason, it sticks after that but only if you retrieve the property first. Doing it this way works for both Word 2000 and Word 2003.

Hope this helps.

- Bill Krahmer

Posted by svi on 17-Mar-2006 09:43

Signing up for an account...

Use the Register Here link from:

http://psdn.progress.com/index.ssp

Salvador

This thread is closed