How to add Carriage Return, etc

  • Hello

    How can I add a carriage return to my text? I'm using #10 or #13 without success.

    One more...

    Is there any similar procedure to WPLoadObjectFromFile
    But instead that load from a stream?

    I've tried:
    obj:=TWPObject.create(WPRichText1);
    obj.loadfromstream(mystream);
    WPRichText1.TextObjects.Insert(obj);

    Without result...

    Tks.

  • Hi,

    >> How can I add a carriage return to my text? I'm using #10 or #13 without success.
    InputString(#13) works. (really)
    >>Is there any similar procedure to WPLoadObjectFromFile
    But instead that load from a stream?

    obj:=TWPObject.create(WPRichText1);
    obj.loadfromstream(mystream);
    WPRichText1.TextObjects.Insert(obj);

    That will work if you set the extension of the format stored in the stream first in the property FileExtension. For example FileExtension := '.BMP';

    Julian