View Single Post
  #2   Report Post  
Peter Jamieson
 
Posts: n/a
Default

Just some suggestions:

1. Can you set the Word Application object's DisplayAlerts property? e.g.

Application.DisplayAlerts = wdAlertsNone

Does that make any difference?

2. Can you programmatically inspect the page layout properties in

ActiveDocument.PageSetup

and, for example, reject documents whose page size and/or margins do not
match your fax print driver's settings (or perhaps even programmatically
adjust the driver settings to suit) ?

3. (never tried it, but could be worth investingating...)

If you are using Office 2003, you could consider printing to the Microsoft
Office Document Imaging printer driver - it does not seem to care what page
size or margins were specified in Word, so the print should always work.
Then you can automate the MODI object to inspect it and/or print it.

If any of the above work for you, can you please let us know?

Peter Jamieson

"Colin Graham" wrote in message
...
Our GFI Faxmaker service is printing .rtf documents through to the
Faxmaker
print driver as a service and occasionally comes accross a document with
'One
or more margins are outwith the printable page' as it's the service thats
controlling it, there is no warning box displayed and hence no buttons to
allow the process to continue. This causes the whole process to hang and
the
faxserver falls over. Can anyone offer any advice of a fix or workaround
that
we are missing?
Kind thanks in advance.
Colin