There are
http://fox.wikis.com/wc.dll?Wiki~OpenOfficeConstants that help when converting openoffice macros for use with VFP. Lots of excellent examples at
www.OOoForum.org As an example, download the VFP code from
http://sourceforge.net/project/showfiles.php?group_id=87718&package_id=92227and create a program with the following:
set procedure to libOOo additive
lcDocFile = 'c:\temp\myfile.doc'
lcPDFURL = "file:///" + Chrtran( Forceext(lcDocFile, '.pdf'), "\", "/" )
oDesktop = OOoGetDesktop()
Local cURL
cURL = "file:///" + Chrtran( lcDocFile, "\", "/" )
Local Array aNoArgs[1]
aNoArgs[1] = OOoPropertyValue( "Hidden", .T. )
loDoc =oDesktop.loadComponentFromURL(cURL,"_blank", 0, @aNoArgs)
Dimension aOneArg[3]
aOneArg[1] = OOoPropertyValue( "Overwrite", .T. )
aOneArg[2] = OOoPropertyValue( "FilterName", "writer_pdf_Export" )
aOneArg[3] = OOoPropertyValue( "CompressMode" , 2)
= loDoc.storeToUrl( lcPDFURL, @ aOneArg )
Ken
>>check out ghostscript. It is free and works well but it does take a little more work on your side.
>>
>>John
>
>I've been toying with trying to get several of these things to let me create the pdf silently (with a filename I create), but it ain't happening. Do you have any code that will do that?
>
>This is for a word document, not a foxpro report.