SEARCH

How to use the “OnShowSavePrompt?"

Setting bShow=false will disable the prompt when closing the ActiveX.


Setting the following will control how the PDF is handled without the prompt.

nResult=0 is not to save.

nResult=1 is to save.

nResult=6 no setting has been set.


private void axFoxitPDFSDK1_OnShowSavePrompt(object sender, AxFoxitPDFSDKProLib._DFoxitPDFSDKEvents_OnShowSavePromptEvent e){

    e.bShow = false;

    nResult=0 

}


Note: To disable the prompt from showing when a control like a form control, the application must check the form event before it close, and call ActiveX’s CloseFile.

For example, FormClosed event can call ActiveX CloseFile to disable saving or additional prompt.

private void Form1_FormClosed(object sender, FormClosedEventArgs e){

            FoxitActiveXControl.CloseFile();

}


   


Related Attachments:

Not Found
Does this solution help you answer your question?  
Email:
Tell us what we can do to improve this article:*
Image Verification:*
Request a new picture.