In how many ways, we can create new document and how implements this ways?

I found that we can create a new document in 3 ways

(1) using an application session object, the document list as follows

InterfacePtr < IApplication > firstdoc (GetExecutionContextSession ()-> QueryApplication());

InterfacePtr < IDocumentList > docList (firstdoc-> QueryDocumentList());

docList-> NewDoc (25089, IDataBase::ProtectionLevel.kProtectSave, nil);

but in this case I do not get how to use newdoc method it is to say what parameter we pass (not yet clear the name of API reference)

(2) using the command

InterfacePtr < IApplication > firstdoc (GetExecutionContextSession ()-> QueryApplication());

InterfacePtr < IDocumentList > docList (firstdoc-> QueryDocumentList());

InterfacePtr < ICommand > new1(CmdUtils::CreateCommand(kNewDocCmdBoss));)

UIDList asd (docList);

New1-> SetItemList (asd);

CmdUtils::ProcessCommand (new1);

(3) bu using an interface util or façade

Utils < IDocumentCommands > ()-> new (...)

in this case also, I am not geeting how to use the new method

I have try all this method but none of them work .i knew I made a mistake in all these method please correct me where I'm wrong.

Main problem is in the first parameter of method newdoc IE what is class id, how to use

1. Add to your project "SDKLayoutHelper.cpp", "SDKLayoutHelper.h".

2. #include "SDKLayoutHelper.h".

Insert the code:

{}

SDKLayoutHelper helper;

UIDRef docRef is helper. CreateDocument();

If (UIDRef::gNull is docRef)

break;

Helper. OpenLayoutWindow (docRef);

} while (kFalse);

Kind regards!

Tags: InDesign

Similar Questions

  • How many users we can create?

    Hai all,

    How many users we can create in an any version oracle database
    or
    maximum number of users allowed to create in the oracle database.

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e25513/limits003.htm#i288032 says:

    >
    Users and roles maximum 2,147,483,638

  • We can create new discussions now?

    We can create new discussions now?

    Yes we can!

  • Publishers can create new Pages?

    Hello, I'm wonding if publishers can create new pages based on a template by using inContext Editing.  I want the editor to create a new page for each new topic of the sermon.  Is it possible that they can do this?

    Thank you

    Zachary

    This question is ANSWERED? Are you still having problems with this?

    Let me know.

    -Tom

  • How to create new documents with palette sample custom?

    You want to create new documents with a palette of color company already available instead of having to load the .ase files. Fat chance?

    Or... If each document requires these colors add to the palette with no file open.

    Bob

  • Color problem of LABORATORY so that create new Document?

    Color problem of LABORATORY so that create new Document?

    its is possible to open a new Document with the CMYK color Mode

    Screen Shot 2016-06-15 at 12.13.46 PM.png

    You can create a new document with tasks defined in CMYK profile and save it here:

    /Users/ [username] / Library/Application Support/Adobe/Adobe Illustrator 19 / fr_FR / New Document profiles

    Why would you do that, though? The laboratory is the best way to represent a blot of ink, if you print with the tones, and if you're not, it is best to not use them.

  • How to create a document and insert the words and/or art on both sides of the page

    How to create a document and insert the words and/or art on both sides of the page

    How to create a document and insert the words and/or art on both sides of the page

    You create a document by using an application of word processor like Microsoft Word or Corel WordPerfect or OpenOffice Writer.  Think of it as a broad a page roll.

    When you print the document, you can print all pages of the document on one sheet of paper (the normal default value), or you can print on both sides of a sheet of paper.

    Some printers are capable of automatic double-sided printing.  With others, you print all the odd pages and then take the stack of paper, turn upside down and put it back into the printer to print all pages.  You need either to read your printer manual, or experiment a bit to determine if you need to re - organize the first last pages before printing the second side.

  • When I print a MS Word document my printer prints symbols but when I create a new document and try to print the new document of his impression.

    * Original title: printer print only symbols

    Hello world

    When I print a MS Word document my printer prints symbols but when I create a new document and try to print the new document of his impression. If my old document is damaged to corrupt so how do I fix it

    Old documents are probably corrupt. Check out these links:

    How to troubleshoot print failures in Word: https://support.microsoft.com/en-us/kb/826845

    How to troubleshoot printing problems in Word: https://support.microsoft.com/en-us/kb/826862

    Troubleshooting damaged in Word documents: https://support.microsoft.com/en-us/kb/918429

    And this announcement in Office/Word groups is a better idea. This may very well be a FAQ here.

  • WordPad - "unable to create new document.

    I icon shortcuts for wordpad on my desktop, when I click on it, I get this msg to completely useless error: "unable to create new document. I've been tracking the file real worpad.exe and clicked on it. same result. I thought it might have something to do with permissions one / or privileges, but these topica information is written in some techno-charabia eccentric who resembles no known human language.

    Any suggestions? I am running win7 Home premium.

    I icon shortcuts for wordpad on my desktop, when I click on it, I get this msg to completely useless error: "unable to create new document. I've been tracking the file real worpad.exe and clicked on it. same result. I thought it might have something to do with permissions one / or privileges, but these topica information is written in some techno-charabia eccentric who resembles no known human language.

    Any suggestions? I am running win7 Home premium.

    "I found a file named ' write.exe" it's just wordpad under another name. I created an icon of office for that file and it works. No stupid useless error message.

  • I can't move the anchor points on a shape, I've drawn with the pen tool.  There are also small circles with a point in them (think focus), who they are and they are part of my problem.  If I open a new document and draw randomly everything is good, no foc

    I can't move the anchor points on a shape, I've drawn with the pen tool.  There are also small circles with a point in them (think focus), who they are and they are part of my problem? If I open a new document and draw randomly everything is good, no anchor and focus points behave.

    Bubble icons are the widgets corner. You can drag inward to round the corner. They are not part of your problem. If you want to hide them, select view > hide corner Widget. I have a hotkey defined for this menu item.

    If you see multiple bullseyes, you may have your set with the shape selected, that would prevent you from being able to move individual anchor points. Deselect the shape first, and then move the anchor with the direct Selection tool.

  • Creating new document model

    Hello everyone

    I just started inDesign Scripting recently, I wanted to create a script that once signed will create a new document from a template.

    So far, I have the script you see here.

    When it is executed, it is supposed to retrieve a template from a file and present it as the new document.

    But instead of the model, with its grids, headers and feet 'imported' demand... I just get the text of the template.

    I pretty much crossed and each method etc. in the OMV, but of course miss me something.

    Would that the method of "place"? Or is the script needing a complete re write?

    create new document

    App.Documents.Add ();

    var newDoc = app.activeDocument;

    newDoc = app.activeDocument.place (File("M:/MyFolder/TemplateTest.indt"));)

    Thanks in advance all those who may have some advice on this

    InDesigner from Northern

    North:

    As in the user interface, you need to app. Open() a model, not Document.place () it.

  • Hide: I went to my documents and I had this issue, and I clicked on something that is called HIDE and I don't know how to get to this file now!

    I went to my documents and I had this issue, and I clicked on something that is called HIDE and I don't know how to get to this file now! Anyone know where are the hidden files?

    Go to start / Control Panel / folder Options / view and check the box to show the hidden files and folders and uncheck to hide extensions of known file types.  Only the first is required for this problem, but the other may be useful later and you might as well do it while you're already here.

    Now, you will be able to see the folder.  It will be in the same place, it has always been (it has not been assigned) - it was just hidden and now that you can see hidden files and folders you can see again.  You may notice that it deteriorated a little bit lighter that other records - it is a sign that it is a hidden file or folder.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • What software do I need to create Adobe documents and thus modify them?

    What software do I need to create Adobe documents and thus modify them?

    Hello

    You can go to Adobe Acrobat Pro DC, please check the links below:

    Adobe Document Cloud | Adobe Acrobat DC

    Kind regards

    Bani

  • I would make the dollar 10 months for photoshop download but I already bought Lightroom, can I get photoshop and muse for this price?

    I would make the dollar 10 months for photoshop download but I already bought Lightroom, can I get photoshop and muse for this price?

    You can check these links:

    https://creative.Adobe.com/plans

    http://www.Adobe.com/in/products/Muse.html

    Or contact the customer care team directly.

    Thank you

    Sanjit

  • After the last update (today), Firefox crashes constantly. How can I uninstall this last update? I tried to create new profiles and they also crash.

    Firefox worked earlier today (August 19, 2013 6:30 pm EDT). When I opened Firefix after it IS 9, Firefox has attempted to perform an update. No error was given, but now Firefox does not start. Run a Windows 8 machine with all the updates and current security with no malware known on my system software.

    When I try to start Firefox, the system shows the circle of"work", but then nothing. I created a new profile and got Firefox to start, but whenever I try to go to a website, Firefox crashes.

    The last 2 reports of incidents of today:
    InstallTime20130814063812 (content: 1376962029)
    LastCrash (content: 1376969373)

    Firefox IS working with Windows 8 in Mode safe (I got a message saying Firefox had not been closed properly) with a new profile. If I used an existing profile, Firefox would start and then close when I went to ANY website or any just not start. I shouldn't be no CRASH REPORT has been generated, just a code updated in the LASTCRASH file.

    I have created a new profile, turned off all plugins, redonfigured my security suite of network to start automatically and restarted normally. When Windows came, I launched Firefox with the new profile, went to a few sites only to confirm it worked and then activated the security suite. No problems. I then reactivated some of my plug-ins. I had problems again when all the following plugins have been re-activated:

        -- Java Development Toolkit 7.0.250.16 10.25.2.16
        -- RealDownloader Plugin 16.0.2.32
        -- RealNetworks RealDownloader 1.3.2.28
        -- Shockwave for Director
    

    With these off and the new profile, FIrefox is now working normally. Thank you!

Maybe you are looking for

  • Operation of slow Mac after El Capitan! Report EtreCheck

    Anyone can identify possible issues, causing my macbook run ridiculously slow after upgrade! Same opening new tabs in safari take ages and gets the same turns beach ball by typing this message now Im getting gel between the words! EtreCheck version:

  • Extension of the "Recordchecker" is a virus?

    I've recently updated to 25.0 Firefox from the Mozilla site. Has she been hijacked or infected? Since then, the "Auditor of the record" extension keeps appearing.I deleted the extension and restarted several times, even to delete the files from the h

  • When my pointer navigation will not work top of page

    When my pointer navigation works very well on most of the page I am browsing, but when I try to use my pointer at the top of the page it won't work IE, try to disconnect

  • Is any GPS tracking software installed on excited AT10-A

    Hey guys,. I just bought a tablet of AT10-A EXCITED a few weeks ago... and yesterday someone got into my apartment and stole all my books, my phones and my tablet. Since I didn't install GPS tracking software (if possible...).y at - it a GPS-tracking

  • uypgrade July 26 has stopped working video

    I upgraded Skype immediately after a conversation last Sunday. However, since then I can not the webcam works as an error message says it can be used by another program. Does anyone have a solution? If this is not the case, how to remove the upgrade?