473,395 Members | 1,437 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Printing Word 2000

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
1 1550
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: SSK | last post by:
hi i was trying to print a word document from a stored prcedure using the following two methods 1) cd C:\&&"C:\Program Files\Microsoft Office\OFFICE11\winword.exe" "c:\temp.doc" /mfileprint ...
4
by: Jeff Harbin | last post by:
I've got an ACCESS 2000 application that I'm developing. One of the outputs of this app will be to generate a series of 'jobs' which corresponds to a record in the database. Each record will be...
5
by: Stefania Scott | last post by:
I am trying to print a word document from Access. The code I've written works well in my computer but does not in the one were it is needed. Here the piece of code: 'doc path strObjectPath =...
3
by: Grim Reaper | last post by:
I print mailing labels out of Access 2000 databases about 3 to 4 times a week. I have been having problems with one thing since I have been printing mailing labels. I print mailing labels by...
16
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..." dialogs, and - more importantly - without having to use...
0
by: Lee Harris | last post by:
Hello, I have a client that has about 150 users on a intranet that I've created. The server is Windows 2000 with IIS 5.0 and has Office 2000 installed. The client came to me and asked if it was...
4
by: scorpion53061 | last post by:
I have my Word document being created in a seperate thread. THe applicaiton is not visible. The end user can choose to view the document upon completion or just have it print. Viewing is...
2
by: pmclinn | last post by:
I have a printing task that is driving me crazy but I think I figured out a solution. My whole office is on office 2000 so I was thinking I could harness the power of a word template to print...
1
by: Raju Joseph | last post by:
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.