Printing Word 2000

R

Raju Joseph

Hi All,

I have a small problem at hand and am looking for suggestions.

I have created a wrapper for word 2000 for our application which is in
VB.NET 2003. Everything works fine in the sense that users are able to save
documents through our application using word 2000 as the editor. I have
written for word 2000 sothat the code works for other higher versions of
word.

Now, here is the part that I am trying to tackle. When a particular document
is sent to print, the application have to add certain information to the
header and footer of the document before sending it to printer. This is
working fine also since I have trapped the BeforePrint event.

The user wants to see the same information while clicking the PrintPreview
also. i.e.. Just as it would print.

I cannot modify the original document. The information added to the document
is only during Print. I have flagged the document as Saved and after
printing I am currently closing the document, so user does not save or alter
the contents.

Any suggestions as to how I can do it.

Thanks

Raj...
 
J

Jonathan West

You might to make a copy of the original document, make the changes and then
go into Print Preview.

Alternatively, why don't you simply have the extra text in the document all
the time?

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 

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