×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    22

    want to extract text from CRichText.

    Hi I have CRichText object and I want to extract the text from it and store it into HBufC object . how should I do it . I have been trying to use function Extract but Cant use . plz give me code snippet.

  2. #2
    Regular Contributor
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    103

    Re: want to extract text from CRichText.

    Hi
    try doing like this

    Code:
    const TInt length = richText->DocumentLength();
    HBufC* text = HBufC::NewL(length);
    text->Des().Append(richText->Read(0, length));
    hope this help..
    regards
    Rafeeq

Similar Threads

  1. How to extract text color defined by skin ?
    By doslo in forum Symbian User Interface
    Replies: 4
    Last Post: 2008-07-03, 14:26
  2. How to extract text color defined by skin ?
    By saurbh_g in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-04-05, 14:03
  3. Vertical text alignment in a CRichtext
    By kamalsinghania in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-10-28, 11:45
  4. Replies: 0
    Last Post: 2004-11-24, 18:49
  5. CRichText text problem
    By introuble in forum Symbian User Interface
    Replies: 2
    Last Post: 2003-09-30, 17:29

Posting Permissions

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