cOutputFileName

Using PDFCreator 1.6.1 from Visual Foxpro with following code:

loPDF.cClearCache

loPDF.cVisible = .F.

loPDF.cStart("/NoProcessingAtStartup")

loPDF.cOption("StartStandardProgram") = 0

loPDF.cOption("StandardAuthor") = "xxx"

loPDF.cOption("StandardTitle") = "yyy"

loPDF.cOption("UseStandardAuthor") = 1

loPDF.cDefaultPrinter = "PDFCreator"

loPDF.cOption("AutosaveFormat") = 0loPDF.cOption("AutosaveDirectory") = lcPdfPath

loPDF.cOption("AutosaveFilename") = lcPdfName

loPDF.cPrinterStop = .F.

loPDF.cOption("UseAutosave") = 1

loPDF.cOption("UseAutosaveDirectory") = 1

 

Everything works for hundreds of reports but the value in

cOutputFileName is different from the value provided in lcPDFName.

I specify lcPDFName:

oGoPDFCreatorConsole1_201212241230153402_DF_201212050949590130_122000166.X937.pdf

and the file created and specified in cOutputFileName is:

oGoPDFCreatorConsole1_201212241230153402_DF_201212050949590130_122000166.pdf

 

Is there a reason for this change in filename and is there a way I can ensure the filename created is the same as specified.

Thanks

Hi,

could it be, that X937 for any reason is a known file extension for your system?
Maybe it will help disabling “RemoveAllKnownFileExtensions” in the hidden settings.
http://www.pdfforge.org/content/hidden-settings

regards,

Robin