Porting from CS4 to CS5, save document failed.

I am porting programes from CS4 to CS5, and meet a problem.
In my program I need delete some page from a indesign document and then save it back.
I open the document use the code below
InterfacePtr<IK2ServiceRegistry>    serviceRegistry(Porting::GetPointerToSession(), UseDefaultIID());
        ASSERT(serviceRegistry);
        if (!serviceRegistry)
            break;
        InterfacePtr<IK2ServiceProvider> openManagerService(serviceRegistry->QueryDefaultServiceProvider(kOpenManagerService));
        ASSERT(openManagerService);
        if (!openManagerService)
            break;
        InterfacePtr<IOpenManager>  openManager(openManagerService, IID_IOPENMANAGER); // no kDefaultIID
        ASSERT(openManager);
        if (!openManager)
            break;
        UniFile fileDocument = fTemplateCopyFile;
        UIDRef DocumentRef = openManager->OpenDocFromFile(&fileDocument,kFullUI);
and then delete some page
for( int i = 0; i < fnPageCountOfCopy; ++i )
            UID idPage = fvPageUID[i];
            if ( fPageIDList.DoesNotContain(idPage) )
                UIDRef refPageToDelete( fTemplateCopyUIDRef.GetDataBase(), idPage );
                InterfacePtr<ICommand> deleteCmd(CmdUtils::CreateCommand(kDeletePageCmdBoss ));
                if( deleteCmd )
                    UIDList tempList(refPageToDelete);
                    deleteCmd->SetItemList( tempList );
                    ErrorCode status = CmdHelper::ProcessCommand( deleteCmd );
then save it back
pOldHandler->SaveAs(fTemplateCopyUIDRef,
            &fTemplateCopyFile,
            K2::kSuppressUI,
            kFalse,
            kInDesignFileTypeInfoID);
but save failed. The code works on CS4, but does not work on CS5.
Does anybody know why? Any suggestion is appreciated.

I found that delete operation will affect save operation, but I don't know why and how to solve it.
Is it a threading problem?

Similar Messages

  • Porting from CS4 to CS5

    Im trying to port some plugins from CS4 to CS5. During the process I encounter several errors. Once of them is listed below.
    Error 1 fatal error C1189: #error :  DEBUG and NDEBUG are out of sync!    // $$$ need to set NDEBUG in release builds c:\program files\adobe\cs5\indesign product sdk\source\public\includes\K2Debugging.h 53

    Pectora:
      Check the C++/Preprocessor/Preprocessing Definitions field in your Project Properties dialog.  Make sure that your Debug version has a "DEBUG" definition placed in there, and that your release version has an "NDEBUG" definition placed in there someplace.  My guess is that either you left one of them out, or that you have the DEBUG definition in your release properties.  Other possibilities are a failure to separate definitions properly or misspelling.
    HTH!
    P.S. I am assuming that you are working with VS8 on a Windows box.  This information should be included in your next submission just to make sure we are all working from the same starting point.

  • Copy New Document Presets from CS4 to CS5.5

    I had a number of document presets saved in InDesign CS4 and just realized that I don't know how to copy them from CS4 to CS5.5 so I don't have to recreate them again (which is what I've done in previous upgrades). I haven't found anythng that helps with the name or location of the presets. Can someone please point me in the right direction?
    Thanks!

    I am constantly losing my CS4 Indesign page presets. I did the define and stored the files. Today, I lost them again, so went to load my saved files, but only one preset saved. Not sure if it was the first preset saved or the last. Do you have to save for every document preset you make? I would think this would all be on one file. I am going to try again, just incase I forgot to save it correctly.

  • Switch from cs4 to cs5

    can someone please remind me how to move my actions and plug ins from cs4 to cs5?

    Copy them from the folders
    /Applications/Adobe Photoshop CS4/Presets/Actions
    and
    ~/Library/Application Support/Adobe/Adobe Photoshop CS4/Presets/Actions
    into the analogous CS5-folders.
    (~ meaning your user account)
    Edit: Previously unsaved CS4-Actions you would need to save first (or save them directly into the CS5-folders).

  • Import menu from CS4 into CS5 ?

    Hi
    I made a project and saved in CS4. In that project  I made a menu and saved as a set in the library.
    Now I opened the project in CS5 but cannot find the menu set I made in CS4.
    How can I import the menu set  from CS4 into CS5?
    Thanks

    Hi,
    Menu saved location is different for CS4 and CS5.
    You can save the menu as menu file or menu template from
    Menu -> Save menu as file or save menu as template.
    Or
    you can copy you menu set from CS4 to CS5.
    Below is the location where menu set saved -
    Win -
    C:\Users\<userName>\Appdata\Roaming\Adobe\Adobe Encore\4.0\Library\<setName>\<FileName>
    copy this file to
    C:\Users\<userName>\Appdata\Roaming\Adobe\Adobe Encore\5.0\Library\<setName>\<FileName>
    Mac
    /Users/<UserName>/Library/Preferences/Adobe/Adobe Encore/4.0/Library/<setName>/<FileName>
    copy this file to
    /Users/<UserName>/Library/Preferences/Adobe/Adobe Encore/5.0/Library/<setName>/<FileName>
    Thanks,
    Pankaj Gauba

  • An error occurred: Save document failed / An error occurred while saving the document: PATH (HDB 00055)

    Hello Colleagues, I am creating an analysis in build 576, everything goes well, the algorithm calculates the needed values, but when I try to save the analysis, I receive the following error message: "An error occurred: Save document failed / An error occurred while saving the document: <PATH> (HDB 00055)".
    Does anyone know what could cause this error message?
    Thanks a lot for any hint.
    Sergey

    Hi Henry,
    I am using PA 1.0.11 and received this error; any update on this fix for SAP PA. Does this happen for a particular data source.
    I am currently using Excel as source and whenever I try to use this data; I get this even if I move the data to a new file or rename a file. I tried to check the same issue with a different file and it works fine. This file worked fine a day back.
    Please let me know if this is unusual for this version.
    Regards,
    Arvind E

  • SaveAs Document Failed ... Deski document being saved to Favourites folder in Webi

    Post Author: amcc
    CA Forum: Administration
    I have been unable to work out what access right is needed for Webi users to be able to save a Deski document to their Favourites folder.  We have some migrated documents containing features that will not convert to Webi so have had to allow access to the Deski documents in the repository.  Anyone in the Administrators group can successfully save the Deski documents but other users cannot and get the message:
    SaveAs Document Failed (80043761)
    The same group of users can view and refresh the document without any problem.  They can also use 'Save to my computer as' without any problem.
    For an example group of users they have:
    1. View on Demand set on the universe2. View on Demand set on the universe connection3. View on Demand set on the folder containing the document4. Log on to Desktop Intelligence and view this object in the CMC set for the Desktop Intelligence application5. Save Desktop Intelligence Documents set for the Desktop Intelligence application6. Full Control of their Favourites folder.
    I've even tried changing the View on Demand settings to Full Control but it made no difference.
    What have I missed?

    Hi all,
    Even I have faced this problem,but the scenario is little different here.
    I have a deski publication report , which run sucessfully evry day but once in a while fails giving this error.
    SaveDocumentAs failed (80042908)
    When we run this report again it run fine.
    I am really wondered why this is happpening.
    Any suggestions on this. Thanks in advance.

  • How can I upgrade from CS4 to CS5/CS6?

    Hi, I really need to upgrade my Adobe suite from CS4 to CS5 or higher. From reading in this forum you are unable to do it, but those posts were from 2012. Wondering if this is still current and if anyone can help me? Do I need to buy the entire suite again from scratch? Surely not?
    I have a student version by the way.
    Thanks!

    You cannot upgrade from Photoshop CS4.  Those days are long past.
    While you can buy a full license for (the now outdated) Photoshop CS6, your most cost effective alternative may be to consider the Creative Cloud "Photographer's Bundle" subscription...
    Creative Cloud free trial & plans : Adobe Creative Cloud
    -Noel

  • Upgrade from CS4 to CS5--what functions in CS4 do I lose?

    By grading from CS5 to CS4, what functions will I lose in CS4? I see that the "upgrade" button is greyed out in CS4. Anything else?

    Just to be clear (and I don't think I was originally)...the upgrade is from CS4 to CS5. I see that CS4 is still available and operating. I just wanted to make sure it wouldn't become "dead" after upgrading to CS5.
    Thanks for all the information and responses.

  • Copy actions from CS4 to CS5

    Can't find out how to copy my own default actions from CS4 to CS5. I have found something called "imported" actions in CS4 and copied those - which worked - but I have other default actions that I cannot find out to copy from CS4 to CS5.

    [email protected] wrote:
    Hi there!  Mac User ...
    How do I move/copy my old actions from the CS4 actions folder to the CS5 one?
    Where is the location of those folders on my system?
    Many thanks!
    If you have them in the standard location for CSX they will be in:
    ~/Library/Application Support/Adobe/Adobe Photoshop CSX/Presets/Actions/
    Where 'X' is 4 or 5.

  • Moving swatches from CS4 to CS5

    I have just bought AI CS5 and have not been able to switch over all my saved swatches in "user defined" from CS4 to CS5. Can someone advise me on how to do this?  thanks.

    If you are on a Mac the user folder is here:
    Macintosh HD/Users/your user name/Library/Preferences/Adobe Illustrator CS4 Settings/en_US (or whichever language you use) . And the CS5 folder is in teh same place only called Adobe Illustrator CS5 Settings.
    I would use the ase export though and then import into AI CS5.

  • Easiest way to transfer 3rd party plugins from CS4 to CS5?

    CS5 is arriving tomorrow and I'd be grateful for a steer on the least painful way to move third party plugins from CS4 to CS5.  I am running W7 64bit.  Can I just copy the plugin folders at Program Files/Adobe/PhotopshopCS4 etc...Plugins and Program Files (86)/Adobe/PhotoshopCS4 etc. and replace the equivalent folders in CS5 with them?
    Thanks.

    Photoshop CS5 on Mac OS was reworked on a fundamental level to be able  to run as a 64-application under the 64-bit versions of Mac OS. Because  of this, old and 32-bit plug-ins won't run, can return errors, or cause  crashes when you use them in either the 32-bit or the 64-bit version of  Photoshop. See below for instructions on how to open Photoshop CS5 in 64-bit and 32-bit  modes.
    How to run Photoshop CS5 in 32-bit and 64-bit modes
    To  run Photoshop CS5 on Mac OS as a 32-bit application:
    Select the Adobe Photoshop CS5  application file, installed by default in the Applications/Adobe  Photoshop CS5 folder.
    Choose File > Get Info, and select Open in 32 Bit Mode.          
    Deselect this option to run Photoshop CS5 in 64-bit mode.
    To run Photoshop CS5 in Windows as a 32-bit application:
    Close Photoshop CS5.
    Navigate to the Program Files (x86) > Adobe > Adobe Photoshop  CS5 folder..
    Double-click the Adobe Photoshop CS5.exe file.
    To run Photoshop CS5 in Windows as a 64-bit application (if your  version of Windows and your hardware supports 64-bit):
    Close Photoshop CS5.
    Navigate to the Program Files > Adobe > Adobe Photoshop CS5  folder..
    Double-click the Adobe Photoshop CS5.exe file.
    This is my first post and hope it was helpful!!  8-)

  • SEO changes from CS4 to CS5

    My site that mainly has Flash was recently updated with a file made from CS5. In my google dashboard there are a lot of new keywords that are only in the Flash file. My page ranking also dropped from 4 to 11. Does anyone know if any changes from CS4 to CS5 could have caused this? If so, what can I do to disable this compatibility with search engines?

    I am not an expert on SEO matters and do not keep up with advancements relative to it.  It is unlikely the Flash version has anything to do with your SEO rankings.  SEO is based on the information that the engines can see when they read the page.  You should be able to see the words you mention listed in the embedding code if they are being included in your dashboard.  Flash will create comment tags in the html for different key elements in a file such as links used and whatnot.  As far as I know, they cannot yet see inside the Flash file, only the external embedding code that is used.

  • Transfering a file label from CS4 to CS5

    I have photos in Bridge CS4 that are labeled in colors.  I did change the name of the label from, e.g. Red to Printed, in CS4.  When I open the folders that contain the photos in Bridge CS5 the label color is white.  Is there a way to transfer the colors from CS4 to CS5???

    In actual fact a label is just text. If you changed the "red" label in CS4 to "Printed" then you will have to make the same change in CS5. If the label text of the image does not match what was defined in the Bridge preferences then the label colour shows as white.

  • How to transition from cs4 to cs5 safely?...

    Hi,
    My company is upgrading from cs4 to cs5, I have photoshop files with a lot of layers for website mockups that I will need to open and keep working on those. My concern is, if we upgrade, would I be able to open my old cs4 psd files in cs5 with all the layers intact? are the any risks or anything I should do before I get cs5 installed. We use window pc.
    Thanks

    Going from CS4 to CS5 will be no problem with file compatibility.  Are you sure you are not upgrading to CS6?  CS5 is no longer sold by Adobe.
    In CS6 there are some features for advanced editing that will not be seen in CS4.  However, if you have maximize compatibility checked you can still view them.
    Suggest leaving CS4 on machine so you can have it available if needed.  There is no conflicts between programs, although you can only have one running at a time.

Maybe you are looking for

  • IPad 3 camera not working

    Hello.. Just bought an iPad 3.. Just installed it and now when i open the camera, the schutter stays closed and i can't press any button. Also Photo booth is having issues. When i open it, the curtain opens and closes all the time, but won't open the

  • File Transfer Protocol

    Hi, For my project, am curretnly storing the files in local xi server directory.  We need to ask the client for a FTP server information. In order to achieve this, is it enough to ask just the file server name and port followed by user name and pwd.

  • Shift click on iPad with blue tooth keyboard doesn't select multiple images

    HI i have my iPad running iOS8 on Safari with a blue tooth keyboard In a WordPress slideshow website. The WP plugin does allow me to select multiple images on the computer but not on the iPad. IS there a way to make this work?

  • HFM: Sample Applications

    Do you know where can i can the instructions on how to load the sample applications? Because it says on the hfm_admin pdf that: Instructions for loading the sample files are included in the Documentation folder of each application. does anyone know w

  • Url paths on idisk

    I thought I had this down pat, but I don't know if i'm messed something up or if there are technical difficulties on Apples side with iDisk. I have used iWeb to create a website and am using .mac publishing. I was testing the application iPhoto Expor