Set default directory for browse dialog when inserting page

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

ap_mi
User
Posts: 47
Joined: Mon Aug 31, 2015 11:38 pm

Set default directory for browse dialog when inserting page

Post by ap_mi »

Hello,

Is it possible to set a default directory for the "browse" dialog when choosing the source file to insert a page (see image below)?

I know that a property exists to set a default file path to a file:

Code: Select all

m_cPDFView.SetProperty("Operations.InsertPages.File", _variant_t(_bstr_t("C:\\Temp\\PDF-XChange Viewer SDK.pdf")), 0);
However, I'm hoping to find a property where I can set the default directory that the browse dialog can look in.

Thanks in advance.

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

Re: Set default directory for browse dialog when inserting p

Post by Stefan - PDF-XChange »

Hello ap_mi,

If you set the "FromExternal" to True, and then set the "File" value here:
https://help.pdf-xchange.com/DEV/de ... =undefined
Does that help?

Cheers,
Stefan
ap_mi
User
Posts: 47
Joined: Mon Aug 31, 2015 11:38 pm

Re: Set default directory for browse dialog when inserting p

Post by ap_mi »

No, that doesn't help :(

I'd like to set a default directory for the browse functionality. After clicking browse I'd like the browse dialog to be looking in my specified directory.

Thanks for your help.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: Set default directory for browse dialog when inserting p

Post by Stefan - PDF-XChange »

Hello again ap_mi,

Passing this along to the dev team as well, and we will post back here as soon as we have further suggestions!

Regards,
Stefan
ap_mi
User
Posts: 47
Joined: Mon Aug 31, 2015 11:38 pm

Re: Set default directory for browse dialog when inserting p

Post by ap_mi »

Hello,

Any news on this?

Thanks.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Set default directory for browse dialog when inserting p

Post by Vasyl - PDF-XChange »

However, I'm hoping to find a property where I can set the default directory that the browse dialog can look in.
Sorry but no way to do it currently.
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.