[Vista/v0.9.5] Problem with PrinterTemppath (+ solution)

2008-02-08 14:31:20 by clemdoc

Hi!

I have not found anything about this topic in previous posts, therefore...

We had a Problem of PDFCreator v0.9.5 not generating PDFs (we're using the COM-Interface and generally, everything works fine) on certain machines with Windows Vista installed.

It turned out, that PDFCreator wanted to use $Programdir\Temp as PrinterTemppath, and Vista didn't like writing in anything under $Programs.
Therefore, we're now using the user's Temp-Path as PrinterTemppath and everything works as expected.

greetings, clem

example:
-----
Public WithEvents myPDF As PDFCreator.clsPDFCreator
Set myPDF = New clsPDFCreator
'sTempDir obtained by calling GetTempPath from kernel32
myPDF.cOption("PrinterTemppath") = sTempDir
myPDF.cSaveOptions
-----