Stream and RichEdit

First: My english is bad [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> now, to the problem. I have a table on ms sql server that looks like Number Blob id 1 Data 21 2 Data 25 3 Data 29 4 Data 30 I created a RichEdit an Designtime. The ComponentName ist Rich1. Now i want load the Blob data to the richEdit. How can I do this. I tested in script area, but FastScript don??t know the loadFromStream Option. thx, s0n[/img]

Comments

  • edited 6:13AM
    1. Make sure your Blob fields hold real RTF contents with all its complex structure.
    2. Create a query (TfrxADOQuery or any other you like to work with) that will contain your blob fields, like

    select ID, MyBlobField, AnotherID from MyTable.

    Attach MasterData to that query, and then use DataSet and DataField properties of your TfrxRichView control.
    That should be all you need [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Regards Mick[/img]

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.