By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,573 Members | 3,017 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,573 IT Pros & Developers. It's quick & easy.

Printing Word 2000

P: n/a
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...
Sep 5 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

"Raju Joseph" <vz******@msn.com> wrote in message
news:e2**************@TK2MSFTNGP10.phx.gbl...
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...


Sep 5 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.