uncleared code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vijaiyanb@gmail.com

    uncleared code

    please explain the following code

    Dim rt As String =
    "{\rtf1\ansi\an sicpg1252\deff0 \deflang1033{\f onttbl{\f0\fswi ss\fcharset0
    Arial;}}\viewki nd4\uc1\pard\qr \f0\fs20 "

  • Tom Spink

    #2
    Re: uncleared code

    vijaiyanb@gmail .com wrote:
    please explain the following code
    >
    Dim rt As String =
    "{\rtf1\ansi\an sicpg1252\deff0 \deflang1033{\f onttbl{\f0\fswi ss\fcharset0
    Arial;}}\viewki nd4\uc1\pard\qr \f0\fs20 "
    Hi,

    This is VB .NET code, you may have better luck in the VB .NET newsgroups, as
    this is a C# one.

    However, your code defines a variable 'rt' of type string, and then puts a
    line of richtext encoded text into said variable. You should be able to
    view the formatted text in a RichTextBox, by setting the value of, IIRC,
    RtfText to the value of 'rt'.

    --
    Hope this helps,
    Tom Spink

    Google first, ask later.

    Comment

    • vij

      #3
      Re: uncleared code


      please explain the following code

      Dim rt As String =

      "{\rtf1\ansi\an sicpg1252\deff0 \deflang1033{\f onttbl{\f0\fswi ss\fcharset0
      Arial;}}\viewki nd4\uc1\pard\qr \f0\fs20 "

      when i change the font name int this line its reflected in crystal
      report
      but i cant change the font directly in creport. ie i can change it by
      right click the field and format but i cat reflect on report

      if i change in this line than only the font changed in report

      wat can i do

      Comment

      Working...