How to create a new FM - Doc

Hi all

I see how to create a new book-component,

var comp = book.NewSeriesBookComponent(0);
comp.Name = "C:\\SomeDocumentPath";

but everything I want to create a new independent FM-document, write something for her, (that I got on the docs of a book or a doc singualer).

Any ideas?

Thank you

To create a document, simply open it:

ADOBE FRAMEMAKER SCRIPTING GUIDE says:

Open

Description

Opens a document or book. It can also create a new document.

Open() is used to specify a list of properties by saying FrameMaker how to open or create the file and how to deal with the error and the conditions of release warned.

For example, you can specify whether to stop or continue opening a document if it contains fonts that are not available. If the file is already open and invisible, it will make the file visible.

Hope that helps

CU

Klaus

EDIT:

Here is an example:


var openParams, openReturnParams;

openParams = GetOpenDefaultParams();

openReturnParams new PropVals();

var  MyFile = "C:\\MyPath\\MyFile.fm";

oFile = Open(MyFile,openParams, openReturnParams);

And if you want to change the settings:


var openParams, openReturnParams;

openParams = getYourParams ();

openReturnParams =  new PropVals();

var  MyFile = "C:\\MyPath\\MyFile.fm";

oFile = Open(MyFile,openParams, openReturnParams);

function getYourParams() {

var params, i;

/*

Change the params

*/

i = GetPropIndex(params, Constants.FS_RefFileNotFound);

params[i].propVal.ival = Constants.FV_AllowAllRefFilesUnFindable;

i = GetPropIndex(params, Constants.FS_FileIsOldVersion);

params[i].propVal.ival = Constants.FV_DoOK;

i = GetPropIndex(params, Constants.FS_FontNotFoundInDoc);

params[i].propVal.ival = Constants.FV_DoOK;

i = GetPropIndex(params, Constants.FS_LockCantBeReset);

params[i].propVal.ival = Constants.FV_DoOK;

i = GetPropIndex(params, Constants.FS_FileIsInUse);

params[i].propVal.ival = Constants.FV_OpenViewOnly;

i=GetPropIndex(params,Constants.FS_AlertUserAboutFailure);

  params[i].propVal.ival=Constants.FV_DoCancel;

i=GetPropIndex(params,Constants.FS_MakeVisible );

params[i].propVal.ival=false;

return (params);

}

Tags: Adobe FrameMaker

Similar Questions

  • How to create the new domain in bpel console

    I created a new domain by going to admin-areas-> bpel > bpel create new domain bpel. But he did ask a password when creating the domain.
    If I use the oc4jadmin password I get wrong username password how to create a new area of bpel with new password?

    http://MetaLink.Oracle.com

    You must have brought some Oracle software to get access.

    This is the official doc

    http://download.Oracle.com/docs/CD/B31017_01/integrate.1013/b28982/security.htm#CDDDBFCC

    see you soon
    James

  • Question: How to create the new user and schema in 11g?

    Who can give me the answer how to create a new user and a schedule?

    I had installed oracle 11g DB and oracle in my OS windows client. I found in the 11g than there is no console management business with the new version. It is no different with oracle 10g. So I don't know how to create this new user.

    I had created a new DB instance, but I did not how to create a user on it. Who can give me a helping hand for who? I hope a give oracle experenice expert answers.

    Thank you very much!

    Published by: user774630 on October 27, 2008 22:01

    Published by: user774630 on October 27, 2008 22:09

    Hello
    I'm not sure which option you are talking about? [Do you use the EMCA, http://download.oracle.com/docs/cd/B28359_01/server.111/b28319/emca.htm#SUTIL800] to create the new repository for the EM? If this isn't the case, the command line that the other is using DBCA (Database Configuration Wizard). I think you're talking about that. Yes, if the message comes from creating the repository that soon after, you can connect to the EM. You would get the port no port HTTP of EM comes from the $OH/install/portlist.ini file.
    HTH
    Aman...

    Published by: Aman... on October 28, 2008 11:36
    Waived, insertion of link does not work.

  • How to create a new profile on a MacBook?

    How to create a new user or COMP

    OS X Yosemite: Configure users on your Mac Try this.

  • How to create a new my sign? new update because not good very uncomfortable

    How to create a new my sign? new update because not good very uncomfortable

    Have a look here: Restorer of Classic https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer/ theme

  • How to create a new playlist on an ipod nano

    How to create a new playlist on my ipod nano?

    See https://www.safaribooksonline.com/library/view/ipod-the-missing/9780596155834/ch 06s05.html.

    TT2

  • How to create a new mailbox on my iPad version 9.3

    How to create a new mailbox on my iPad version 9.3

    Go to the mailbox. Tap on edit. Press new mailbox. Name of the mailbox tap Save.

  • How to create a new folder in the voice tab 7 hp slate

    How to create a new folder in the voice tab 7 hp slate?

    I wish to cretae a folder in my home page.

    Please help me...

    Hello and welcome to the HP support community!

    You want to organize your icons in folders, or put a shortcut of data on your home page folder?

    The first is easy, this last not so much.

    Just hold your finger on an icon, and then drag it on another similar icon.  A "folder" will be done with the name "unnamed file".  Press and hold the words to change the name of the folder.

    I'm not aware of a way to file a record of data on the homepage...

    WyreNut

  • How to create a new folder?

    original title: creating folders

    How to create a new folder?

    http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-new-folder

    Create a new folder

    Folders are a convenient way to store and organize files on your computer. For example, you probably want to create folders in the Documents and images to help you manage your files. You can create an unlimited number of folders and even store folders inside other folders. Folders located inside other folders are often called subfolders.

    1. Navigate to the location (the desktop or a folder) where you want to create a new folder.

    2. Right click on an empty space on the desktop or in the folder window, point to new and then click folder.

    3. Type a name for the new folder and press ENTER.

    http://www.Dummies.com/how-to/content/create-a-folder-in-Windows-Vista.html

    Create a folder in Windows Vista

    http://www.ehow.com/how_2073272_create-folder-Windows.html

    How to create a folder in Windows

    The information above will help you.

    See you soon.

    Mick Murphy - Microsoft partner

  • Smartphones blackBerry how to create a new folder in the video folder in the media

    Hi, I'm trying to figure out how to create a new folder in the video folder in the media. I can easily create new folders in the pictures folder, but not in the videos... Why? Thanks in advance for your help.

    well I'm sorry, I think that I have not read your emails correctly.

    The media application doesn't care about records at all. It will read the files, the tags when they are available, playlists, but it will not show the files. with the exception of the pictures.

  • How to create the new folder on Oracle UCM?

    Hello

    After that I start the UCM_server I can't find how to create the new folder and I can't find the record of the 'Contribution records '. as shown in the attached picture.

    ucmfolder.JPG

    Hello

    Is it a new installation? You can configure the WCC with folder folder_g or framwork. You can use Server Admin-> component for Manager screen set up. It is recommended to use the framework with version dot 8 for optimizing the performance and scalability.

    About java applet question please check forums UCM browser compatibility issue

    Internet Explorer
    1. Click on Tools , then Internet Options
    2. Select the Security tab, and then select the custom level button
    3. Scroll to script Java applets
    4. Make sure the enable radio button is checked
    5. Click OK to save your preferences
    Chrome

    Chrome 42 version and more. From Chrome version 42 (released in April 2015), Chrome has disabled the way the browsers support plugins. More information

    Firefox
    1. Open the Firefox browser or restart it if it is already running
    2. In the Firefox menu, select Tools, and then click the option Add-ons
    3. In the Add-ons Manager window, select Plugins
    4. Click on plugin Java (TM) Platform (Windows) or the Java Applet plug-in (Mac OS X) to select the option
    5. Ensure that the option selected is Ask to activate or enable always or on older versions of Firefox, click the Activate button (if the button is disable, Java is already enabled)
    Safari
    1. Click on Safari and select Preferences
    2. Choose the Security option
    3. Select allow Plug-ins, and then click manage the Web site settings
    4. Click on the Java element, select an option (Ask, authorize or allow always) in the drop-down list When you visit other Web sites
    5. Click done, and then close the Safari preferences window
    Opera 4.x and Up
    1. Opera for Windows does not use Java, but an embedded already inside the Opera Web browser version.
    2. Opera for other platforms can supports Java. Please consult your Opera Platform documentation.
    3. For more information, please see the following Opera support article:
      Support for the Java software at the opera

    Thank you

    Amey

  • How to create a new auto sync with Salesforce?

    We try to create a new automatic synchronization so that we can test with a second profile of Salesforce integration, but I don't see anything on the screen Auto Synchs which shows how to create a new.

    Anyone has any ideas on where to start?

    Installation--> integration--> inbound--> create Data Sources

    Create a new external call and make sure that CheckBox 'calendar for automatic execution' this will allow this call for automatic synchronization. I will link an article shortly...

    Edit: Surprisingly, I can't find an article dedicated to the implementation of an automatic synchronization, but you can renovate sort of article to meet your needs for a walk through...

    Navy Playbook: Change Email in CRM

  • How to create a new project with other page with the new version of Muse layouts?

    Hello
    If someone would continue to operate as before with the inadmissible Muse version... is - this posible to have both versions installed? or how to create a new project with other page with the new version of Muse layouts?
    Or how to download third party) 3 different configurations (desktop/tablet/mobile) under the same url with a clean result, like up yet with the Muse does not?

    Thanks for any help,

    Patrick

    Use the new version! What you want to achieve, will work! Go to the 'Page' menu and choose 'Add another Layout' and the missed buttons are in plan view.

  • I need to update the screenshots for a new version of an app existing Itune application to download a new version. Since I did not create the original version, can you guide me how to create a new version with the new version number?

    I need to update the screenshots for a new version of an existing iTunes Connect App asks me to download a new version. Since I did not create the original version, can you guide me how to create a new version with the new version number?

    You must call the assistance of the company and ask them to help you with this. You can find contact information by logging on http://digitalpublishing.acrobat.com/ and looking at the Middle at the bottom of the page.

    Neil

  • I can't find the password for the digital signature. How to create a new.

    Several months ago, I created a digital signature. Now, I need and that you do not have the password. I don't know how to create a new. Any suggestions?  I'm not a person 'tech' so if you have any suggestions please make it simple!

    Hello

    I'm sorry but there is no option to recover the password for the digital signature.

    You can create a new one by following these steps in Acrobat Reader ms.

    Edit-> preferences-> Signatures-> identities Trusted certificates $-> more and click on "Add ID".

    You will see another dialog box and choose according to your requirement in case you want to create a new one by using an existing ID or with a new ID.

    Let us know hot, happening.

    Concerning

    Sukrit diallo

Maybe you are looking for

  • Sort bookmarks in Safari

    Hi all OK it's 2016 and something changed.  In order to sort my favorites, I did drag a folder of bookmarks to the desktop, used to be open in the Finder and then all bookmarks have been sorted in alphabetical order. Then just drag the folder in the

  • Tecra 9100 - hooking up TV - please help

    Guy trying to hook my tecra up to my 42 '' plasma via the video cable. Problem is that the image is very grainy, to the point where you can not read any text or clearly see the photo. Ive tried to change the resolution, but in vain. Would appreciate

  • Jump from a HP pavilion ze4560US

    Hello I have a HP pavilion ze4560US, perfectly functional until recently and despite his age. Somehow, I can no longer start the computer. After turning on the machine, I get a screen of launch of HP, then a white screen. The only condition is to pre

  • I need help for videos in Movie Maker. How can I import them from my USB?

    Whenever I put a video in Windows Movie Maker, I click on the folder that contains all of my videos and it says that there is no items match my search. The photos appear good, but the videos don't. So I tried to plug in my flash drive, which also has

  • Cannot copy files and folders to another folder

    Whenever I try to COPY a group of files and folders 1 folder to another folder, Vista wants only to allow me to MOVE them.  What is my problem?