We have files that are named xxxx.xxxx.xxx.ext. (not my doing)
When I use PDF creator either as a standard printer or using code as below, it sometimes removes the last 3 xxx from the filename.
I have stepped through the code, and checked the _PDFCreator.cOptions after saving them, and the values I want are set, but it still drops that section on some files.
For example 3100.5001.001.idw got saved as 3100.5001.pdf, but file 3100.5101.000.idw got saved as 3100.5101.000.pdf like it should.
Dim opt As New PDFCreator.clsPDFCreatorOptions
opt = _PDFCreator.cOptions
With opt
.UseAutosave = 1
.UseAutosaveDirectory = 1
.AutosaveDirectory = SaveDir
.AutosaveFormat = 0
.AutosaveFilename = PDFName
End With
_PDFCreator.cOptions = opt
_PDFCreator.cSaveOptions()
Hi,
this happens if the chars behind a dot equal a filetype description which is registered or your machine (.001 could be associated with winrar for example). You can change this behaviour using the hidden settings (http://www.pdfforge.org/content/hidden-settings)
regards,
Robin