Hi John

Still having problems.  Even using registry.prg to hack the registry
only partly works.  I am able to change most of the keys but the
"UseAutosave" key refuses to change.  I can get it to partly work by
using the PDFCreator program options to set that key.

I am using the following code.

lnUseAutosave = "1"
lnUseAutoSaveDirectory = "1"
lcAutoSaveDirectory = "C:\PurchaseOrders\PDFs\"
lcAutoSaveFileName = lcFileName
lcSaveFileName = "C:\PurchaseOrders\PDFs\" + Alltrim(lcFileName)
lnAutoSaveFormat = "0"

#Define DevCoName       [PDFCreator]
#Define AppName [Program]
#Define HKEY_CURRENT_USER       -2147483647

lcFormKey = [SOFTWARE] + [\] + DevCoName + [\] + AppName

oReg = Newobject([REGISTRY],[C:\PurchaseOrders\Progs\Registry.prg])

lnKeyExists = oReg.openkey(lcFormKey,HKEY_CURRENT_USER)
oReg.CloseKey()

With oReg

        .openkey(lcFormKey,HKEY_CURRENT_USER,.T.)
        
.SetRegKey([UseAutosave],lnUseAutosave,lcFormKey,HKEY_CURRENT_USER)
        
.SetRegKey([UseAutosaveDirectory],lnUseAutoSaveDirectory,lcFormKey,HKEY_
CURRENT_USER)
        
.SetRegKey([AutoSaveDirectory],lcAutoSaveDirectory,lcFormKey,HKEY_CURREN
T_USER)
        
.SetRegKey([AutoSaveFileName],lcAutoSaveFileName,lcFormKey,HKEY_CURRENT_
USER)
        
.SetRegKey([SaveFileName],lcSaveFileName,lcFormKey,HKEY_CURRENT_USER)
        
.SetRegKey([AutoSaveFormat],lnAutoSaveFormat,lcFormKey,HKEY_CURRENT_USER
)
        .CloseKey()

Endwith


Will let you know if I get any further but as the Client is able to
click the right buttons I am working on The Goods Delivery Notes part of
the project.  This will also need to send pdf's so will revisit this
problem later this week.

Cheers

Peter Hart
Peter Hart Computers

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of John Harvey
Sent: 12 November 2007 03:47
To: 'ProFox Email List'
Subject: RE: [PDFCreator in VFP Application

Did you ever find the answer to this question? I have a similar need -
to be
able to print word docs to pdfs without any user intervention.

John Harvey

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf
Of Peter Hart
Sent: Sunday, November 11, 2007 7:42 AM
To: ProFox Email List
Subject: RE: [PDFCreator in VFP Application

Hi All

Anyone using PDFCreator to produce a PDF File from within a VFP
application.




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to