Error printing a Word document

S

Santi

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,
 
P

Perry

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
 

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