Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2007

Tip: Looking for answers? Try searching our database.

Error printing a Word document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Santi - 22 Jan 2007 09:22 GMT
Hi,
   I have a problem when I try to print a Word Document from VB.NET in Word
2002. The instruction that I execute is the next:
........ActiveDocument.PrintOut(Background:=True, Copies:=1)

When I execute the same instruction in Word 2003 it doesn't fail. Can
anybody help me????

Thanks,
Perry - 28 Jan 2007 22:36 GMT
In VB.net: do you see a connectivity possibility to either
Microsoft Office 10 Library (in COM references)
or
Microsoft.Office.Interop.Word (in NET ref - version 10.0.0.0)

I would be surprised if you had these possibilities, but if you do
add them to yr project and hopefully (I haven't tested this) you can
run the code in Word XP as well.
If not, guess you're stuck to building two applications:
one for Word XP and th'other for Word 2K3

Btw, MS has always stated that Office 2003 is suited for VB.net and not the
previous versions of Office
The .Net programmability hooks were made available in Office 2003, and as
far as I know not in any
previous version of Office.

Krgrds,
Perry

> Hi,
>    I have a problem when I try to print a Word Document from VB.NET in
[quoted text clipped - 5 lines]
>
> Thanks,

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.