For several years we have successfully used PDFCreator on XP systems to print graphics and reports to a PDF file from an ultrasound diagnostic program. This program produces reports for a variety of printers using common code with only scaling differences depending on the printer selected.
By manipulating the AutosaveFilename key in the registry (HKCU\\Software\\PDFCreator\\Program) we are able to create a unique name for each report and have it saved in a predetermined folder.
When the application was migrated to Windows 7 it ran successfully in most aspects except that it no longer created any output file. I have searched for any similar problems reported by other users and, while I’ve found a lot of people have had trouble getting PDFCreator to run on Win 7, I haven’t come across anyone that seems to have our exact problem.
We have tried installing newer versions of PDFCreator and while these all print a test page properly and print out of other programs like Word, none of these versions work for our application where we define the registry configuration values “on the fly”…we fail to get any output file created…no errors or permissions complaints, just no file.
Here is the batch file we use to install PDFCreator:
echo off
rem Install the printer software
PDFPrinter.exe /SILENT /NOICONS /SP /DIR="C:\\PDFPrinter" /REGFile="C:\\PDFPrinter\\PDFOptions.reg" /GROUP="UltraView"
rem Set the path for following modificatons
set path=C:\\PDFPrinter\\
rem Remove the scripts and com folder
rd %path%Scripts /S /Q
rd %path%COM /S /Q
Here is the configuration values we set in the registry @ [HKEY_CURRENT_USER\\Software\\PDFCreator\\Program]:
"AutosaveDirectory"="C:\\\\EXAMINATIONS\\\\xxx_Subject_T"
"LastsaveDirectory"="C:\\\\Examinations\\\\"
"Language"="english"
"PrinterTemppath"="C:\\\\Program Files\\\\UltraView\\\\PDFPrinter\\\\Temp\\\\"
"AdditionalGhostscriptParameters"=""
"AdditionalGhostscriptSearchpath"=""
"AddWindowsFontpath"="1"
"AutosaveFilename"="xxx_Subject_Test (07-31-12 10.20)-1.pdf"
"AutosaveFormat"="0"
"AutosaveStartStandardProgram"="0"
"ClientComputerResolveIPAddress"="0"
"DisableEmail"="0"
"DontUseDocumentSettings"="0"
"FilenameSubstitutions"="Microsoft Word - |\\\\.doc|\\\\Microsoft Excel - |\\\\.xls|\\\\Microsoft PowerPoint - |\\\\.ppt|"
"FilenameSubstitutionsOnlyInTitle"="1"
"Logging"="0"
"LogLines"="100"
"NoConfirmMessageSwitchingDefaultprinter"="0"
"NoProcessingAtStartup"="0"
"NoPSCheck"="0"
"OptionsDesign"="0"
"OptionsEnabled"="1"
"OptionsVisible"="1"
"PrintAfterSaving"="0"
"PrintAfterSavingDuplex"="0"
"PrintAfterSavingNoCancel"="0"
"PrintAfterSavingPrinter"=""
"PrintAfterSavingQueryUser"="0"
"PrintAfterSavingTumble"="0"
"PrinterStop"="0"
"ProcessPriority"="1"
"ProgramFont"="MS Sans Serif"
"ProgramFontCharset"="0"
"ProgramFontSize"="8"
"RemoveAllKnownFileExtensions"="1"
"RemoveSpaces"="1"
"RunProgramAfterSaving"="0"
"RunProgramAfterSavingProgramname"=""
"RunProgramAfterSavingProgramParameters"="\\"\\""
"RunProgramAfterSavingWaitUntilReady"="1"
"RunProgramAfterSavingWindowstyle"="1"
"RunProgramBeforeSaving"="0"
"RunProgramBeforeSavingProgramname"=""
"RunProgramBeforeSavingProgramParameters"="\\"\\""
"RunProgramBeforeSavingWindowstyle"="1"
"SaveFilename"=""
"SendEmailAfterAutoSaving"="0"
"SendMailMethod"="0"
"ShowAnimation"="1"
"StartStandardProgram"="1"
"Toolbars"="1"
"UseAutosave"="1"
"UseAutosaveDirectory"="1"
"LastUpdateCheck"="20120730
I hope someone can suggest something we can try to fix this problem.
Many Thanks