cannot save dialog detect operation

PDF-XChange Editor SDK for Developers

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

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
edvschu
User
Posts: 127
Joined: Fri Jun 25, 2010 6:54 am

cannot save dialog detect operation

Post by edvschu »

Hello,

if I want to save a PDF that is already open by another user, a cannot save dialog appears with the 3 options Retry, Save As .. and Close.
How do i detect which operation was executed?

Best Regards,
edvschu
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: cannot save dialog detect operation

Post by Sasha - Tracker Dev Team »

Hello edvschu,

If he hits Cancel, then operation will be terminated. If the user hits Save As or Retry, the entire method will start from the top from the e.document.beforeSave event. The Save As method can be distinguished with the PXV_DocSave_Copy flag that can be extracted from the https://sdkhelp.pdf-xchange.com/vi ... beforeSave https://sdkhelp.pdf-xchange.com/vi ... cSaveEvent.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
edvschu
User
Posts: 127
Joined: Fri Jun 25, 2010 6:54 am

Re: cannot save dialog detect operation

Post by edvschu »

Is there a way to catch close answer from dialog? In e.document.afterSave i see param1 and param2 contains not 0.
That shows an error occured. Then cannot save dialog is shown.

How can i hide save as button on dialog. User should not have that possibility.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: cannot save dialog detect operation

Post by Sasha - Tracker Dev Team »

Hello edvschu,

If you want to alter the message box - check this out:
viewtopic.php?f=66&t=31524#p127754

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply