Ticket Q589149
Visible to All Users

rich text save and load from database

created 11 years ago

i need to save and load rich text to database which contains images and formatted text
thnx

Answers approved by DevExpress Support

created 11 years ago (modified 11 years ago)

Hi Mustafa,
To load and save data from RichEditControl, you can bind it to an Rtf data column and handle the Rtf content saving/loading operations. You can find an example that illustrates how to accomplish this task here: How to use a RichEditControl in bound mode.

If this approach does not meet your requirements, convert data from your database to a stream and use the RichEditControl.LoadDocument and RichEditControl.SaveDocument methods to load data from stream and save it.
Please refer to the Load and Save to a Database thread for more information.
I hope that this information will help you get started. If you need further assistance with this subject, feel free to reactivate this ticket.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.