I'm looking for current or existing textframe (which was created using PlaceFileInFrame() call)

I have created a textframe with PlaceFileInFrame(), now I want to find the same (or get the ID of the textframe) and continue the insertion of text in there, is there any API call?

Thank you

PlaceFileInFrame refer the image UIDRef. So, this should be easy.

See below:

SDKLayoutHelper layoutHelper;
UIDRef frameRef = layoutHelper.PlaceFileInFrame(...);
InterfacePtr graphicFrameData(frameRef, UseDefaultIID());
if(graphicFrameData) {
         InterfacePtr mcTextFrame(graphicFrameData->QueryMCTextFrame());
         if(mcTextFrame) {
              InterfacePtr textModel(mcTextFrame->QueryTextModel());
             //Once you have got the textModel, you can refer SnpTextModelHelper::InsertText for text insertion.
          }
}

Tags: InDesign

Similar Questions

  • I'm looking for the Mac key combination which is equivalent to Alt + Tab in Windows that allows you to choose Open Windows (toggle).

    I'm looking for the Mac key combination which is equivalent to Alt + Tab in Windows that allows you to choose Open Windows (pass) but I can't find this info.  I hope that someone will tell me what combination of keys and as a bonus, where I can find it in the menu help. Thank you!

    The standard keyboard shortcuts are listed here:

    Keyboard shortcuts in Mac - Apple Support

    You can also define your own in System Preferences > keyboard

  • You can help I was looking for a list of program which are controlled by Microsoft?

    Can help you I was looking for a list of program which are controlled by microsoft that run from the microsoft flag and R keys pressed together key. many of then are 8.8.8.8 Ping-t and another is appwiz.cpl

    Windows key + R generates the Run dialog box that allows Windows to run almost any command you can find, the 'list' would be huge.

    In this box, you can type some commands, web addresses, UNC, paths management console scripts and so on. All programs on the computer may be open in the box run, provided that the full path is included or it is in one of the list of path variables.

  • Change a textframe which was not created by a variable by getByName

    Hi all

    Someone know how to change a textframe pre-existing in illustrator with extendscript. I can see how after using '.add' and then referring to the variable and changing the content, but I can't seem to find the answer to the alteration of the content of a textframe which was not created by the script:

    I came across "TextFrameItems.getByName", but I can't seem to make it work. Any help would be appreciated.

    var doc = app.activeDocument;

    var Ref = doc.textFrames.add ();

    var Ref.contents = "blah" = myContent

    var doc = app.activeDocument;
    
    // add 3 frames and have their contents read "blah"
    var Ref1 = doc.textFrames.add();
    var Ref2 = doc.textFrames.add();
    var Ref3 = doc.textFrames.add();
    var myContent = "blah";
    
    Ref1.contents = Ref2.contents = Ref3.contents = myContent;
    
    // now give the second frame a name, the name that shows in the Layers palette
    Ref2.name = "frame2";
    
    // get second frame (already in the document) and change its contents
    doc.textFrames.getByName ("frame2").contents = "blah blah blah";
    
  • Reconstruction of Eve - fails looking for current ENT

    Environment:

    Oracle 11.2.0.3 EE on Solaris

    I am rebuilding a physical database pending on the standby server.

    I copied all RMAN of the most recent level 0 and level 1, and all logs archived backups.

    I created and copied a new standby control file and find copies in the places documented after my pfile and spfile.

    I left the 'standby_file_management' parameter to 'auto '.

    I created a RMAN settings file that looks like this:

    startup nomount

    SQL 'alter database mount standby database;

    Run {}

    allocate channel c1 type disk;

    allocate channel c2 type disk;

    allocated channel c3 type disk;

    allocate channel c4 type disk;

    allocate channel c5 type disk;

    restore the database;

    }

    recover the database;

    When I run the present it restores about nearly everything, but fails in search of what turns out to be the "CURRENT" online redo log file of the Production database.

    I checked this by running:

    Select * v log$;

    Why the recovery process would want to log redo currently active Production database?

    What should I do to retrieve the data that I gave and so let me turn on MRP to pick up something exceptional?

    Any help is greatly appreciated!

    -gary

    If you run just recover, data will continue to ask until you provide all of the archives or cancel the recovery.

    Performs no recovery of database, after restoring the backup make sure just so archivelogs shipped from primary to standby and begin the MRP process pending.

    ALTER database recover managed standby base disconnect from the session.

    That your DB is in 11.2.0.3, you can also try for duplication of standby database instead of move the backups manually.

    ORACLE-BASE Data Guard physical Standby - Setup in Oracle Database 11 g Release 2

  • I am looking for an app to download which will find and delete the duplicate on my computer... If anyone can help...

    No good on this side of the computer... Computer works more slowly not as sharp as it was, I found a lot of files and duplicate files on it. Not understand or trust myself to remove anything manually.

    You might like to try these. Read their comments/user opinions 1-links provided:

    http://www.SnapFiles.com/reviews/CloneSpy/CloneSpy.html

    CloneSpy can help you recover hard disk space by detecting and removing duplicate files. It can find files that have the same exact content, regardless of their name, the date, time and location. CloneSpy is also able to search for files that are not identical, but have the same file name, allowing you to find and remove old versions of a file. Once the scan is completed, you can decide what you want to do with the found duplicates, CloneSpy you shows the details for each file (and its duplicate proposed) and allows to keep, move or delete.

    http://www.SnapFiles.com/reviews/duplicate-cleaner/duplicatecleaner.html

    Duplicate Cleaner is an easy to use program that helps you find and remove the duplicate computer files. You can search several structures of files at a time and set of criteria to identify duplicates. You can choose to search exact matches using the comparison of CRC or use the file name, size and date as the criterion. The program offers extended support for music files, allowing you to use the tag information ID (artist, title, album) to identify duplicate titles. The results are grouped together in a list and a selection wizard allows you to select quickly the files based on age, the audio quality, location and other aspects.

    See you soon.

    Mick Murphy - Microsoft partner

  • looking for "home" button, when Lr web gallery created to import into my Web

    Hello

    I created LR web galleries to import into my Web site.

    There are 3 links in the Lr web gallery created: index, previous and next.

    I like to create a button where I can go directly to my home page. Currently I use Dreamweaver to do. Can I add this option in web creation Lr?

    Thank you

    Jaap

    You can replace 'Name of Contact' with 'Home' and then insert the link to your home page before you export the web gallery.

  • Looking for Oracle Support Doc that explains + and * conventions used in the Oracle certifications.

    Hi all

    A few months back I saw a (link to an oracle doc) post in the forums of essbase explaining the conventions used by oracle and what they mean when they say that a platform supports the "Software.1. * ' as opposed to '+ Software.1'. I tried Googling for the doc and after an hour of search and do not find that he decided to publish it. I'm sure that the link to this doc has been published by TimG or GlennS_3 or JohnGoodwin. (Sorry for the tags). If anyone knows what talk and relate to this doc, I would appreciate if you can share it and I promise you to save this time. ... Help, please...

    Thank you
    Ted.

    Hi Ted, yes - it's here: https://blogs.oracle.com/proactivesupportEPM/entry/how_to_read_product_versions

    I highly recommend you subscribe to the RSS feed of the blog proactive Support.

  • I lost most of yesterday 04/02/15 attempts to connect without success which was 1st using Mozilla for years, what is happening with this?

    From morning to evening I tried repeatedly to connect w/Mozilla Firefox nothing helps, the question wasn't w/my computer that I was able to connect to Internet Explorer. I used Mozilla years & this is the 1st time I was not able to connect at all, sometimes it may take longer than others, but nothing like this. Today luckily I have not had any problems. I am located in Scottsdale AZ if that makes a difference & use Windows 7 starter on an ASUS eeepc 1001 netbook. Also is there a support phone number in case it happens again and am unable to access the web support?

    Type of topic: preferences #advanced< enter > in the address bar.

    Under Advanced, select network.
    Search for configure how Firefox connects and then press the settings button.
    Check the settings.

    Some problems occurs when your Internet security program has been implemented.
    trust the previous version of Firefox, but not more acknowledges your
    update as being approved. Now how do I solve the problem: to allow
    Firefox to connect to the Internet

    • Make sure your Internet security software is up-to-date (for example, you are using the latest version).
    • Delete Firefox to list your program of programs approved or recognized. For detailed instructions, see

    Configure the firewall so that Firefox can access the Internet. {web link}

  • online access for an Adobe Acrobat 9, which was originally on cd

    I just bought a new Mac book pro without a cd player and want to have the Adobe Acrobat 9, I bought (on cd) on my computer. Any ideas or links for how I can access new software online?

    Thank you very much.

    Acrobat 9 Pro can be downloaded from

    http://prodesigntools.com/all-Adobe-CS5-direct-download-links.html

    Very important instructions on this page first BEFORE YOU click ON THE DOWNLOAD LINKS.

  • My account for my laptop Toshiba Windows 8 was created by my brother-in-law, and he is not the administrator account so Im limited on some applications. What should I do now?

    If I want to install some applications that I am not allowed to .this which should I get?

    Try this trick:
    http://www.Petri.co.il/enable-administrator-account-Windows-8.htm

  • HP Pavilion dv5-1190ej: looking for the original bios version

    After updating the bios that failed, I tried to update the usb drive and bios update completed with the mobile ashuting down.

    Yet it doesn't show anything on the screen after reboot, and no splash screen appears.

    I'm looking for the F.0C version that was before, bad enough there is no backup so that this update was going on.

    Please if anyone can tell me where I can find the original file, to download it would be great. I followed this link http://h30434.www3.hp.com/t5/Notebook-Operating-System-and-Recovery/Computer-freeze-during-BIOS-upda...

    but I need a BIOS is displayed on the screen. the current does not work.

    Thank you very much. Here, I'm desperate.

    Thanks to youtube that I've managed to unbrick my laptop.

    change the names of 3602 to 3603, did the trick.

  • I can't save any file type. I tried a sfc scan, and it tells me that there is a problem in c:windows\Logs\CBS\CBS. Newspapers, but when I tried to look for these files I refused access.

    Original title: cannot save files

    Hi I am unable to record any type of file. Save/open appears and it seems save (all be it very quickly), but when I look for it, he could not be found or I get a message telling me that the shortcut is not found. I tried a sfc scan, and it tells me that there is a problem in c:windows\Logs\CBS\CBS. Newspapers, but when I tried to look for these files I refused access. I use Vista and Explorer 8.

    I hope someone can help x

    You're right, it's too long to post here. I tried to send mine here. No go.

    I only suggest:

    1. use Windows Live Skydrive to transfer the cbs log. Then send us a link in the newspaper.
    But apparently you don't have SkyDrive.

    SkyDrive is free and is part of the Windows Live products. Consider installing it.
    Here is the link:

    http://explore.live.com/SkyDrive

    2. I am a member in Vistax64 Forum. (Don't let the 64 not dissuade you. It does not the 64-bit mesn.)
    http://www.Vistax64.com/#Vista-forums

    I have no problem sticking my cbs newspaper there.
    If you want to sign up and post the log for help.

    3. I am also a member Windows Client Tech Center. You can sign up and post there with the CBS.

    Windows Vista IT Pro: Windows Vista Applications Forum.

    http://social.technet.Microsoft.com/forums/en-us/itprovistaapps/threads

  • Envy TouchSmart 20: Need USB drivers for HP Envy 20 which was lowered from Win8 for Win7 64 bit

    I need USB drivers for a craving 20 TouchSmart, which was lowered from Win8 to Win7 64 bit. The Device Manager has the following information:

    PCI\VEN_104C & DEV_8241 & SUBSYS_2AE5103C & REV_02
    PCI\VEN_104C & DEV_8241 & SUBSYS_2AE5103C
    PCI\VEN_104C & DEV_8241 & CC_0C0330
    PCI\VEN_104C & DEV_8241 & CC_0C03

    Thanks in advance to anyone who can help

    Hello:

    This driver should work...

    Texas Instruments USB Controller Driver

    File name: sp70786.exe

  • looking for a specific text within a textFrame

    I don't know how to use the method of the index of the collection of linked text frames.

    I am looking for in all my text frames to see if it contains: "SW".

    If it contains "SW" I want to have it remove "SW" to its current location in the textFrame and put this at the beginning of the textFrame: "Switch"

    Here is an example of a textFrame: PARK_BRAKE_SW

    Here is an example of a textFrame after the script will be executed: SWITCH - PARK_BRAKE

    Might also look like this: SW_DISCONNECT_c0

    Who, after the script is as follows: SWITCH -_DISCONNECT_c0


    Any help or thoughts on this would be appreciated!

    Hi subieguy2,

    SW was always underscore the result or is originally from one?

    SW is always capitalized?

    This could be a workaround (but it's a bit like the flying words "suddenly by behind by the chest in the eye ')

    var theTF = app.activeDocument.textFrames;
    var TF_len = theTF.length;
    var aCon;
    
    for (i = 0; i 
    

    Maybe someone else knows a better way.

    Have fun

Maybe you are looking for