How to suppress Save As dialog when using the Close button on an editable pdf

Environment: Windows 7, SDK 9, Adobe Acrobat Pro X, Visual Studio 2010 Professional
Summary: when a document is opened for editing using automation, edited, then closed using the "Close" button, the confirmation dialog appears, "yes" is selected and then the "Save As" dialog appears.  It should save without the "Save As" dialog in the same way it does were the document opened from Adobe Acrobat directly.  My question is, is there any flag to set which governs whether the "Save As" dialog appears as part of the close document process.  It is behaving as if the document is read-only upon close. (it isn't)
This is how the document is opened from C++:
if(SUCCEEDED(hr = ::CoCreateInstance(__uuidof(Adobe9::Acrobat::CAcroAVDoc), 0, CLSCTX_ALL, IID_IUnknown, (void**)&pUnk))){
hr = OleRun(pUnk);
if (SUCCEEDED(hr)){
if (SUCCEEDED(hr = pUnk->QueryInterface(&pAVDoc))){
hr = pAVDoc->Open((BSTR)CComBSTR(strPath), strDocName, &bRet);
Even when the plugin is removed from the plug_ins\AcrobatSDK directory, the behaviour is the same.
Another reproduction is running the BasicIacVC sample, commenting out all lines from gAcroPdDoc->Close(); in InitInstance() and returning TRUE.  If an editable document is opened using the sample, edited then closed using the "X" button, the confirmation dialog is followed by a "Save As" dialog as if it were a read-only document which it is not.
Any suggestions would be appreciated.
Regards,
Evan

Yes, it does.  (as long as the pdf has been opened via a COM interface)

Similar Messages

  • How to avoid the "Save As" dialog when using "Close Button"

    Hello All,
    I am facing a problem while closing a pdf file.
    I am using the following code to Open a pdf file.
    CAcroApp objAcroApp = new AcroAppClass();
    CAcroAVDoc objAVDoc = new AcroAVDoc();
    objAVDoc.Open(C:\\new.pdf,Sample);
    objAcroApp.Show();
    After opening the document I am **** some changes (adding markup) in the file.
    Then I am closing the file using the Close Button and in YES for the save confirmation dialog.
    Here is the problem.
    After giving YES, I am getting a Save As dialog with "Sample.pdf" in the FileName box.
    I am getting this only in Acrobat 9.0.
    When I tried the same in Acrobat 8.0 I didnt get Save As dialog. It saved with out "Save As" dialog in "C:\\new.pdf".
    I need to give the same behavior in both Acrobat 9.0 and 8.0.
    Please help me out to fix this issue. Thanks in advance.
    Regards,
    Mohd Mustafa SK

    In what you have posted, there is no reason it shouldn't work the same way in Acrobat 9. I would recommend that you submit your complete application to developer support.

  • I am using a Microsoft Natural keyboard and when i use the close button on Ver. 5.0 or newer it closes the whole screen not just the active tab is there a fix for this

    I am using a Microsoft Natural 4000 Keyboard
    IF I update to Mozila 5.0 when i use the close button it shuts down the whole browser nut just the active tab
    Is there a workaround for this because I like the close button feature

    Could you try disabling graphics hardware acceleration? (I'm having trouble determining from your "More system information" whether it's enabled or disabled.) Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You usually need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    orange Firefox button ''or'' classic Tools menu > Options > Advanced
    On the "General" mini-tab, uncheck the box for "Use hardware acceleration when available"
    If you restart Firefox, is the issue resolved?

  • When using the share button in safari, I get a no service message. Where do I correct this?

    when using the share button in safari, I get a no service message. Where do I correct this?

    Follow the instructions in this article released by Apple.
    http://support.apple.com/kb/HT6545?viewlocale=en_US
    Best.

  • I have an iPhone 3GS and it recently started to make a Cicada type of sound when pushing the close button on the top right hand of the phone. Can anybody give me feedback on what this is or how I might be able to fix it?

    I have an iPhone 3GS and it recently started to make a Cicada type of sound when pushing the close button on the top right hand of the phone. Can anybody give me feedback on what this is or how I might be able to fix it?

    It will be replaced with the exact same model. It is not expensive compared to the full retail price of a new phone (without carrier subsidies).
    If you're eligible for an upgrade from your carrier, now might be a good time to consider upgrading to an iPhone 5, though.

  • How can you backup your iPhone without using the front button?

    My front button doesn't work again. Had this fixed a week ago and it stopped working again.
    So how do I backup the iPhone without being able to close the email account it is in now and get to the Settings without using the front button?

    Restart your iphone by using the power button. After the restart you will be able go to the settings and enable assistive touch!

  • Clicking noise when using the 'mouse' button

    I'm not sure what the button is called, but I'm sure ya know what I mean. I've had my macbook since August and this had just started happening. When I used the clicking button, it's harder to press, almost like there's something under it, and it makes a noise like it's getting stuck but then going down all the way. Anyone else have this issue or know what's causing it? Should I just get a mighty mouse?

    Follow the instructions in this article released by Apple.
    http://support.apple.com/kb/HT6545?viewlocale=en_US
    Best.

  • How to create a jframe which has only the close button

    hi
    i want to create a jframe which hold only the close button on the title bar. just like an JOptionPane.
    hussain52

    Well, if you are in a window's environment and using forte, you can go to sample forms, MDI, and then just highlight and delete what you don't want from the menubar.

  • How to Avoid Save As dialog when Saving

    We recently upgraded Adobe Reader X to XI.  One difference between the two is the behavior of the Save function the first time it is performed.  In Reader X, when Save was selected, the file would simply save the current file, overwriting the original file.  In Reader XI, when Save is selected, the Save As dialog box appears, and if the user does not change the file name or path, a warning pops up asking whether the existing file should be overwritten. I understand that this behavior is a result of Protected Mode being enabled.  Is there a way to keep PM enabled, but always allow files to be overwritten as was the case in Reader X? 

    Yes, it does.  (as long as the pdf has been opened via a COM interface)

  • How to give save as dialog box using servlet?

    hello,
    i am building one application where i am generatinfreport in excel format.
    now the file generated is output.xsl.
    this is in c:\bea\wlserver6.1 directory.
    now i want to write a servelt get this file from location given above and give user Save As dialog box.
    can anybody provice me sample code from this....
    thank you.

    Hi,
    Hope the following code snippet helps, Put this in your doGet/doPost method.
    FileInputStream fileInputStream = null;
    ServletOutputStream out = response.getOutputStream();
    String srcfile = "c:\bea\wlserver6.1\myxsl.xsl";
    String destfile = "myxsl.xsl";
    response.setContentType("text/xml");
    response.setHeader("Content-Disposition","attachment; destfile=\""+ filename + "\"");
    try {
         fileInputStream =new FileInputStream(srcfile);
         int i;
         while ((i=fileInputStream.read()) != -1) {
              out.write(i);
    }catch (Exception e){
         System.err.println (e);
    }finally{     
         fileInputStream.close();
         out.close();     
    Good Luck,
    Rajesh

  • How to get a report "closed" when using the ReportViewerBean

    I read the article /people/ted.ueda/blog/2008/12/20/crystal-reports-for-eclipse--ensuring-report-cleanup from Ted Ueda regarding cleaning up reports for the RAS server.  However, I'm trying to figure out how to get this accomplished for a thick client accessing a local rpt file and then displaying that file using the ReportViewerBean.  I can't seem to get the report closed. I tried the dispose() techniqe from the article, but with no success.
    My basic process is:
    1) Press button on main frame to open and set up report
    2) Pass open report (via ReportClientDocument) object to the viewer frame class (which views report in separate window using ReportViewerBean)
    3) Close viewer window when done, destroy ReportVieweBean and close ReportClientDocument
    4) Press button again on main frame later to view report
    If I set up the report but skip the step of sending the report to the viewer frame, ReportClientDocument.isOpen() will go from true to false after I execute just  the ReportDocumentClient.close() command.  However, if open the viewer frame, I cannot get the report closed.
    In the window closing event for my viewer window I have:
    public void quit() {
                try {
                    CrystalReportViewer crv1 = new CrystalReportViewer();
                    crv1.setReportSource(reportClientDoc.getReportSource());
                    reportViewer.destroy();  //this is a ReportViewerBean
                    reportClientDoc.close();  //this is a ReportClientDoc
                    crv1.dispose();
                    //the following is always true
                    System.out.println("ReportClientDoc.isOpen: " + reportClientDoc.isOpen());
                    this.dispose();
                catch(ReportSDKException ex) {
                    ex.printStackTrace();
                catch(ReportSDKExceptionBase ex) {
                    ex.printStackTrace();
    I'm using the latest Java CR4E 12.2.205.825 downloaded from the CR4E website.  Any ideas?
    Edited by: Joseph Huber on Mar 16, 2010 8:13 PM

    The webservices you are trying to use are not the ones used for enterprise, they are used for non-enterprise applications accessing reports that are stored in a specific location on the web server.
    Here are samples that use our Enterprise SDK:
    [https://boc.sdn.sap.com/samples/84/1193|https://boc.sdn.sap.com/samples/84/1193]
    Here are samples that use our Enterprise Web Service SDK:
    [https://boc.sdn.sap.com/samples/84/1197|https://boc.sdn.sap.com/samples/84/1197]
    You can also look at the SDK documentation available here:
    [http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm]

  • How can I stop a JFrame from closing when clicking the close button.

    I need to display a dialog when a user attempts to close my app, giving them the option to close, minimize or cancel. How can I stop the form from closing after the user makes his selection? I have the folllowing code, but my form still closes after selecting an option:
    private void formWindowClosing(java.awt.event.WindowEvent evt) {                                  
            //An array of Strings to be used a buttons in a JOptionDialog
            String[] options = {"Close", "Minimize", "Cancel"};
            //Determines what the user wants to do
            int result = JOptionPane.showOptionDialog(null, "What to you want to do?  Close the application, minimize or cancel?", "Please select an option...", 0, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);
           //Determines what to do, depending on the user's choice
            if (result == 0) {
                //Close the application
                System.exit(0);
            } else if (result == 1) {
                //Minimize the application
                this.setState(Frame.ICONIFIED);
        }Any help would be much appreciated!

    import java.awt.event.*;
    import javax.swing.*;
    public class test extends JFrame {
         public static void main( String[] args ) {
              new test();
         public test() {
              setSize( 200, 200 );
              //the next line makes the JFrame not close
              setDefaultCloseOperation( JFrame.DO_NOTHING_ON_CLOSE );
              //now add a listener that does the trick
              addWindowListener( new WindowAdapter() {
                        public void windowClosing( WindowEvent e ) {
                             //ask the user and do whatever you wish
              setVisible( true );
    }

  • Logic crashes when using the "Close Project without Saving" key command

    The "Close Project without Saving" key command does not work in LP8. When I try to use it, Logic crashes. This is reproducible on my system. Can anyone try and confirm this?

    For me this shortcut is quite important on stage when I have to switch songs as fast as possible. It also is foolproof because on stage I never want to save with all the controller changes I did during a performance.
    Just hit the key command, load the next song, done.
    Message was edited by: cronbg

  • REP-50134 occurs when using the submit button on the Reports Parameter Form

    Good Morning,
    I get the "REP-50134: Cache subitem reports does not exist" error after clicking on the Submit Button from a Reports parameter form.
    I am using Forms/Reprots 9i.
    Using the source code given in the Whitepaper 'Oracle Forms Services - Using Run_Report_Object() to call Reports with a parameter form', all works well when paramform=no, but when I have a Form print a report with paramform=yes, the parameter form appears correctly, but generates the error after clicking the Submit Button.
    Any inputs as to causation or possible places to look to solving this problem would be greatly appreciated.
    Thank you

    Hello and thanks.
    The value in the tag is <form method=post action="reports?">
    Looking at this I suspect my problem is related to this setting. I am trying to follow all the instructions in the White Papers but they are a little confusing as they are not all exactly the same. Each attempts to explain a specific functionality without regards to the whole.
    For instance I believe I need to have the variables P_ACTION, P_USER_CONNECT and P_SERVER_NAME in the report being called and then add a Before Parameter Form trigger to reset the values. But this seems to duplicate and override what has already been sent via the REPORT_OTHERS property. It is a tad bit confusing.
    Can you confirm?
    Thanks for any clarification you can provide.

  • Why does Safari refresh the page when using the back button?

    Safari didn't use to do this.
    Even on these forums, when you hit the back button to go back exactly where you were at, if there are new posts, the entire page may have changed. I knew exactly the next post I wanted to look at before the page was refreshed. Now, I can't even find the post I wanted to read unless I scroll through the entire list again.
    I need to be able to go back to the page I was just on and not have it refresh.
    I need to go back exactly where I was.
    Safari can't even go back properly as it wants to go back near the top of the last page I was on.
    I need it to go back exactly where I was at.
    I have no idea what the engineers are thinking about this one.
    FireFox works properly when going back to the prior page.
    I have long lists on pages I work with.
    For example:
    1. through 1,000.
    If I am on reference number 500 on the previous page, when I hit back, it goes all the way back up to around 20 in the list.
    I have to then scroll manually page down to 500 where I was at.
    This is tedious, cumbersome and unnessesary.
    Safari was much better before it was updated to this horrible behavior.
    I don't know of any preferences you can change to change this odd behavior.
    Anyone know of anyway to stop this horrible behavior in Safari?
    This is like reading a book, but when you go back a page, the entire page may have changed and I have no idea where I was at.
    Pretty $iss poor in my opinion.

    Yes, that is correct.
    However, you can also use the mouse or trackpad to swipe back a page and it still refreshes the last page.
    Safari never did this back in Snow Leopard and maybe some versions of Safari in Lion.
    However, Safari in Mountain Lion always does this.
    It is very cumbersome using the "open link in new window" or "open link in new tab".
    It was much better just being able to click the back button or swiping to get back exactly where you were on the prior page.
    Hopefully more people will send Apple feedback on this.
    Thanks for sharing.

Maybe you are looking for

  • How to calculate aging iin query desiner in bi7.0

    Hi all, can any help me how to write a formula in bex  QUERY desiner bi7.0 acullay i have service order creation date in my cube ERDAT and business requirements is calculate the aging i want to minus the current date with creation date and i need the

  • How to save individual tabs in oracle dynamic shell

    Hi,, When I press the save button in a tab on my adf application the other opened records in the other opened tabs are affected and validated by this button!!! I want to save the content of the current tab only Edited by: 996170 on Mar 26, 2013 2:05

  • How to improve the performance of General information in MSS

    HI, We are facing with critical performance issue in General information screen of MSS. For one employee number of subordinates are more than 3500 and because of this no of database hits for fetching all the records are more than 20,000 and each data

  • Change screen when clicking on add a tab?

    I've tried the add-on to make the new tab a specific one like yahoo or something else. I also tried going in to make the change using the about:config and browser.newtab.url. They both don't work. The original spam "Bing" search website url does not

  • Foreign trade data is incomplete for the line item eg 70!

    Dear Sapients, I have encountered an issue related to invoice while releasing it to accouting. The invoice is done for several line items but the problem is faced for one line item only, could any one suggest the possible solution please. Regards. Ko