CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2002
    Location
    Ukraine
    Posts
    228

    MultiLines in Text Object question.

    Hi
    Problem:
    I hav etext object on the report
    and set to it the text from C# program

    TextObject objTxt = (TextObject)rpt.Section2.ReportObjects["txtSome"];
    objTxt = "One\r\nTwo\r\nThree";

    I want to see in the Report
    One
    Two
    Three

    But see
    OneTwoThree

    Do you know how to fix this problem?
    Thanks,
    Alex.

  2. #2
    Join Date
    Mar 2006
    Posts
    6

    Re: MultiLines in Text Object question.

    Hi,
    I believe its better to set the text for a textobject with this method:
    TextObject.SetText(text);

    And try the method TextObject.SetLineSpacing().

  3. #3
    Join Date
    May 2002
    Location
    Ukraine
    Posts
    228

    Re: MultiLines in Text Object question.

    Sorry. Small mistake. There was
    objTxt .Text = "One\r\nTwo\r\nThree";

    and I have not method SetText(...) in my
    vesion of CR interface

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured