Changing picture at runtime using delphi

Post Author: iman_400
CA Forum: Other
Please help me, is there anyway we can change picture at runtime using delphi 7.0 and CRXIR2?

Hi, Lee;
For the version of Crystal Reports that comes with .NET, you can use something like one of our samples shows:
https://smpdl.sap-ag.de/~sapidp/012002523100006252822008E/net_win_smpl.exe
Look for the sample, vbnet_win_DynamicImage.zip. It uses an ADO.NET dataset to change the image.
For Crystal Reports XI R2 and Crystal Reports 2008, you can more directly change the image location using built in functionality.
In the Designer, choose Insert > Picture. Choose a default image to show and save it. Right-click on it and select Format Graphic. Go to the Picture tab and click the formula button for Graphic location. Save the report.
Then, at runtime you can populate the Formula with the new location for your image, either a URL or disk file location.
See the following note for more information:
[Image|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333333373334%7D.do]
Best Regards,
Jonathan

Similar Messages

  • Changing Picture at Runtime VS2005

    Hi
    I'm using VS2005 enterprise edition and the Crystal Reports that came with that package (the file versions say they are 10.2.3600).  All I want to do is insert an image at runtime, however this appears to be impossible judging by all the code I've looked through.  It seems that it was easy to do with version 9 and may be possible with version 11 but I can't find any code that works with the version that comes with VS2005.  Of course there's the standard method to insert an image and link it to a particular image in a folder, however this is fairly useless as when the program is deployed the user can choose which directory he installs to.  So what do I have to do to get this working.  Is it essential to upgrade?  If so what version do people recommend?  Once I have that version how do you change the image you want displayed in code (preferably VB.NET but I'm sure I can work out C#)?
    Thanks
    Lee Ottaway
    Fusion Software (UK) Ltd

    Hi, Lee;
    For the version of Crystal Reports that comes with .NET, you can use something like one of our samples shows:
    https://smpdl.sap-ag.de/~sapidp/012002523100006252822008E/net_win_smpl.exe
    Look for the sample, vbnet_win_DynamicImage.zip. It uses an ADO.NET dataset to change the image.
    For Crystal Reports XI R2 and Crystal Reports 2008, you can more directly change the image location using built in functionality.
    In the Designer, choose Insert > Picture. Choose a default image to show and save it. Right-click on it and select Format Graphic. Go to the Picture tab and click the formula button for Graphic location. Save the report.
    Then, at runtime you can populate the Formula with the new location for your image, either a URL or disk file location.
    See the following note for more information:
    [Image|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333333373334%7D.do]
    Best Regards,
    Jonathan

  • Change Picture In Offline Mode

    Hi All,
    I've found that in Word 2013 Change Picture insists on having Internet access. And it's a pain, there are many reasons why we do not want Word charging off to the Internet at the merest hint of a request.
    To test, try creating a document and populating it with a jpeg (or similar) from a local source.
    Use Change Picture and see the result. You have to dive down to the Work Offline to get a local image.
    Then try Unchecking the "Allow Office to connect to the Internet", under Options -> Trust Center -> Trust center Settings -> Privacy Options.
    Repeat, this time you get a pop up saying this feature needs the Internet.
    Now, MS and others may think that the Internet and Cloud is the be all and end all, but why forcing a feature such as Change Picture needs the Internet is beyond me.
    Has anyone found a way to make this behave a bit more rationally?

         Do you mean you get the following error in the screenshot?
    That's not the same as the error I get:
    Note: there is no "Work offline" option in Office 2013. Maybe there was once, but has been removed?
           I think the Change
    Picture button is used for online pictures, and it needs an internet connection.
    I think you're correct in that someone in Microsoft thinks this is the right way to go. I think that preventing the rest of us from working offline permanently is absolutely the wrong decision by Microsoft R&D. For someone writing and updating business
    specifications, updating and inserting screenshots from the web is almost never desirable.

  • Unable to change .jsp file at runtime using weblogic 8.1 server

    Hello all,
    I'm running weblogic 8.1 and the development environment is workshop.
    I have several .jsp files in the application.
    when the server is running and I try to change the .jsp file and access it throw the browser, I'm getting compilation errors and when I copy the original file again everything is OK.
    I'm gessing the problem occurs due to the date of the new .jsp file(if I compile the .jsp file it creates a new servlet with newer date then the file generate when compiling the application before running the server).
    Your advice will be welcome.

    Hi Robert,
    Take a look at the SAP Note "[1553921 - Is there a utility that would help in writing database logon code?"|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533353333333933323331%7D.do]
    The utility provided in above SAp Note will generate the logon code for your existing report, update the logon information of the target database in the code.
    Also search for the sample application 'change database at runtime' in top right corner search box.
    Hope it helps,
    Thanks,
    Bhushan.

  • Any way to use Delphi strings?

    I know that LabView can, when calling external libraries, use Pascal string pointers. However, those are limited, is there a way to call an external library using a Delphi string?
    FYI: a Pascal string uses one byte for it's length, a Delphi string uses 4 bytes. Since I'm using Delphi for implementing the DLL, using Delphi strings would be way more straightforward than using C strings.
    Solved!
    Go to Solution.

    Kirillenseer wrote:
    Thank you, I'll try to go with the handle method, pointer to a Delphi string reference. Still funny that LV string and Delphi string are the exact same beasts, yet can't interoperate seamlessly.
    They are not the same! They look the same in terms of the actual byte layout in memory, but the memory management is entirely different. The LabVIEW String is a LabVIEW Handle, an internal memory object managed by the LabVIEW memory manager functions and using a pointer to a pointer to the actual information. Any modification to the string that requires to change its size MUST be performed by calling the according memory manager functions, or a crash is immediately evident.
    The Pascal String is a memory area managed by the Delphi runtime library (and maybe, possibly, but likely not documented be implemented under Windows on top of the SysString datatype.) and repreents just a pointer to the data.
    If you want to pass in a string to a DLL function that is passed in by reference (VAR keyword) you can get away with configuring it as a  LabVIEW String handle. But if the string is passed into the function by value (just the String itself) this won't work at all. And if the function is supposed to return information in the string you can't do it without either a wrapper or some pointer magic implemented in the diagram. This is because if you configure it as a LabVIEW Handle, LabVIEW expects it to be allocated by its memory manager functions, but Delphi will do it with its Delphi runtime functions and as soon as LabVIEW attempts to free that string, it will crash, since the memory loacation is not allocated from the heap managed by the LabVIEW memory manager.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Changing Images at Runtime...it's sending me nuts (I'm a newbie, go easy)

    Hi all,
    I am trying change images at runtime and quite frankly it's driving me nuts. I'm pretty new to Java and don't understand some of the principles but I'm trying. I have this code below, that loads up a few images. I want to be able to change some/all of these images either on a timed even or on a button press, but all the things I've tried don't work. Can someone offer me some help....thanks in advance
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class bc extends JFrame implements ActionListener {
         public static void main(String[] args) {new bc();}
         bc() {
              //setUndecorated(true); // - this removed the titlebar!
                    setTitle("BC...");
              setSize(350,125);
              setResizable(false);
              setLocation(50,50);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              setBackground(new Color(0,0,0));
              getContentPane().setBackground(new Color(255,255,255));
              JPanel hours = new JPanel();
              hours.setLayout(new GridLayout(4,2));
              hours.add(hour14);
              hours.add(hour24);
              hours.add(hour13);
              hours.add(hour23);
              hours.add(hour12);
              hours.add(hour22);
              hours.add(hour11);
              hours.add(hour21);
              JPanel mins = new JPanel();
              mins.setLayout(new GridLayout(4,2));
              mins.add(min14);
              mins.add(min24);
              mins.add(min13);
              mins.add(min23);
              mins.add(min12);
              mins.add(min22);
              mins.add(min11);
              mins.add(min21);
              JPanel secs = new JPanel();
              secs.setLayout(new GridLayout(4,2));
              secs.add(sec14);
              secs.add(sec24);
              secs.add(sec13);
              secs.add(sec23);
              secs.add(sec12);
              secs.add(sec22);
              secs.add(sec11);
              secs.add(sec21);
              JPanel helptext = new JPanel();
              helptext.setLayout(new GridLayout(4,2));
              helptext.add(new JLabel("8"));
              helptext.add(new JLabel("4"));
              helptext.add(new JLabel("2"));
              helptext.add(new JLabel("1"));
    //add action listenters
              changeImg.addActionListener(this);
              JPanel cp = new JPanel();
              cp.setLayout(new GridLayout(1,6));
              cp.setBackground(new Color(255,255,255));
              cp.add(hours);
              cp.add(mins);
              cp.add(secs);
              cp.add(helptext);
              cp.add(changeImg);
              setContentPane(cp);
              setVisible(true);
         public void actionPerformed(ActionEvent ae) {
              hour11.PaintOff(1);
              //JOptionPane.showMessageDialog(this, "changed");
              repaint();
    JPanel hour11 = new PaintOff(0);
    JPanel hour12 = new PaintOff(0);
    JPanel hour13 = new PaintBlank();
    JPanel hour14 = new PaintBlank();
    JPanel hour21 = new PaintOff(0);
    JPanel hour22 = new PaintOff(0);
    JPanel hour23 = new PaintBlank();
    JPanel hour24 = new PaintBlank();
    JPanel min11 = new PaintOff(0);
    JPanel min12 = new PaintOff(0);
    JPanel min13 = new PaintOff(0);
    JPanel min14 = new PaintOff(0);
    JPanel min21 = new PaintOff(0);
    JPanel min22 = new PaintOff(0);
    JPanel min23 = new PaintOff(0);
    JPanel min24 = new PaintOff(0);
    JPanel sec11 = new PaintOff(0);
    JPanel sec12 = new PaintOff(0);
    JPanel sec13 = new PaintOff(0);
    JPanel sec14 = new PaintOff(0);
    JPanel sec21 = new PaintOff(0);
    JPanel sec22 = new PaintOff(0);
    JPanel sec23 = new PaintOff(0);
    JPanel sec24 = new PaintOff(0);
    JButton changeImg = new JButton("change");
    }///---------This is my PaintOff class ---------------\\\
    import javax.swing.*;
    import java.awt.*;
    import java.awt.Image.*;
    public class PaintOff extends JPanel {
    Toolkit tk = Toolkit.getDefaultToolkit();
    public Image imgOff = tk.getImage("off.jpg");
    public Image imgOn = tk.getImage("on.jpg");
    public Image paintMe = tk.getImage("off.jpg");
         PaintOff(int a) {
              if(a == 1) {
                   vOn();
              } else {
                   vOff();
         public void vOn() {
            paintMe = imgOn;
         //JOptionPane.showMessageDialog(new bc(), "shown");
         public void vOff() {
            paintMe = imgOff;
         public void paintComponent(Graphics g) {
              g.drawImage(paintMe,0,0,this);
    }PaintBlank class is not included here, it's basically just the same as PaintOff but only has one image inside.
    When I try and compile this code, I get
    C:\jdk1.4\bin\bclock>javac bc.java
    bc.java:79: cannot resolve symbol
    symbol : method PaintOff (int)
    location: class javax.swing.JPanel
    hour11.PaintOff(1);
    ^
    1 error
    I don't understand this either, I've tried replacing "PaintOff(1)" with "vOn()" but I get the same error. This is baffling to be, as I thought that the hour11 would have access to all the methods inside the PaintOff class?
    Anyway, thanks for any help you guys give me!
    Cheers
    //Chris.

    Hi!
    Your problem is that you've used a widening conversion to convert from PaintOff to a JPanel. JPanel has no such method, and so the compiler is complaining that it can't find it.
    e.g
    public class NoCompile{
         public static void main(String args[]){
              One one = new Two();
              one.methTwo();
    public class Two extends One{
         public Two(){}
         public void methTwo(){
            System.out.println("Executed 2");
    public class One{
         public One(){}
         public void meth1(){}
    } will give you the same sort of error message. To make the compiler happy, use a cast.
    Now this will compile and gives the right result.
    public class NoCompile{
         public static void main(String args[]){
              One one = new Two();
              ((Two)one).methTwo();
    }So in your case, you want to do
    ((PaintOff)hour11).vOn();
    Does that help?
    :) jen

  • Desktop Pictures: "Change Pictures" in System Prefs no longer works.

    I used to have my Desktop pictures change every five minutes using a special folder of photos. This function no longer works. The setting appears to be in effect according to the System Preferences Desktop Pictures Pane but the function appears to be broken in 10.4.5. I have trashed the Destop Pictures Preferences file in the Preferences Folder, but it still will not work.
    Can anyone using Tiger 10.4.5 get this to work?
    Griff

    OK, that was really dumb!
    The reason for the problem became abundantly clear when I quit Pathfinder. Suddenly the picture change became functional again.
    So, I guess Pathfinder will not follow the Finder when it comes to settings like this.
    Hey Cocoatech, how about getting this into your next release?
    Griff

  • Change picture

    how would i make this change picture button change the picture to the traffic light and have it behave the same as the smiley when the move picture button is clicked? also, how can i make this whole program swing instead of awt?
    import java.math.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    import java.applet.*;
    public class Lab7 extends Applet implements ActionListener
       Picture myPicture1 = new Picture (Color.blue, Color.black, Color.red);
       Picture myPicture2 = new Picture (Color.red, Color.yellow, Color.green);
       Button moveButton = new Button ("Move Picture");
       Button sadButton = new Button ("Sadness");
       Button switchButton = new Button ("Switch Picture");
       int x = 50;
       boolean flag = true;
       public void init()
           setBackground(Color.black);
           moveButton.addActionListener(this);
           //switchButton.addActionListener(this);
           //sadButton.addActionListener(this);
           add(switchButton);
           add(moveButton);
           add(sadButton);
       public void paint(Graphics g)
       myPicture1.draw(g);
       myPicture1.setXY(300, 20);
       myPicture1.setXY(x, 20);
       myPicture1.draw(g);
       public void actionPerformed (ActionEvent ae)
           if (x > getSize().width - 175)
               /* 175 = diameter(150) + xOffset(10) + xIncrement(5)
            * + xOffsetToNotRunToEdge(10) n
            x = 0;
            else
            x += 5;
            repaint();
       class Picture {
           private Color faceColor;
           private Color eyeColor;
            private Color smileColor;
            private int x = 50;
            private int y = 30;
            public Picture (Color f, Color e, Color s)
                faceColor = f;
                eyeColor = e;
                smileColor = s;
            public void setXY(int newX, int newY)
                x = newX;  y = newY;
    public void setColors(Color faceColor,
    Color eyeColor, Color smileColor)
         this.faceColor = faceColor;
         this.eyeColor = eyeColor;
         this.smileColor = smileColor;
           public Color getFaceColor()
               return faceColor;
           public Color getEyeColor()
               return eyeColor;
               public Color getSmileColor()
                   return smileColor;
               public void draw(Graphics g)
                   g.setColor(faceColor);
                   g.fillOval(x + 10, y + 40, 150, 150);
                   g.setColor(eyeColor);
                   g.fillOval(x + 60, y + 85, 10, 10);
                   g.fillOval(x + 100, y + 85, 10, 10);
                   g.setColor(smileColor);
                   g.drawArc(x + 35, y + 75, 100, 100, 200, 140);
             class Picture2 {
             private Color topLight;
             private Color midLight;
             private Color lowLight;
             private int x = 50;
             private int y = 30;
             public Picture2 (Color f, Color e, Color s)
                topLight = f;
                midLight = e;
                lowLight = s;
            public void setXY(int newX, int newY)
                x = newX;  y = newY;
    public void setColors(Color topLight,
    Color midLight, Color lowLight)
         this.topLight = topLight;
         this.midLight = midLight;
         this.lowLight = lowLight;
           public Color gettopLight()
               return topLight;
           public Color getmidLight()
               return midLight;
               public Color getlowLight()
                   return lowLight;
               public void draw(Graphics g)
                   g.drawRect (100, 100, 50, 150);
                   g.setColor(topLight);
                   g.fillOval (100, 100, 50, 50);
                   g.setColor(midLight);
                   g.fillOval(100, 130, 50, 50);
                   g.setColor(lowLight);
                   g.fillOval(100, 160, 50, 50);
       }

    Use Swing Components. =)

  • I use Apple TV's screen saver with a file in my photo library.  If I install newest update - will that change anything with my using this favorite feature?  I have just under 4000 photos in that file.  What is the total # of photos it can utilize?

    I use Apple TV's screen saver with a file in my photo library.  I believe it is first generation or second Apple TV - not the newest one.
    If I install newest update - will that change anything with my using this, my favorite feature?  I have just under 4000 photos in that file. 
    And, what is the total # of photos it can utilize?  If I keep adding photos - is there a limit to the # it will utilize?

    Thank you Alan and  know you are right. I really can do all I need with my netbook and ereader and do not need the ipad. I think I just wanted something new and felt I may enjoy using it a lttle more than the netook. But it would be a waste just to buy one when I donlt acutally need it  And, donl't think it is worth the extra money for me the get the 4g wireless capability since I doubt I would really need it often.
    I may treat myself to the Ipad for the color, touchpad and fun to use but it is very expensive considering how little it will do for me no more than the things I want it for. It woudl be and expensive luxuray, I can do without. I actually  need t learn how to use more of the function avaiable first.  Maybe I should take up playing games and learning to take digital pictures so I can at least load them. If I could learn to do that and take a decent picture, I could start selling back all the "stuff" I have purchased on ebay. haha - I do have a nice doll collection, I would like to sell. I just do not have room for anything else. That was the primary purpose for the Kindle Ereader I bought and enjoy so much,
    But, I will hold onto the thought for a while and see how it goes and what other comments I get, If I think I cannot live without it, then I will have to rethink which one to buy, I coud get the 32 g if I did not have to pay for the 4g wireless. And, if I knew I could get help to teach me how to use and enjoy all the functions, I would give it more serious consideration. My granddaugther got one for Christmas and that was what got me interested in it. I love the size of the screen and it had good color and was fast. She even had an application where she could write her notes and it would convert into typed words. That was a neat feature, If you could print it?
    But thanks again for your comments and I will check later to see I get any other feedback.
    Sunny:)

  • Change to the runtime the logon language with ABAP

    Hello,
    I have a  question.
    Is it possible to change to the runtime the logon language?
    With the URL-parameter example it worked.
    http://www.****bsp/sap/z_page/default.htm?sap-language=en
    But I need this in the event handler with ABAP coding.
    thanks Eren

    you can either use
    CL_HTTP_UTILITY->IF_HTTP_UTILITY~SET_REQUEST_URI
    uri = sap-language=FR
    or
    CL_HTTP_REQUEST->IF_HTTP_ENTITY~SET_FORM_FIELD
    name = sap-client
    value = FR
    or
    use
    SET LOCALE LANGUAGE 'S'. within your abap coding
    Regards
    Raja

  • Changing Structure in Runtime(WAD)

    Hi,
    I have one infoprovider "INF" and query "QUERY1" with two structures "Strut1" and "Struct2" in infoprovider.
    Can i swap between these two structures in the runtime using the same query and infoprovider. usng WAD custom developement.
    Is there any standard command available to this...thanks in advance.
    Thanks,
    Damodhar.

    Hi,
    Changing of structures is not possible at query runtime, but what you can do is you can select the Elements of the structure during query runtime.If you are using Web Reports, you would just need to pass the Selection of the Structure element in the URL (helps you to construct the columns of your report)
    So for your requirement create a single structure which includes the Columns from both structures and have then selected at runtime.
    Regards,

  • [svn] 3839: Update the channel url to reflect the change in the runtime channel

    Revision: 3839
    Author: [email protected]
    Date: 2008-10-23 07:42:37 -0700 (Thu, 23 Oct 2008)
    Log Message:
    Update the channel url to reflect the change in the runtime channel
    Modified Paths:
    blazeds/branches/3.0.x/qa/apps/qa-manual/ajax/messaging/TextMessageRuntimeDest.html

    Many ways to do this. The easiest is to have a method in one of your classes that reads the data from the database and creates all the proper structure under a RootNode and then returns that RootNode.
    Whenever you want to refresh the tree, just call that method to recreate the root node (and all the underlying structure/nodes) and then re-set the root node of your tree model using the setRoot() method. That will cause it to refresh the display given the new root node.
    Once you have that working, you can get fancier and make it more efficient (only updating/firing events for the nodes that actually changed, etc).

  • IPod changing pictures when rotated

    I have this strange issue, where when I am viewing pictures & try to use the accelerometer to rotate the picture it changes the picture to someother one. Here is a video of the issue in action
    http://www.youtube.com/watch?v=XQWkunxgcQs
    http://www.youtube.com/watch?v=u7_R-KpB9GM
    I have done the 5 Rs(reset, retry, restart, reinstall, restore) 4 times & the issue still doesn't go away! Yes, it is running the newest firmware. Any help will be appreciated.

    I think Wade is on the right track with an effect being applied to this (eg: envelope distort), but the effect is probably applied at a group level that you have not inspected yet.
    Try selecting your bitmapped image with the direct (hollow arrow) tool, make a new document paste the image in a fresh new document and rotate. This test can tell us if maybe you have an effect applied at the entire layer level, or atleast simplify so you can troubleshoot better, or open the door to a solution for you on this by simply replacing the effected image in the original.
    Nested groups, compound paths, masks, envelope distorts all complicate this so answering this post is difficult without being able to examine the file.

  • How to Change S960 Lockscreen wallpaper using own image?

    Can anybody advise on how to change S960 lockscreen wallpaper using own image? I only manage to use the default or existing lockscreen wallpaper which appear in theme setting.

    Hi all, the solution is very simple.Simply save the pictures that you want to use as your lockscreen into storage/sdcard0/Download/pictures/lockscreenYour lockscreen picture should be in 16:9 or (1920 x 1080 pixels). To set the pictures as your lockscreen, go to theme setings, swipe to the right and tap the lockscreen wallpaper option that is on the right (red box).You'll see all the lenovo default lockscreen wallpapers, as well as the lockscreen pictures that you saved. Just tap the picture and set as lockscreen wallpaper.

  • Using Delphi, and the InDesign automation object ("indesign

    Using Delphi, and the InDesign automation object ("indesign.application"), I need to open a indd file, move to a bookmark and insert text or picture at that exact location. Any examples of such code I could start with?

    Hi Bill,
    Sorry to be so late getting to this thread!
    If you want to add something to a page, or find an object that's on a page, you need a reference to the page. Simply displaying the page with ShowBookmark won't give you a reference to the page--InDesign scripting, for the most part, doesn't rely on the selection and current view in the way that Word scripting does (this is a good thing, but that's a topic for another day).
    You had to have a reference to a page to create the HyperlinkPageDestination that you used to create the bookmark--but, if not, you can get a reference to the page using (VBScript form):
    Rem Given a reference to an instance of InDesign "myInDesign"...
    myInDesign.Bookmarks.Item("Description").ShowBookMark
    Set myPage = myInDesign.ActiveWindow.ActivePage
    In general, though, you probably don't need the bookmark and the whole "ActiveWindow" construct--just use the reference to the page itself.
    Now that you have a page, you can put things on the page.
    Rem Create a rectangle
    Set myRectangle = myPage.Rectangles.Add
    Rem Size and position the rectangle
    myRectangle.GeometricBounds = Array("6p", "6p", "24p", "24p")
    Rem Place a graphic in the rectangle
    myRectangle.Place "c:\test.tif"
    If you have a text frame on the page that has the label "myLabel", you can get a reference to the text frame and add text:
    Set myTextFrames = myPage.TextFrames.Item("myLabel")
    Rem myTextFrames will return an array--get the first item
    Set myTextFrame = myTextFrames(0)
    Rem Replace the text in the text frame:
    myTextFrame.Contents = "This is some text."
    Rem Or add text to the end of the text frame:
    myTextFrame.InsertionPoints.Item(-1).Contents = "This is some additional text."
    If you know that there is only one text frame with the label "Description" in the entire document, you can even say:
    Set myTextFrames = myDocument.TextFrames.Item("myLabel")
    Rem myTextFrames will return an array--get the first item
    Set myTextFrame = myTextFrames(0)
    ...to get to it directly. If, at that point, you want to get at the page containing the text frame (and assuming that the text frame is not in a group, pasted inside text, or pasted inside another page item), you can use:
    Set myPage = myTextFrame.Parent
    Have you looked through the "Working with Documents" chapter of the InDesign CS3 Scripting Guide: VBScript and the associated scripts archive? I realize that you're using Delphi, but it doesn't look too difficult to convert from one to the other.
    Thanks,
    Ole

Maybe you are looking for