Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternative to Amyuni
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01272773
Message ID:
01273122
Vues:
26
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=92227
and 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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform