For testing, put Many2PDF Activex on a form, name it 'oMany2PDF' and put following code in a button on the form
lcCurDir = FULLPATH("")
CD "C:\Program Files\Gnostice\Many2PDF ActiveX.NET"
lcRtfFile = GETFILE("RTF", "Pick RTF to covert")
CD (lcCurDir)
IF NOT EMPTY(lcRtfFile)
WITH Thisform.oMany2PDF
.PrefShowSetupDialog = .F.
.PrefOpenAfterCreate = .T.
.InputFile = lcRtfFile
.OutputPDFFileName = FORCEEXT(lcRtfFile, "PDF")
.RenderDocument()
ENDWITH
ENDIF
>
>Thanks in advance for any help, I'm trying to use Many2PDF to generate PDF from RTF files, I think my declaration code is wrong or something is missing because I cannot make it work. Basically my project is to generate PDF files from RTF.
>
>Thanks a lot for any help.
>
>Juan
--sb--