Hi.

PDFCreator uses, as almost all of the PDF makers, a postscript printer on a 
FILE: port.
Once the file is done, it call GhostScript to convert the ps file to pdf (PDF 
Creator uses also a port manager to make this conversion automatic, but it 
isn't needed).

(You'll find all info on wiki searching PDF and even a class to manage all the 
stuff, I just don't remember the name right now and am too lazy to search it 
<s>).

So, you should be able to install a postscript printer on the FILE: port
Then in VFP : SET PRINTER TO NAME this ps printer.
Then : REPORT TO FILE tmp.ps
Then call the GhostScript cmdline exe (run or ShellExecute or whatever 
gswin32c.exe with the needed parameters) to convert the tmp.ps file to a PDF 
file.

That is.

Frédéric Steczycki 


> -----Message d'origine-----
> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> De la part de Peter Hart
> Envoyé : 12 novembre 2007 09:53
> À : [EMAIL PROTECTED]
> Objet : RE: [PDFCreator in VFP Application
> 
> 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_CURRE
> N
> T_USER)
> 
> .SetRegKey([AutoSaveFileName],lcAutoSaveFileName,lcFormKey,HKEY_CURRENT
> _
> USER)
> 
> .SetRegKey([SaveFileName],lcSaveFileName,lcFormKey,HKEY_CURRENT_USER)
> 
> .SetRegKey([AutoSaveFormat],lnAutoSaveFormat,lcFormKey,HKEY_CURRENT_USE
> R
> )
>       .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.
> 
> 
> 
> 
[excessive quoting removed by server]

_______________________________________________
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