How to save a document created in a path preset on hard drive?

I do loadtesting for Indesign server.

I have a created a Document with a custom installation (10 pages etc.). For this, I opened a page layout and I the DocRef to my just created document.

Now I want to save the document to a predefined path (which I can hard code in my code) on my system (lets say in the folder my documents).

Can what command I use to do this?

After a few tries, I was able to save the file under the code snippet using:

Save the doc

WideString filePath("D:\\TestFiles\\sampleFile1.indd");

IdFichier dataSourceFile = FileUtils::PMStringToSysFile (filePath);

IdFichier * dataSourceFile1 = & dataSourceFile;

InterfacePtr docFileHandler (Utils()-> QueryDocFileHandler (result));

If (! docFileHandler) {}

break;

}

If (docFileHandler-> CanSave (DocRef))

{

docFileHandler-> SaveAs (docRef, dataSourceFile1);

Error code = ErrorUtils::PMGetGlobalErrorCode();

ASSERT_MSG (a == kSuccess, "IDocFileHandler::Save failed");

If (a! = kSuccess) {}

break;

}

Tags: InDesign

Similar Questions

  • Windows Media Player - How to save photos in the library media player on my hard drive?

    I have recently more written inadvertently a lot of a very important .jpg files in my folder of photos but I found them in the windows media player library... However there is no record available option... How to save them in a folder that can access my photo editing software?

    There are 343 photos in a folder under my pictures... I crushed 42 photos... they appear in the library media player as the photos that more wrote the originals... but the media player library shows other 299 photos but they are NOT in the original folder... and I don't find them by searching even with the file name, the entire computer to research.

    I can see the images... I just do not know where they are stored.

  • How to save a document to format rich text and images in PDF format manually?

    How to save a document to format rich text and images in PDF format manually?

    Thank you!

    Most applications give the possibility to export or print in PDF format.

    What app did you use to create the document?

  • How to save a project created in Windows movie maker on a flash drive in. MSWWW format instead of. WMV format?

    If I understand well a previous answer, reinporting a project as mswmm allows rediting if the files are still on the computer.  Also, I am inclined to believe that the files remain available in the pane movie maker collections.  Am I wrong?

    > How to save a project created in Windows movie maker
    > to a flash drive in. MSWWW format instead of. WMV format?
    ===========================================
    When you save the project file... go to... File / save project as...
    Give the file a name (Summer Vacation.mswmm) and choose
    your save location.

    All the files (Photos, video clips, Audio clips) source should
    appear on the USB key and if you have the intention of re - edit the
    project on another computer... it should have the same
    version of Movie Maker. Sometimes a later version of the film
    Machine to will open the files but sometimes won't.
    ===========================================
    > If I understand an earlier answer, reinporting a project
    > mswmm format allows rediting if the files are still on the
    > computer.
    ===========================================
    This is correct. MSWMM is a Movie Maker project file which is
    is useful for a re-release in Movie Maker. And... the source files
    (Photos, video clips, Audio clips) should be available in the
    original locations...
    ===========================================
    > Also, I am inclined to believe that the files remain available in the
    > movie maker collections pane.  Am I wrong?
    ===========================================
    When a. MSWMM file project opens the thumbnails...
    remain available in the Collections of Movie Maker component as
    as long as the Source, the files are available in the places that they
    were imported initially from.

    If the source files have been moved, renamed, deleted or are
    unavailable, the thumbnails in the component Collections
    Movie Maker displays red Xs and the project cannot be
    edited.

    If the source files are still available... it is possible that you may
    Right-click the red Xs and navigate to the current location of the
    the source files and restore the path.

  • How to open .pmd document created in Pagemaker in InDesignCC?

    How to open .pmd document created in Pagemaker in InDesignCC?

    You do not have. Support for Pagemaker was abandoned after CS6, but as a Subscriber, you can still download CS6 and allows to convert the .indd .pmd.

    PageMaker conversions may be something almost perfect to completely unnecessary, according to the original document. For a short doc I would probably just rebuild from scratch.

  • How to get a product key, that I had a new hard drive installed in the computer shop and it seems that there is no key for windows 7

    Original title: window 7

    Hi can one tell me how to get a product key, that I had a new hard drive installed in the computer shop and it seems that there is no key for windows 7, I just brought Office 2016 and he did not finish the load down with the windows key 7.

    Because Windows 7 is in limited stock because Microsoft ended sales in October 2013, this created demand due to its rarity. This means the retail boxed copies request a bonus, while the OEM System Builder copies remain affordable.

    Full version (retail):

    -Includes the rights of transfer to another computer.

    -Does not require a qualifying earlier version of Windows.

    -Expensive

    Upgrade version (detail):

    -Includes the rights of transfer to another computer.

    -require a qualifying earlier version of Windows.

    -Expensive, but less expensive full version

    OEM System Builder version:

    The OEM of Windows 7 versions are identical to the versions commercial full license with the following exception:

    -OEM versions don't offer any free direct support from Microsoft technical support Microsoft

    -OEM Licenses are tied to the computer first you install and activate it on

    -OEM versions allow all hardware upgrades except for an upgrade to a different model motherboard

    -OEM versions does not move directly from an older Windows operating system

    There is nothing wrong to use it too, especially that all future versions of Windows will be full versions.

    You can find software OEM System Builder of dozens of online merchants. The current price for OEM Windows 7 Professional Newegg, for example, is $ 140. When I checked a few minutes ago, Amazon offered packages OEM Windows 7 Professional from several vendors at prices ranging from $ 101 to $ 150. When I checked earlier, a package specifically designed for reconditioned PCs cost only $ 50 for a 64-bit copy.

    There is no technical limitation to prevent you from using OEM software on your computer, although this software only works for a clean install, not an upgrade. In the past, Microsoft has been remarkably inconsistent in his advice to clients on the question of whether this practice is allowed. (See "is allowed to use Windows OEM on your own PC? Don't ask Microsoft. »)

  • I changed the hard drive, how do I put on an operating system on the new hard drive

    I changed the hard drive, how do I put on an operating system on the new hard drive

    Restart with the keys Option and command R keys. If this keyboard shortcut does nothing on your Mac, use a compatible Mac OS X installation DVD.

    Follow the prompts on the screen.

    (142198)

  • How can I make the best use of a new external hard drive and a new catalog full of photos just loaded into Photoshop elements 14 Organizer?

    How can I make the best use of a new external hard drive and a new catalog full of photos just loaded into Photoshop elements 14 Organizer?

    Keep all the files on external hard drive image?  Nothing else and no pictures on the desktop?

    Keep all image files both places?

    What is the best way to go through thousands of images in the Organizer to identify and place them in files?

    Once I've placed a file, I just leave it in the entire catalog or a way indicate to me that it has been sorted?

    As overwhelming, any tips/shortcuts/schemes, you can offer are welcome!

    As I only have the version of the EP, here is some info on the organiser:

    https://helpx.Adobe.com/Photoshop-elements/how-to/use-elements-Organizer.html

    Independent of how this feature works, you want to have your photos in one place and have a backup (second copy) somewhere else. All hard drives will not be successful at some point - some more early, some late - never trust to have your files in any safety devices if they are on a single disc. Once you have your sorted, it would be useful that you will organize/name/tag new photos immediately if the task is relatively short and simple. I copy my photos on my internal hard drive for my camera, take a quick look with preview to see who needs some changes and then decide where to put them - either drop them immediately after naming them or bring in an editing application and then file them away.

  • How can I register the total number of files on a hard drive?

    How can I register the total number of files on a hard drive?

    I have Windows XP Home Edition and Windows XP Professional

    Original title: show the contents of a disc

    Is that what you really want?

    Do you want

    • number of files and folders
    • a list of all files and folders
    • the content of the files or folders
    • to include hidden or system files and folders

    Depending on what you want, running the following command in a command prompt window (start > run > cmd > OK) might work for you:

    DIR C: /S

    For a more complete, and more flexible tool see Directory printer Karen: http://www.karenware.com/powertools/ptdirprn.asp

  • HP ProBook s 4540: How can I tell if my laptop has all the spare HARD drive bay or not?

    How can I tell if my laptop has all the spare HARD drive bay or not? I want to use an SSD, but also my HARD drive as secondary.

    @ShohagDr

    This model has only one.

    Your maintenance and Service Guide here.

    http://www.HP.com/CTG/manual/c03758231.PDF

    Laptop HP ProBook s 4540 - videos to remove/replace

    http://h20464.www2.HP.com/results.htm?SID=5229455&MEID=0B16F6F9-A9BB-4275-8FB4-57CCA3816318

    REO

  • How can I retrieve my files from the clouds after my hard drive has crashed - files were not deleted.

    How can I retrieve my files from the clouds after my hard drive has crashed - files were not deleted.

    Don't know what your problem is - log on to Skydrive and recover the files that you need them, or download the app to Skydrive and they will all be uploaded at the same time.

  • Unable to create/delete/change on all external hard drives only shortcuts

    My problem is one I haven't seen and can't find an answer through research.

    Observations of the problem:

    • I tried to copy files to my external hard drive for backup.  All files copy very well, with the exception of shortcuts (.lnk) files.  They give the error "Destination folder access denied" that says: "You must be authorized to perform this action."
    • The error above then we observe when I tried to create a shortcut on the external hard drive.
    • When I tried to delete a shortcut I get the error "File Access Denied", "you must be authorized to perform this action. You need permission from the administrator of the computer to make changes to this file. »
    • When I found the Security tab, under properties of a shortcut, I get the message "You are not allowed to view or change the permissions of the object settings."
    • When I click on the button Advanced on this window, the owner tab says "Unable to display current owner." When I try to take ownership, it tells me to close and reopen the properties of the object until I can view or change permissions.  When I do this, it always says "Unable to display the owner current." and nothing has materially changed since before my attempt to take ownership of.
    • I tried several other external hard drives, and all of the above problems are the same.
    • All other files besides the .lnk file are perfectly accessible, modifiable and suppressible.  All .lnk files are the only files that have this problem.

    I already tried without success the following:

    • Appropriate shortcuts.
    • Taking possession of the entire hard drive.
    • Ensure that I am a member of the Administrators group and connected as well.
    • Reset .lnk files default file associations.
    • Affecting the control settings to "Always notify me" "never notify" user account and vice versa.
    • To ensure that my connection is defined as administrator.

    All solutions?

    The problem persists there then in Safe Mode? If it works then please this simple test. He starts from the principle that your external drive uses the E: drive letter.

    1. Open a command prompt (cmd.exe).
    2. Type these commands exactly and press ENTER after each:
      dir > E:\Test.txt
      dir > E:\Test.lnk
      copy '% UserProfile%\Desktop\*.lnk' E:\
    3. Make a report.
  • How can I download Photoshop Elements 10?  I had a hard drive crash and need to re - install.

    How can I download Photoshop Elements 10?  I had a hard drive crash and need to re - install.

    If you follow the 7 steps you can dl a free trial here: http://prodesigntools.com/photoshop-elements-10-direct-download-links-pse-premiere-pre.htm l

    and activate it with your serial number.

    If you have a problem dl'g, you don't follow all 7 steps.  the most common mistake is not meticulously follow the steps 1, 2, and/or 3 (which adds a cookie to your system, allowing you to download the correct version of the adobe.com site).

  • How to serialize a Student edition of SC 6 without a hard drive on mac?

    Hello

    I would like to know how to serialize a Student edition of SC 6 without a hard drive on a macbook pro.  I thought that I could download and install the trial version and then serializes it once I got the license code.  However, someone told me that would not work because the Student edition and downloadable trial version are different...

    Is this correct?  If so, how can I install it?

    Thank you

    CUONG

    The person who told you the configuration is different from the edition of the students and the download is different, he / she is worong.

    the Setup is the same, and you are more then welcome to download and install it.

  • How to save the document iWork on iCloud drive?

    I have 4 files in my player to iCloud.  When I create a new document in Pages and save it in the folder of chemistry, I noticed that the Pages also saves a copy in the Pages folder.  So I find myself with two copies of the document.  The same thing happens with Numbers and Keynote.

    Is there a way to save the Pages (and Numbers and Keynote) documents to an iCloud specified by the user folder without copy also end up in the related app?  THX

    When you save Pages documents in iCloud drive, but not in the Pages folder, it will create an alias in the Pages folder pointing to the active page document that you saved in your folder of chemistry. These aliases will be a small vertical arrow under the icon, accompanied by text stating "in iCloud drive." You can right-click on the alias and choose the menu option Show Original.

    The cure is to make your records custom inside the respective iCloud drive: Pages, Numbers and Keynote primary records. These applications have an abbreviation save default Panel. On the right of the Save As the Committee Save: field, you will see a small box with an angle down in it. Click on this button, it will expand your panel Save/Save as and a button new folder will appear on the bottom.

    You select iCloud drive from the Favorites panel column Pages save and then browse the Pages main, numbers, and Keynote files. This is where you click on the button new folder, which will initially show no icons it contains until you save the document. No alias is generated. For existing records outside the above-mentioned applications, you could drag and drop the folder in the respective Pages, numbers and Keynote primary records, and then you can delete the (single) alias files.

Maybe you are looking for

  • the site theme is problem with firefox, but not any problem of chrome with!

    the site theme is problem with firefox, but not any problem of chrome with!for ex: http://haftegy.irHow to fix?

  • How can I sync my iPhone to my OSX photos Photos?

    I just spent hours to organize my Photos of OSX and want to sync my iPhone for exactly the same pictures. Is it possible without having to remove photos from the iPhone one as well. El Capitan 10.11.2 OSX MacBook Pro (retina, 15 inches, end of 2013)

  • How to reactivate my account

    Let him expired on 01/07/12. I just want to re-enable but can't get anywhere

  • Problem with web bookmark in the list of applications

    I was on a web page and wanted to save the page.  So I opened the menu drop-down of the web at the top of the screen, clicked on the page and then added as a launcher application.  Now I'm unable to remove the icon from the applications.  It does not

  • Buggy Simulator torch?

    Hello Is something wrong with the simulator of the torch? I have an application that listens to the incoming and outgoing calls using the PhoneListener and I test this code on OS 6. I dial a number, green button to call and then net_rim_bb_phone_app