PDA

View Full Version : Re: Printing from MS Word



Mark Hullin
18-Jan-2005, 08:14 PM
What little I've done with Word has either been in VDF6 or in VB.Net, so
take everything I say with a grain of salt. On top of that, I have only a
part of the solution your looking for.

On a recent VB.Net project, I found the following:

The ActivePrinter property (in VB.Net, it's the Application.ActivePrinter,
but not sure in VDF) lets you control the printer that the call to Printout
will use. It has one MAJOR SIDE AFFECT!!!!!!! It will overwrite the
default printer for the computer. You must get the property's value to a
local variable, set it to the new printer, print, and then set it back when
you are done.

I hope this helps.

Mark Hullin
M2 Information Systems, Inc.

"Erik Zimmerman" <erikz@compadmin.com> wrote in message
news:C2F8E58C1F7D4A4CB525AC96D503B58E0C685F@bunyip .abacus-labs.com...
> Happy New Year
>
> I'm looking for some direction in printing an MS Word document
> programmatically from VDF.
>
> I would like to select a .doc from a list stored in a dataflex data file
> and
> use Word to print this .doc file to a printer driver that will generate a
> .TIF file.
>
> I have a Word8.pkg but do not have enough documentation to determine where
> to start or even know if this pkg is even suitable for what I want to do.
> Do I need an ActiveX component for this? I have also been told that it is
> possible to create a macro in Word and use that to do what I want.
>
> Any suggestions are welcomed.
>
> TIA,
>
> Erik
>
>