我想创建一个简单的日记应用程序,我可以添加我每天的笔记。我有一般的想法,我可以使用RichTextBox控件来编写简单的文本和日历控件来导航前一天的条目。并创建一个包含nvarchar(max)列的表来存储RichTextBox的内容。 但是我将如何保存RichTextBox控件中编写的内容。意味着一些文本将以粗体和斜体标题,一些世界将使用不同的字体和不同的对齐来编写。保存特定日期的条目并在下次显示后,这种格式将如何保留?有人有任何想法将这些段落存储在数据库中吗?如果有可能那么我也想添加图像并用输入的内容保存但是如何?我想要一般的想法。
I want to create a simple diary application where I can add my every day’s moment’s notes. I have general idea that I can use RichTextBox control to write simple text and a calendar control for navigating previous day’s entries. And create a table with nvarchar(max) column to store RichTextBox’s content. But how I will save the content written in RichTextBox control as it is. Means Some text will be heading with bold and italics, some worlds would be written using different fonts and different alignments. How this formatting will remain after saving particular day’s entries and showing in next time? Anyone have any idea to store that paragraphs in database? If there is possible then I also want to add images and save it with entered contents but how? I want general ideas, please.
推荐答案阅读以下有关如何将BLOB存储到Sql Server的信息:www.akadia/services/dotnet_read_write_blob.html [ ^ ] Read the following on how to store BLOBs to Sql Server : www.akadia/services/dotnet_read_write_blob.html[^]
更多推荐
Windows应用程序中的日记应用程序
发布评论