Insert 'text' in dynamic statement

Just one very simple question:
I have
  insert into nn_nodes (lfdnr, layer_, type_) values (lfdnr#, 0, 'input');and want to make it to a dynamic Statement.
How must I write the 'input'?
stmt# := 'insert into nn_nodes (lfdnr, layer_, type_) values (lfdnr#, 0, 'input');'divides the String into 2 parts and gives an Error Message,
stmt# := 'insert into nn_nodes (lfdnr, layer_, type_) values (lfdnr#, 0, '||'input'||');'don't take the '
Thanks for help!
~Mel

Yet better - use bind variables:
'insert into nn_nodes (lfdnr, layer_, type_) values (:x,:y,:z)'Best regards
Maxim

Similar Messages

  • Inserting text from a variable in actionscript

    what is it called when you insert text from a variable in actionscript?

    Your question is not clear.  There is no specific name for the process of inserting text from a variable that I am aware of.
    If you have a dynamic textfield that you have assigned an instance name to, let's say you named it "tField", then to assign a variable called "aVar" to that textfield you would use:
    tField.text = aVar;

  • Format text in dynamic pages

    I4ve built a form in Portal where I insert multi-line text into a date base. Then I4ve created dynamic page where I call through and oracle tag to this text inserted in date base but the text I obtain has different format.The one I get is as single line format.
    Does anyone Knows how to apply a format to a text in dynamic pages or DB?

    Hi,
    When you are printing or displaying the data make use of the <pre> tags. This tag keeps the formatting as it is.
    Here is a sample
    <html>
    <head>
    </head>
    <body>
    <oracle>
    for c1 in select description from tab
    loop
    htp.p('<pre>');
    htp.p(c1.description);
    htp.p('</pre>');
    end loop
    </oracle>
    </body>
    </html>
    Thanks,
    Sharmila

  • Help with dynamic statement returning values into collection

    Hi All
    I am trying to use dynamic statement to return values into a collection using the returning clause. However, I get an ORA-00933 error. Here is a simple setup:
    create table t(
        pk number,
        id_batch varchar2(30),
        date_created date,
        constraint t_pk primary key ( pk )
    create or replace type num_ntt is table of number;
    create or replace type vc2_ntt is table of varchar2(30);
    create or replace
    package pkg
    as
      type rec is record(
          pk        num_ntt,    
          id_batch  vc2_ntt
      procedure p(
          p_count in number,
          p_rt    out nocopy rec
    end pkg;
    create or replace
    package body pkg
    as
      procedure p(
          p_count in number,
          p_rt    out nocopy rec
      is
      begin
          execute immediate '
          insert into t
          select level, ''x'' || level, sysdate
          from   dual
          connect by level <= :p_count
          returning pk, id_batch into :pk, :id_batch'
          using p_count returning bulk collect into p_rt.pk, p_rt.id_batch;
      end p;
    end pkg;
    declare
      r  pkg.rec;
    begin
      pkg.p( 5, r );
    end;
    /

    sanjeevchauhan wrote:
    but I am working with dynamic statement and returning multiple fields into a collection.And using an INSERT...SELECT statement combined with a RETURNING INTO clause still does not work. Whether it's dynamic SQL or not: it doesn't work. The link describes a workaround.
    By the way, I don't see why you are using dynamic SQL here. Static SQL will do just fine. And so you can literally copy Adrian's setup.
    Regards,
    Rob.

  • Inserting text 5Kb in size

    Dear everyone,
    What is the most optimal way of inserting text of
    more than 5Kb into a DB using INSERT statement?
    Is there a way for me to insert in chunks, say of
    1Kb? How would I implement it?
    What is the recommended max size of text that I
    can have in a field?
    I seem to run into all kinds of trouble inserting
    large amounts of data - sometimes the INSERT query
    just freezes!
    Your help is deeply appreciated!
    George

    If you have BIG strings it might be better to use a BLOB field instead of Varchar

  • How to insert text in current Pdf?

    I try to insert text into current pdf i am getting unexepected error
        PDEContent pdeContent;
        AVDoc avDoc = AVAppGetActiveDoc();
        PDDoc pdDoc = AVDocGetPDDoc (avDoc);
        PDPage pdPage = PDDocAcquirePage(pdDoc,AVPageViewGetPageNum(AVDocGetPageView(AVAppGetActiveDoc())));
        pdeContent = PDPageAcquirePDEContent(pdPage, NULL);
        //Create a PDEText object
        PDEText pdeText = PDETextCreate();
      //  Create a DEGraphicState object and set its attributes
        ASFixedMatrix textMatrix;
        //Create an ASFixedMatrix object
        memset(&textMatrix, 0, sizeof(textMatrix)); /* Set the buffer size */
        textMatrix.a = Int16ToFixed(24); /* Set font width and height */
        textMatrix.d = Int16ToFixed(24); /* to 24 point size */
        textMatrix.h = Int16ToFixed(1*72); /* x,y coordinate on page */
        textMatrix.v = Int16ToFixed(2*72); /* in this case, 1" x 2" */
        PDEGraphicState gState;
        PDEColorSpace pdeColorSpace = PDEColorSpaceCreateFromName(ASAtomFromString(colour_space.c_str()));
        memset(&gState, 0, sizeof(PDEGraphicState));
        gState.strokeColorSpec.space = gState.fillColorSpec.space = pdeColorSpace;
        gState.miterLimit = fixedTen;
        gState.flatness = fixedOne;
        gState.lineWidth = fixedOne;
        PDSysFont sysFont;
        PDEFont pdeFont;
        PDEFontAttrs pdeFontAttrs;
        //Set the size of the PDSysFont and set its attributes
        memset(&pdeFontAttrs, 0, sizeof(pdeFontAttrs));
        pdeFontAttrs.name = ASAtomFromString("CourierStd");
        pdeFontAttrs.type = ASAtomFromString("Type1");
        //Get system font
        sysFont = PDFindSysFont(&pdeFontAttrs, sizeof(PDEFontAttrs), 0);
        //Create a font that is used to draw text on a page
        pdeFont = PDEFontCreateFromSysFont(sysFont, kPDEFontDoNotEmbed);
        char *chrNewFilePath = "Doc.pdf";
        ASText  asFilePath =  ASTextFromUnicode(reinterpret_cast <ASUTF16Val *> (chrNewFilePath), kUTF8);
        //Create a character pointer
        char *HelloWorldStr = "Hello There";
        //Create new text run
        PDETextAdd(pdeText, //Text container to add to
                   kPDETextRun, // kPDETextRun
                   0, // in
                   (unsigned char*)HelloWorldStr, // Text to add
                   strlen(HelloWorldStr),// Length of text
                   pdeFont, // Font to apply to text
                   &gState, //Address of PDEGraphicState object
                   sizeof(gState), //Size of graphic state to apply to text
                   NULL,
                   0,
                   &textMatrix, //Transformation matrix for text
                   NULL); //Stroke matrix
        ::free(chrNewFilePath);
        ASFileSys  asFileSys =  ASGetDefaultFileSysForPath(ASAtomFromString( "ASTextPath" ), asFilePath);
        ASPathName asNewPath =  ASFileSysCreatePathName(asFileSys,  ASAtomFromString( "ASTextPath" ), asFilePath, 0);
        PDDocSave(pdDoc, PDSaveFull , asNewPath , asFileSys, NULL, NULL);

    I changed that code to below mention code, when i was run the plugin and after close the acrobat it asking for save, but it doesn't show any text text
    ASFixedRect  cropBox;
        char  errorMsg[256];
        ASInt32  errorCode = 0;
        PDPageGetCropBox  (pdPage, &cropBox);
        // Initialize the font descriptor then create the font reference.
        // Because we're using one of the base 14 Type 1 fonts, we only
        // need to pass a small amount of information to PDEFontCreate().
        PDEFont  pdeFont =  NULL;
        PDEFontAttrs  pdeFontAttrs;
        memset(&pdeFontAttrs, 0,  sizeof (pdeFontAttrs));
        pdeFontAttrs.name  =  ASAtomFromString( "Courier" );
        pdeFontAttrs.type  =  ASAtomFromString( "Type1" );
        DURING
        // Create the font reference.
        pdeFont =  PDEFontCreate(&pdeFontAttrs, sizeof (pdeFontAttrs), 0, 255, 0, 0,  ASAtomNull, 0, 0, 0, 0);
        HANDLER
        ASGetErrorString  (ASGetExceptionErrorCode(), errorMsg, 256);
        AVAlertNote  (errorMsg);
        return   NULL;
        END_HANDLER
        PDEColorSpace  pdeColorSpace =  PDEColorSpaceCreateFromName(ASAtomFromString( "DeviceGray" ));
        PDEGraphicState  gState;
        ASFixedMatrix  textMatrix;
        // The graphics state controls the various style properties of the text
        // including color, weight, and so forth.
        memset (&gState, 0,  sizeof (PDEGraphicState));
        gState.strokeColorSpec.space  = gState.fillColorSpec.space  = pdeColorSpace;
        gState.miterLimit  =  fixedTen;
        gState.flatness  =  fixedOne;
        gState.lineWidth  =  fixedOne;
        // Fill out the text matrix, which determines the point
        // size of the text and where it will is drawn on the page.
        memset (&textMatrix, 0,  sizeof (textMatrix));
        textMatrix.a  =  ASInt16ToFixed(12);
        textMatrix.d  =  ASInt16ToFixed(12);
        textMatrix.h  = cropBox.left  + (cropBox.right  - cropBox.left)/2 -  fixedSeventyTwo;
        textMatrix.v  = cropBox.top  - (cropBox.top  - cropBox.bottom)/2 -  fixedThirtyTwo;
        PDEText   volatile  pdeText =  NULL;
        DURING
        // Create a new PDEText element and add a kPDETextRun object to it.
        pdeText =  PDETextCreate();
        PDETextAdd  (pdeText,  kPDETextRun, 0, (Uns8  *) "This page intentionally blank" , 30,
                     pdeFont, &gState,  sizeof (gState),  NULL, 0, &textMatrix,  NULL);
        // Insert text element into page content.
        PDEContentAddElem  (pdeContent,  kPDEAfterLast, (PDEElement)pdeText);
        // Commit the changes to the PDEContent.
        PDPageSetPDEContent(pdPage, gExtensionID);
        // Advertise that we changed the contents so the viewer redraws the
        // page and other clients can re-acquire the page contents if needed.
        PDPageNotifyContentsDidChange  (pdPage);
        HANDLER
        // Store the error code.
        errorCode = ASGetExceptionErrorCode();
        END_HANDLER
        // Release any objects we may have created or acquired.
        // Note : PDERelease correctly handles NULL, so we don't
        // need to test for valid objects.
        PDERelease  ((PDEObject) pdeColorSpace);
        PDERelease  ((PDEObject) pdeFont);

  • 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)

  • Insert missing records dynamically in SQL Server 2008 R2

    Hi, I am working on a requirement where I will have to work on some % calculations for 2 different states where we do business. The task that I am trying to accomplish is technically we need to have any Product sales in both the states if not for instance
    in the following example ProductC does not have sales in OR so I need to insert a record for ProductC - OR with 0. This is an intermediary resultset of all the calculations that I am working with.
    Example Dataset:
    CREATE TABLE [dbo].[Product](
    [Product] [varchar](18) NOT NULL,
    [State] [varchar](5) NOT NULL,
    [Area1] [int] NOT NULL,
    [Area2] [int] NOT NULL,
    [Area3] [int] NOT NULL,
    [Area4] [int] NOT NULL,
    [Area5] [int] NOT NULL,
    [Area6] [int] NOT NULL,
    [Area7] [int] NOT NULL,
    [Area8] [int] NOT NULL,
    [Area9] [int] NOT NULL,
    [Area10] [int] NOT NULL,
    [Total] [int] NULL
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductA','OR',0,0,2,0,2,0,0,0,0,0,4)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductA','WA',0,0,1,0,0,0,0,0,0,0,1)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductA','Total',0,0,3,0,2,0,0,0,0,0,5)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductB','OR',0,0,5,0,0,0,0,0,0,0,5)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductB','WA',0,0,2,0,0,1,0,0,0,0,3)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductB','Total',0,0,7,0,0,1,0,0,0,0,8)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductC','WA',0,0,0,0,0,0,0,0,0,1,1)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductC','Total',0,0,0,0,0,0,0,0,0,1,1)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductD','OR',5,2,451,154,43,1,0,0,0,0,656)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductD','WA',0,20,102,182,58,36,0,1,0,0,399)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductD','Total',5,22,553,336,101,37,0,1,0,0,1055)
    How to accomplish this in SQL Server 2008 R2.
    Insert missing record:
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductC','OR',0,0,0,0,0,0,0,0,0,0,0)
    Thanks in advance......
    Ione

    CREATE TABLE [dbo].[Products](
    [Product] [varchar](18) NOT NULL,
    [State] [varchar](5) NOT NULL,
    [Area1] [int] NOT NULL,
    [Area2] [int] NOT NULL,
    [Area3] [int] NOT NULL,
    [Area4] [int] NOT NULL,
    [Area5] [int] NOT NULL,
    [Area6] [int] NOT NULL,
    [Area7] [int] NOT NULL,
    [Area8] [int] NOT NULL,
    [Area9] [int] NOT NULL,
    [Area10] [int] NOT NULL,
    [Total] [int] NULL
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductA','OR',0,0,2,0,2,0,0,0,0,0,4)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductA','WA',0,0,1,0,0,0,0,0,0,0,1)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductA','Total',0,0,3,0,2,0,0,0,0,0,5)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductB','OR',0,0,5,0,0,0,0,0,0,0,5)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductB','WA',0,0,2,0,0,1,0,0,0,0,3)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductB','Total',0,0,7,0,0,1,0,0,0,0,8)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductC','WA',0,0,0,0,0,0,0,0,0,1,1)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductC','Total',0,0,0,0,0,0,0,0,0,1,1)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductD','OR',5,2,451,154,43,1,0,0,0,0,656)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductD','WA',0,20,102,182,58,36,0,1,0,0,399)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductD','Total',5,22,553,336,101,37,0,1,0,0,1055)
    ;WIth mycte as (
    Select Product,State From (Select distinct Product from Products) p, (
    Select distinct State from Products) s
    Insert into [Products](Product,State,[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])
    Select m.Product,m.State
    ,0,0,0,0,0,0,0,0,0,0,0
    from mycte m Left Join Products p on m.[Product]=p.Product and m.State=p.State
    WHERE p.Product is null and p.State is null
    select * from Products
    Order by Product
    ,Case when State='Total' Then 2 else 1 End
    Drop table Products

  • 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

  • How to insert text in existing file.?????

    how to insert text in existing file.?????
    my file contains simple text with numbers of lines having more then 10 MB size and it might be increase up to 100MB.
    i required to seek to spec. position and insert chunk of characters to file without overwriting existing one.
    I tried out with RandomAccessFile class Also.
    Pl. Suggest me way to insert String in existing file.
    Thanks ,
    Timir

    how to insert text in existing file.?????You can't "insert" text into an existing file. You can
    overwrite portions of an existing file or extend one by
    writing past the current end of file.
    If you want to insert text into a file you have to write
    out a new file.

  • Inserting text into a field at the current cursor position

    Does anyone know how to insert text into a field at the current cursor position? I would like it to work similar to the Syntax Palette in Forms. I cannot figure out how to retrieve the current cursor position in order to manipulate the text.
    Any help would be great.
    Thanks.

    Hi,
    If the button and the textfield are on in the same subform then this code should work in the click event of the button
    (This is JavaScript code so make sure the code is set to JavaScript and Client on the drop downs in the script window)
    (assuming the name of the textfield is TextField1)
    TextField1.rawValue = "some value";
    If they are in different subforms then you have 2 options
    Please note in both these options it is easier if the subforms have names ( I am assuming this to keep samples simple)
    option 1 -
    use the parent object to move up the tree till you are at the same level as that of the subform that contains the textfield
    e.g. 
    (Click Event of the button)
    this.parent.subformname.TextField1.rawValue = "some value";
    option 2 -
    Use the resolve node to make your way down from the top level of the form
    xfa.resolveNode ("form1.subformname.TextField1").rawValue = "some value";
    Hope this helps
    Malcolm
    p.s. I am making assumptions as the image/file you attached did not appear for me.

  • Inserting text into a Pages document with Applescript

    I want to create a Pages document from a custom template but be able to insert text at various points in the document (inputted data under headings etc). I would like to use Applescript but cannot get insertion points to work, is this possible? As usual, all help gratefully accepted.

    I have made a Pages template that contains tables and I want to enter text into sections of these tables
    That's a completely different story! But that's still possible using GUI Scripting. Here's an example:
    tell application "Pages"
        activate
        select table 1 of body text of front document
        tell application "System Events" to tell process "Pages"
            set theWindow to window 1 whose role description is "standard window"
            click button "Table" of tool bar 1 of theWindow
            keystroke "Cell A1"
            keystroke tab
            keystroke "Cell B1"
            key code 125 -- down arrow
            keystroke "Cell B2"
            -- and so on
        end tell
        select insertion point after table 1 of body text of front document
    end tell

  • Inserting Text into a web page

    I need to know how to insert text into a webpage, like google, search, and then get the result.
    Using the wonders of the internet I have been able to display a webpage, and see the HTML code that is generated, however, I don't know how to insert text into a web page, or get the result.
    Any help, or pointing into the right direction would be appreciated.

    What do you mean by insert into web page? Like
    prefill data on a form?
    Or like a search on google? What are you using to
    do this?
    I am guessing based on the info you gave in your
    question, that you might want to just look at the url
    of the page. For example search on google and you
    will see the text entered into the search field
    inside the url. Learn from that and develop a url
    that will search for the text you want to insert.
    If I am not understanding you, please clarify.Right now, I'm using the URL to search for me, which will work, but the search can be different from website to website, and I would like something closer to an automated form filler if I need to implement something like this again.
    Of course, something like an automated form filler would probably work better, if I were able to retreve the results

  • 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

Maybe you are looking for

  • If I already have the android SDK and AVD installed from prior installation for eclipse do I have to

    If I already have the android SDK and AVD installed from prior installation for eclipse do I have to do it again for dreamweaver if I want to develop for android ? Also, if I'm developing for android, ipad, and iphone and I want them all to be the sa

  • Actionlisteners in underlaying classes

    Hi all I have a problem with the actionlistenermodel. My main class is setting up the entire swingcoordination, except the one panel with buttons on. I made a new classe that extends Jpanel implementing actionlistener, and then i add this class to my

  • Does anyone else have this problem

    This is going to sound really stupid but its been driving me crazy. I have high cheek bones which is usually a plus however I have noticed when I am talking on a call.. more times then not the caller can't hear me.. the reason it seems is while talki

  • LINQ to Entities Query not working

    I have a database with two tables (UserData) and (UserDetails). I use the LINQtoEntities. The issue here is that in the LINQ query is not accepted: "Details = c.ToList<UserDetails>()" Error is:  Instance argument: cannot convert from 'System.Collecti

  • Complex pricing procedure

    Hi Gurus My client has a requirement whereby they need to bill on materials which have over stayed in their premises in excess of 30 days. The client deals with the business of storage of materials for it customers. They have proposed two levels of t