Print pages per sheet in Word from Outlook not correct

R

Ria

I have a managed Outlook Addin (2007). From the addin I start Word
(invisible) and add a template in which I put the selected e-mail message. If
I start a printout action with the zoomrow=1 and zoomcolumn=2 then every page
is reduced to less than 0.5cm.

The same happens when I use reflection and set ZoomPaper to 1 (= 2 pages per
sheet).

I already found out that if I started Word before and opened the print
dialog before, then everything goes well, but if I do above action after an
invisible start of Word and print action than the first mentioned is the
result.

Has anyone already found a solution for this problem?
 
K

Ken Slovak - [MVP - Outlook]

Does the print dialog need to be opened first if Word is started first, or
does it print correctly if just Word is started first? Have you done any
detective work to see if just showing the Word window or document fixes
things?
 
R

Ria

Hi Ken,

I did some research on this. It does not help to show Word or the document
window. It only helps if I first open the FilePrint Dialog manually (without
any changes and cancel the dialog) and after that call the printout command
with the zoomrow=1 and zoomcolumn=2 from my Addin (same behavior from Outlook
Addin manipulating Word as from Word Addin). I use C#.
 
K

Ken Slovak - [MVP - Outlook]

Does it work if you display that dialog using code and then immediately
dismiss it?

Is this only with Word 2007? Have you tested this at all using Word 2003?
 
R

Ria

I thought of that too, but unfortunately that didn't work (.Display(1)) either.

Tomorrow I'm going to try this with Outlook and Word 2003. So I will come
back with the findings of that.
 
R

Ria

The result in Outlook/Word 2003 is the same as in 2007.
I will give an extra explanation of the result: There are 2 pages printed on
one page, but every page (and the text on these pages) is very strongly
minimized to 0.5cm (and therefore very unreadable) in the upper left corner
of every page.
 
R

Ria

The problem I mentioned in my first post only occured in the first printout
after Word was started.

I found a workaround for this problem. In the situation that you want to
print a document through automation and with the options for zooming set,
first do a printout to a file, after that you can do the actual printout to
any printer you want.

This behaviour and the workaround applies for Word 2003 AND Word 2007
 
K

Ken Slovak - [MVP - Outlook]

Good, I'm glad you found a workaround, as it seems to be a long standing
bug.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top