How use SDK to insert text in indesign using c++

Hello All
I want to  use Indesign CS5.5 SDK  in my  c++ project first to create Indesign Document then insert text in textframe.
How include SDK in my project ?
Is it right method to create indesign Application using SDK.
#include "IApplication.h"
#include "ISession.h"
# include "IDocumentCommands.h"
virtual IApplication *  QueryApplication()=0 ;
ISession *  GetExecutionContextSession();
IApplication application(GetExecutionContextSession()->QueryApplication());
It required so many .h file, first I copy .h file from SDK and put in Project directory but it give some error after including these .h file in project.
There are so many directory(source,build,docs, etc.) in SDK.How include and use this SDK in my project to create Indesign Document.
How include so many  .h file in my project ?
I have already included SDK path in VisualStudio2008 ->Tools->Option->ProjectSolutions->vc++Directories
Thanks.

Hi Jongware,
This is not correct in C# you have type cast all the object to another Object and then only we can access it in required format
for example
if want to get font in active Document
InDesign.Application myInDesign=  (InDesign.Application) COMCreateObject("InDesign.Application");
InDesign myDocument = (InDesign.Document)myInDesign.ActiveDocument;
InDesign.ParagraphStyles pStyles = (InDesign.ParagraphStyle)myDocument.ParagraphStyles
InDesign.ParagraphStyle pSteyls = (InDesign.ParagraphStyle)myDocument.ParagraphStyle
for(int i =0;i<pStyles.Count;i++)
     pStyle = (InDesign.ParagraphStyle)myDocument.ParagraphStyles[i];
public static object COMCreateObject (string sProgID)
    // We get the type using just the ProgID
    Type oType = Type.GetTypeFromProgID (sProgID);
    if (oType != null)
        return Activator.CreateInstance( oType);
    return null;
like above content
for selection content u have to type cast selection object.
InDesign.Selection = (InDesign.Selection).myDocument.Selection;
Console.Writeline(InDesign.Selection.Contents);
but it showing error....
like this you have to type cast all things in C# and you cannot simply get selection contents like app.selection[0].contents
pls help me
Thank you for your reply....
R. Thangaraj

Similar Messages

  • How do I typeset vietnamise text in Indesign CS6. Client is saying I need to use Unicode!?

    Can anyone help me. I have a word document from the client thats in vietnamise. I copied and pasted the text and used Ariel regular in CS6.
    the client has come back saying:
    Our Vietnamese translators have advised there is a problem with the font on the two attachments. They suspect it may be because of using VNI font instead of Unicode, and as a result they are unable to read these documents.
    Does anyone know how I can solve this?
    Thank you.

    You need to have fonts with Vietnamise characters. For example Minion Pro. That is all.
    --edited--
    You can convert this text in any good text editor,  which has the option "Reopen using encoding", For example Text Wrangler.
    Yu can convert every Vietnamise glyphs using grep in InDesign too. But it is very time consuming job.

  • How can I place Tagged Text in InDesign

    I use tagged text in the files I place
    in InDesign. For example,
    <cn>This is the chapter number
    <ct>This is the chapter title
    <cst>This is the chapter subtitle
    <bt>This is the beginning of the body text
    <ah>This is an A-level head
                    and so on. In PageMaker, there was a checkbox in the "place"
    dialogue box named "Read tags." I checked that, and when I placed the file in the template (in which I had the styles defined), the whole chapter appeared with the formatting I wanted for each style.
                    I can't find the equivalent checkbox in InDesign. I can't believe it is no longer there, but search as I do, I can't find it. There is a lot online about exporting tagged text, but where, oh where, is my checkbox for placing tagged text? If someone knows where it is, I'd be very grateful.

    John Hawkinson wrote:
    For reference SuzeiQ's thread in the scripting forum is here: http://forums.adobe.com/thread/908213.
    Though I think it really wasn't a scripting question :-).
    Also, Peter, post your script!
    I presume that last was directed to Mr. Kahrel...

  • Broadcast online link by Email : How to remove automatically inserted text

    Hello all.
    It's been a month I've been working on broadcasting, and I am starting to get skilled on it , or at least, I am starting to get very precise needs ...
    I am broadcasting email with online link inserted into it.
    At the end of the mail body, SAP inserts the online link (which makes sense ...), on which you have no control, but also inserts Broadcasting administration link, saying (in french) :
    "Le lien suivant permet à l'expéditeur de cet e-mail ou à un administrateur de diffusion de modifier la liste des destinataires : http://"
    I heard you could remove it, but how ?
    Did you heard about it ?
    Thanks in advance.

    Hi ,
    Are you trying to change the language which user can understand ?? If this being the case in the receipent tab page of information broadcasting , there is a checkbox "User specific" , it takes user profile data into account and accordingly try to translate data into language which user understands.
    Hope that helps.
    Regards
    Mr Kapadia

  • Inserting text into table cells in Powerpoint

    Hi
    I have a named table ClientInfo on Slide 3 in Powerpoint. How can I programmatically insert text into the table's cells?
    Thanks
    Regards

    Hi Yahya,
    What did you mean named table? Did you mean the name of shape?
    If I understood correctly, we can use table object to manipulate a table shape on a slide. And here is a sample to insert text into the first cell for your reference:
    Application.ActivePresentation.Slides(3).Shapes("ClientInfo").Table.Cell(1, 1).Shape.TextFrame.TextRange.Text = "Hello"
    Also here are some helpful links for learning PowerPoint developing:
    How do I... (PowerPoint 2013 developer reference)
    Object model reference (PowerPoint 2013 developer reference)
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Importing Chinese Text into InDesign

    I am working on a newsletter project and will need to input translated text in Mandrine Chinese in an InDesign file? My questions are:
    1) How do I input the text into InDesign? Is it as simple as cut and paste or do I need to change some settings on my Mac first to recognize the Chinese characters?
    2) Is there a specific kind of document file the text needs to be in first? i.e. .doc file or something else

    1) How do I input the text into InDesign? Is it as simple as cut and paste or do I need to change some settings on my Mac first to recognize the Chinese characters?
    2) Is there a specific kind of document file the text needs to be in first? i.e. .doc file or something else
    Adobe InDesign what version?
    Version 3 introduced improved CJK, including inline input. It should work if you do as you would do in any transfer of plain text: copy from your originating application e.g. Apple Pages, clean (scrub, strip) the formatting by copying into a plain text editor and choosing Plain Text e.g. in Apple TextEdit, copy into the formatting application e.g. Adobe InDesign.
    I reviewed Adobe InDesign 1.5 and was beta tester for Adobe InDesign 2 and 3.
    /hh

  • How to insert text from saved text file using line number to indesign document to specific cursor point?

    i'm using indesign for make books. always i need insert quotes from some holy books. so i need to insert text using verse number

    i'm not asking about
    b
    u
    l
    l
    e
    t and
    n
    u
    m
    b
    e
    r
    i
    n
    g
    sorry for my bad english
    my target is simply insert pre typed sorted texts using the verse number. for example. i have Holy Quran full text . it have about 6000 verse. suppose i need chapter 3, verse 5 in to my paragraph. manually i goto that text file and copy the text paste it here. but i need it automatically using page number/ verse number/ unique id. script / addins .
    approximately like "data merge " in design.

  • How to insert text in the middle of an existing textfile using java

    Hi,
    How to insert text in the middle of an existing textfile using java i/o streams??

    Mickie wrote:
    I shudn't delete the file...Then you will have the old file and the new file - do you want that?
    and I have to insert text not only at a single place ....got to do at many places in the text file!!then extrapolate on the procedure outlined in reply #1 .

  • How to insert text in the text-id using BDC

    Hi Friends,
    I m using the BAPI to upload the data for a transaction .
    In that transaction there are some text id's are created to insert text like 'Container number'.
    I want to insert the text in that text id . But it not a field. Text ids are having object no and table and number .
    Is there any function like 'READ_TEXT' which we use to retrieve the text form text ids to write text in text ids ?
    So that I can use that function to insert the text in the text ids.
    Thanxs.

    Hi Umesh,
    READ_TEXT is used to Read the text , but SAVE_TEXT is used to save the text. but for reading or saving you need correct iD's and text objects.
    Regards
    vijay

  • Want to Insert Text at Beginning of a Paragraph Using GREP

    I'd like to find the beginning of a paragraph and insert a text (that uses a specific character style) into that paragraph. Below is how I've set up the find/change:
    It almost works. The phrase "SECOND ITEM IS FREE!" is inserted at the beginning of the paragraph, which is what I want. But the first letter of the word that was originally at the beginning of the paragraph picks up the character style used on the inserted text. How do I insert the text without changing the character style of the existing text?
    Thanks in advance for any ideas on this

    [Jongware] wrote:
    (Short) Can't be done.
    (Long) Well, it can, but not in a single replace. You'd have to first insert the text, then assign the correct character style.
    (Slightly longer) You are physically re-inserting that final character, and so it will get that character style assigned. The usual way of finding-but-not-marking is to use a positive lookahead; but that doesn't work, because you would end up with two locations (the caret and the lookahead), and InDesign's particular implementation of GREP does not allow that. (Or rather -- irritatingly -- sometimes it seems to work if you press the Find button, but then a Change All is not going to work.)
    So that's why you have to insert at least one character in the Find What, and re-insert it in the Replace With fields.
    If all instances of the specific paragraph style need the prefixed text in a specific character style, consider redefining the paragraph style's autonumbering to include text and character style. Redefine the style, and all instances in the current document are changed. All future uses of the style automatically use the prefixed text and style. To update existing instances of the style in other documents with the new definition, use load paragraph styles; to apply the new definition to to other documents in an InDesign book, synchronize the styles. Search Google for terms like "InDesign paragraph styles numbered lists," "InDesign load styles," and "InDesign synchronize styles in book," without quotes for details.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • How can I insert text in a photo?

    How can I insert text onto a photo?  Before Lion used Command T. Have not installed Page or Numbers. Have Microsoft for Mac.

    Open the photo with Preview and select ⌃⌘T.
    (Also, take a look at: Skitch)

  • Script to find a specific section in file & insert text below - how?

    I am dealing with kind of a problem here - I am using pekwm as my window manager and I use menumaker to automatically update the menu on every startup. My problem is that the original pekwm, the first two sections called 'terminal' and 'Run' and the last two sections called 'Go To' and 'pekwm' are overwritten/modified by mmaker so that there's only the applications submenues and  'pekwm' with the 'Themes' section erased and I want to somehow preserve all that. I was thinking of creating a bash script that does the mmaker thing and then use 'sed' or 'echo' to insert the code back into the appropiate areas of ~/.pekwm/menu.
    All I really need to know is how to find a particular string of code in the menu file and insert a block of text below that line using sed or echo.
    Any ideas?
    Last edited by lostinpurdy (2010-07-10 02:32:38)

    Looks interesting. But I'd like to keep it as simple as possible and avoid the part with the extra textfiles and just insert the code text straight into the menu file, kind of like this:
    mmaker --no-desktop -vf pekwm
    sed {
            find-and-goto-line-below-'root menu'-declaration, insert-text {
                                                                                                           entry for 'terminal'
                                                                                                           entry for 'run"
           ~/.pekwm/menu
    sed {
             find-line-below-'pekwm'-submenu-declaration, insert-text {
                                                                                                       entry for 'themes'
           ~/.pekwm/menu
    Obviously it's not real code but it's just to outline how I'd like to have it. Just need to know the correct syntax to make it work. I don't care much for 'Go To' and the rest.
    Last edited by lostinpurdy (2010-07-10 03:48:10)

  • How do I copy and paste Chinese text into InDesign CC?

    I am having difficulty copying and pasting pre-translated Chinese text into InDesign.
    Many of the characters are coming up as boxes in the majority of Chinese fonts offered in CC.
    马修斯旅游大巴租赁公司
    爱尔兰和英国之旅
    translates as
    Font used above is Apple LiSung
    I have tried to import via Apple Text Edit and format stripped the text.

    That's happening because you have Simplified Chinese text, and are attempting to use a Traditional Chinese font.
    Ellis suggests a well-made Adobe font with Trad support. If you pull down your font dropdown and scroll towards the end, you'll find fonts split into categories according to language support. The one with Apple LiSung is the Simplified category, and the one with Adobe Fangsong is the Trad category. Pick any font from that category - but know that the style of font you pick in Chinese means as much as the style of font you pick in English, and if you don't know what the conventions are, you may well choose one not entirely suited to your audience. (One of my translators likened the Chinese font choices of monolingual Anglo designers to "seeing the body text of my How To Use Your Health Care Benefits brochure laid out in Rosewood.")

  • How to make separate/individual text frame from one parent frame in indesign with javascript

    Hi all,
    Please suugest - how to make separate/individual text frame from one parent frame in indesign with javascript.
    Thanks
    Rohit

    @Larry – ah, your interpretation could be the right one…
    May I rephrase the question:
    "How to split threaded text frames to single ones?"
    "SplitStory.jsx" or "BreakFrame.jsx" under Scripts/Samples indeed could be the answer.
    From the comments in the code of "BreakFrame.jsx":
    //Removes the selected text frame (or text frames) from the
    //story containing the text frame and removes the text contained
    //by the text frame from the story.
    //If you want to split *all* of the text fames in the story, use the
    //SplitStory.jsx script.
    Uwe

  • Using DW CS4 to insert text

    Hi when I am using CS4 to insert text i want to put some spaces between a couple of words on the same line.
    i.e.      
    please call      this    number        etc  etc
    how do i do that?
    Many thanks
    Mark

    Hi I know this may be a basic question, but I have not used <span> before.
    How do I set the distance of the span??
    this is what I have
    telephone<span>mobile<span>email   
    do I now need to style the spans?
    Many thanks

Maybe you are looking for

  • Install itunes with error -2096

    When I finish installing setup.exe and open itunes, there is a line that: Quicktime failed to initialize (error -2096).QuickTime is required to run iTunes. Please reinstall iTunes. I have reinstalled many times, but it still appears that line. So how

  • Cisco ASA Anconnect VPN Deployment

    Hi, I have an enquiry regarding the deployment for ASA that need to support more than 10000 clients. I understand that multiple ASA would be required for it however I was wondering what may be the typical design for it? Should the multiple ASA be set

  • Changing the behavior of LOV's ...???

    Hi, Is it possible to change the behavior / appearance of LOV objects in Forms 6i and /or Forms10g..., or are they considered as 'black box'..???? For example , is it possible to add two text fields in the upper side of the lov window titled as "Find

  • I've Lost Photoshop Elements 11

    I purchased and have been using Adobe Photoshop Elements for about a year and a half. It appears to have disappeared from my iMac. When I look in the Applicatons fold it says the 'kind' is Alias. Where might it have gone and how do I get it back?

  • Anyone had problems with apps disappearing when no one has actively deleted them?

    My apps keep disappearing. I get the grey question mark through an app yet no one has deleted anything, the app has just gone. Not in trash, not in apps...  Any ideas why?