change the text of a comment to report programmatically

I learn the new 2012 Diadem oriented object of the report.

I'm changing the text of a comment to report programmatically.

Dim Mycomment
Set Mycomment = Report.ActiveSheet.Objects.Add (eReportObjectComment, "MyComment")
MyComment.Position.ByBorder.top = 30
MyComment.Position.ByBorder.bottom = 20
MyComment.Position.ByBorder.Left = 20
MyComment.Position.ByBorder.right = 30
Text MyComment.Text = "Some"

MSG for error on the last line of the previous code = "object does not support this.
"property or method: 'text.

I can change it manually by double-clicking the comment, but want to change it to
the script.

'Text' is available as an option when you type the script. The object "text".
works great if I am modifying an eReportObjectText but not an eReportObjectComment.

Thank you
James

Hello James,.

Please check with updated the last line of code:

Text MyComment.Comment.Text = "Some"

Dia791

Tags: NI Software

Similar Questions

  • How to change the color inside a comment?

    Is possible in 3.5.3 numbers to change the color of the text inside a comment like ' 09 number?

    It is also possible to change the display of the comment type? I mean, it is possible to extend and to see more text? I use long comment for my work.

    Thank you all, sincerely.

    I have not found an easy way to expand the display area of a comment or change the color of the text (although the background color can be changed via the menu View > comments > author color).

    How about using a text box for longer passages?

    SG

  • Acrobat Standard DC - can't change the text and text box properties

    Earlier this week, I lost the ability to change the properties of the text and text boxes.

    When I add a comment with a text box or in the text caption, I do all the time, I used to be able to change the font color, size, alignment, etc.

    Now, when I go to insert a text box or the legend, all the options in the properties bar are grayed out.

    This issue effects ONLY the text in the box and the caption functions. all the other drawing functions work very well. I can change the color, fill and the type of lines around the text, I can just change the text.

    Any suggestions?

    Thank you.

    Hello

    We have released an update today which solves the problem of the properties toolbar and now you can continue to use it outside of the app commenting as well. Please open Acrobat or Reader DC and visit help > check for updates to ensure that you are on the latest patch.

    Details on the release: https://helpx.adobe.com/acrobat/release-note/acrobat-dc-august-02-2016.html

    Please let us know how it goes.

    Thank you

    -ashu

  • Cannot change the text box.

    Adobe Acrobat DC recently auto updated to the latest version, and it seems that the new version does not change the text boxes.

    The screenshot below shows what I mean.  I added a text box and pointed the police to change the size / font style / color, but it is gray just to go out in the toolbar properties (Ctrl + E)

    ADOBE CANNOT EDIT TEXT BOX.JPG

    Has anyone experience this problem?

    Hello

    We have released an update today which solves the problem of the properties toolbar and now you can continue to use it outside of the app commenting as well. Please open Acrobat or Reader DC and visit help > check for updates to ensure that you are on the latest patch.

    Details on the release: https://helpx.adobe.com/acrobat/release-note/acrobat-dc-august-02-2016.html

    Please let us know how it goes.

    Thank you

    -ashu

  • I'd like to edit a PDF secure document did not change the text, or the layout at all I would do is highlight the text.  How can I do this?  With the help of Adobe Acrobat DC 15.9.20077.160923

    I'd like to edit a PDF secure document did not change the text, or the layout at all I would do is highlight the text.  How can I do this?  With the help of Adobe Acrobat DC 15.9.20077.160923

    You know the password? Otherwise, the security policy does not allow adding comments in the file, then there is nothing you can do about it.

  • How to change the text box in Acrobat XI, created by earlier versions of Acrobat

    Hi, I'm having a hard time trying to figure out how to change a text box that was created in an older version of Acrobat and used to fill in a form.

    In my case, I added text boxes on text pre-existing using an earlier version of Acrobat.

    When I try to click on the text box, however, it seems to be back on the existing text and not allow me to change the text box I created in the past.

    Try changing the text with the tool 'Add comment text' which is in the notes pane. The text used to complete the form may have been written as annotation, so when you try to change those with editing tools, the original text is being edited.

  • Change the text of the button skin RH7

    Hello! I use HR HTML 7.0.

    I am creating bilingual online help (English and French) and wonder how I can change the text of the navigation buttons (contents, search, etc.) in the skin. All I could do is add text next to the buttons but not change the names of the buttons themselves.

    Are the images of buttons that need to be changed?

    Thanks for your help!

    Hello

    As you can see, the skin allows a combination of text and images for the buttons. Indeed, many skins than the text that is part of the button image. In this case, you must use an image editor or creator of buttons utility to change the text that is part of the button image.

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7 or 8 days - $24.95!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • How can I change the text in the Messages to the vertical?

    How can I change the text in the Messages to the vertical?

    If you mean change the orientation, simply turn the phone. If this does not work, close Messages and then run again.

    To close the Messages, press the Home button twice quickly. You will see small glimpses of your applications recently used. Drag to the left to find the application you want to close. Swipe up on the preview of the application to close.

    If it does not, the strength to restart the phone. No data is affected by this. To force the reboot your device, press and hold the two buttons of sleep/wake and home for at least ten seconds, until you see the Apple logo.

  • How can I add a right click Menu mouse to click 'CANCEL' * and * "REDO" button to change the text in Firefox?

    How can I add a Menu with the right mouse button to display a "UNDO" AND "REDO" button to change the text back in Firefox without losing or forgetting the changes as I can under Google Chrome? -OMG I told dinnt - SORRY!

    Glad you stuck with this issue cuz I pulled a real boner trying to fix. I was totally distraught on the main menu of * two * UNDO and REDO. If you remember that I tried to install the menu shortcut for UNDO them and REDO and totally rejected the idea that they might be under Edit on the crazy Main Menu which of course, they have been and worked like a charm. THANKS again man, you are a true hero!

  • How to change the text in the taskbar?

    I want to change the text that appears in the windows taskbar. Currently it shows the title of the Web page that you opened. I mean "Mozilla Firefox" all the time. This can be changed?

    https://addons.Mozilla.org/en-us/Firefox/addon/nightly-tester-tools/

    Nightly Tester Tools has an option to create custom text for customized by using the "Titlebar" window in tools title bar > Nightly Tester Tools > customize Titlebar. You can use the 'Variables' listed or just type anything you want displayed on the title bar, or even a combination of Variables with your own text.

  • Change the background color of comments in numbers?

    Is it possible to change the background color of comments in a document of numbers?

    I couldn't find a way to do it on my iMac, but I managed to change the color of comments in a document of iCloud numbers, and now he's changed the background color of comments on the document of numbers on my iMac.

    You may have found the only access to the color of the note

  • How to change the text Boolean unique element of clusters...

    Dear Sir.

    I need to change every single Boolean text element cluster programatially and here attached to my example of program it will change only the text lable, but I need to change the text Boolean cluter element .it posssible or not.

    Your program is not attached.

    What you need to do is right-click on the property node create on that and something specific to change.

  • Change the text of each tab of a tab control

    I would change the text/display of the individual of a tab control tab label when the software is running.

    Is this possible? Or, is it a good idea for OR add an attribute of "legend of the tab" tab control, so it can be done easily?

    Thank you.

    Yes, you can change the label of a tab programmatically.

    http://digital.NI.com/public.nsf/allkb/F2C3875A7DC7C7BA86256B760007D122

  • Cannot change the text in the existing mathscript box

    I'm under Labview 8.2... I know it's super old, but I met some compatibility issues and found it much easier to continue in version 8.2.

    In my while loop I a mathscript box that controls which cases need to be chosen for each loop.  This configuration has worked perfectly in the past, but now when I try to change the text in the box of mathscript (blue box) I can not type anything in the box.  I click the mathscript box and selects just as if I want to move around.

    Anyone know what could be the cause of the problem?

    Thank you!

    You don't want the arrow tool. You want the tool to operate. One that looks like a helping hand.

    Have you checked that you have enabled editing that made a license for MathScript? Check your License Manager.

  • change the text unit-error bounds 1128

    Hey everybody,

    I develop a VI that uses the native power of LabVIEW units to do all the conversions of my numbers.

    Here my question, once variables are defined for a control when editing can I change the text of unity to something not related to execution in order to prepare my indicator for a different signal? For example, lets say channel 1 is a temperature for Test1 so programmatically feray Cdeg conversion and back without problem for LabVIEW. For Test2, the same VI is used, but now the channel 1 is a pressure. Programmatically change my of feray indicator units now a unit of pressure psi, atm or bar? I am getting error 1128 "input unit is not compatible with the device current." even if the device is correct when it is entered at the time of publishing.  Any thoughts?

    Thank you
    Craig

    Hi Lucie,.

    No, you cannot change the type of unit when running. This will be fixed at compile time. You can modify other representations of the same physical property (as the Pa to the bar or some obscure lb/po2 of pressure).

    An old trick when using units:

    You can use '$1' as a control unit. Using a function to "Convert the unit" also set to "$1"you can then strip the unit." If your Subvi accepts any control unit connected-, but that does not solve your problem of perticular

Maybe you are looking for