Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ghostscript Registry Call for Vista

Status
Not open for further replies.

whateveragain

Programmer
Apr 20, 2009
92
US
Does anybody know the correct registry call for Vista for Ghostscript? This is working when I run the app thru VFP programming application, but as an executable it does not work.
I think this path is the culprit as I'm guessing this is the proper path: ","c:\Users\NewUser\Documents\Visual FoxPro Projects\Visual FoxPro.pdf"

plGhost=oRegistry.WriteRegistryString(HKEY_LOCAL_MACHINE,;
"Software\GPL Ghostscript\8.64",;
"DefaultPDFOutput","c:\Users\NewUser\Documents\Visual FoxPro Projects\Visual FoxPro.pdf")

 
I don't know ghostscript but my best guess is that your .exe is not running as Admin so is unable to write to HKEY_LOCAL_MACHINE. Is there an option to use HKEY_CURRENT_USER instead?

Otherwise i can recommend the pdf output from XFRX....

Nigel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top