Delphi 7/ using 'word.basic' Ole Object - How to Suppress Footer while Printing a Word Document

Delphi 7/ using 'word.basic' Ole Object - How to Suppress Footer while Printing a Word Document

Post by rames » Sat, 12 May 2007 15:10:58


My application : is on Delphi 7.
Using : 'word.basic' Ole Object to implement printing
functionality, - using the call CreateOleObject('Word.Basic').

Requirement : From the code, while Prining some document using the
above object
suppress the Printing of the Footer
Conditionally.

Is there any OLE calls/way to do this ?

Thanks in advance,
Ramesh
 
 
 

Delphi 7/ using 'word.basic' Ole Object - How to Suppress Footer while Printing a Word Document

Post by Oliver Tow » Sat, 12 May 2007 17:51:17

> Is there any OLE calls/way to do this ?

You can only do in OLE what you can do in VBA (or worbasic in your case),
which is only what you can do by using Word. There's no simple way to do
this in Word, except by clearing out the footers and printing, and then
restoring them.

Oliver Townshend