TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
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