Environment variable in settings.dat

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

mr_steph
User
Posts: 52
Joined: Tue Jul 22, 2008 8:18 am

Environment variable in settings.dat

Post by mr_steph »

Hi,

it's possible to use Environment variable (%TEMP% or %TMP%) in settings.dat.
i actually use "LoadSettings" function and i need to control the temporary path of downloaded pdf to trash it after consultation.

if it's not possible, have you another method?

Thanks
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Environment variable in settings.dat

Post by Stefan - PDF-XChange »

Hello mr_steph

I will speak with the guys in the dev team now and we will try to answer your question soon.

Cheers,
Stefan
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Environment variable in settings.dat

Post by Vasyl - PDF-XChange »

Hi, mr_steph.

We cannot resolve the %TEMP% (or other environment variables) in the path-names from the settings.dat.
We use the end-user's temporary directory (GetTempPath and GetTempFileName API-finctions used for this) for internal requirements and it cannot be changed by developer's in the current version.

But if you refer to "Open from URL" feature then the download-directory can be changed programmatically by:

Code: Select all

ax.SetProperty("Documents.DownloadFolder", "<YourCustomDownloadFolder>", 0);
Please provide some more details regarding this case as probably we can help you more..

Best
Regards.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.