Re: PDF Writer help - office 97

Subject: Re: PDF Writer help - office 97
From: John Lilly <jlilly -at- IDCOMM -dot- COM>
Date: Wed, 22 Jul 1998 11:08:50 -0600

Ginna,

You get the error you mention when the PDFWriter97.dot template is
attached as the primary template and not as a global template. If you
are able to see the offending line of code, you must have the template
set as the primary template, since global template macros are not
viewable in the VB Editor window.

You can ensure that PDFWriter97.dot is always attached as a global
template by placing it in the Office startup folder, which is probably
located at:
C:\Program Files\Microsoft Office\Office\Startup\
(this path may vary on each machine)

In this scenario, when Word is launched, PDFWriter97.dot is attached as
a global template to the blank document (and every subsequent document)
that opens. PDFWriter97.dot runs an AutoExec.Open macro that calls its
own Main macro. The Main macro, in turn, calls another macro that sets
the proper path for Adobe's INI file. If this preparatory work does not
occur, for instance when the template is the primary template, you will
get the PrivateProfileString error.

If for some reason you really wanted to use PDFWriter97.dot as the
primary template, you could edit the PrintPDFFile macro so that the
first thing it does is call the Main macro, thereby ensuring the
preparatory work will be done.

I only found this out through painful trial and error. Hope it helps.
-John




Previous by Author: Re: 'directions below' or 'below directions'?
Next by Author: Re: Inserting a blank page in a Word PRN file
Previous by Thread: Re: PDF Writer help - office 97
Next by Thread: Tech Writer position open - Cambridge, MA USA


What this post helpful? Share it with friends and colleagues:


Sponsored Ads