Save.ShowSaveDialog initial directory wrong

This Forum is for the use of End Users requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers only - Please do not post requests for older versions of PDF-XChange or the PDF-Tools/OFFice2PDF applications here

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan

Post Reply
musabio
User
Posts: 26
Joined: Tue Jun 20, 2006 12:22 am

Save.ShowSaveDialog initial directory wrong

Post by musabio » Tue Mar 17, 2015 10:02 pm

When the Save.ShowSaveDialog is enabled, the dialog starts in the directory last used in a prior save, rather than in the directory corresponding to the Save.File and/or Save.Path value. You can reproduce this in the CExAPI sample program by just enabling the option. You'll see that the dialog comes up defaulting not to the location of the full path specified in Save.File, but to the last saved location. (When the dialog is disabled, the file gets saved in the proper location.)

This is a change from the version 3 driver API, and creates an obstacle for us upgrading, because we like to provide the flexibility for the advanced user to override the location, but 99% of the time, users just click Save to use the location pre-determined by our app, which changes for different reports/circumstances.

Is there a way to override it to default to the directory matching the Save.File full filespec? Or is it a bug that can be fixed?

Thanks!

Ivan - Tracker Software
Site Admin
Posts: 3620
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Save.ShowSaveDialog initial directory wrong

Post by Ivan - Tracker Software » Wed Mar 18, 2015 5:40 pm

Please set pPrinter->Options["Save.UseLastPath"] = 0;
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

musabio
User
Posts: 26
Joined: Tue Jun 20, 2006 12:22 am

Re: Save.ShowSaveDialog initial directory wrong

Post by musabio » Wed Mar 18, 2015 9:56 pm

Works like a charm - thanks!

As an aside, is it intentionally undocumented, or is there a later (than April 17, 2014) version of the PDF-XChange Drivers API SDK 2012 User Manual?

Thanks again,
Jack

Ivan - Tracker Software
Site Admin
Posts: 3620
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Save.ShowSaveDialog initial directory wrong

Post by Ivan - Tracker Software » Thu Mar 19, 2015 12:25 am

No, not intentionally. Will update the documentation.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

Post Reply