简体   繁体   中英

Access 2007 Memo Field and C# Winform

Well I am stumped. I have a access DB that I need to convert to using C# winforms. Everything was fine until I started working with the Memo fields. Everything is in HTML and the RichTextBox in C# wont accept the data.

How can I maintain the formatting in the access database and also edit and save back to access from c#?

Have been searching Google for the last 5 hours and not really coming up with much. How can I display the memo in C# formatted and then save it back?

The RichTextBox is a control for editing RTF . So you would have to convert the memo HTML to RTF when loading and from RTF to HTML when saving. Alternatively you could edit the memo field using an WYSIWYG HTML editor control.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM