开发者

How to read rtf attached to the document to RichTextBox?

开发者 https://www.devze.com 2023-02-05 05:53 出处:网络
I attached rtf docum开发者_StackOverflowent to my app, and I want its content to be display in RichTextBox, I know how to do that with rtf file from disk, but I can\'t access file in project.If you ad

I attached rtf docum开发者_StackOverflowent to my app, and I want its content to be display in RichTextBox, I know how to do that with rtf file from disk, but I can't access file in project.


If you added the rtf file as "Embedded Resource" in your project use GetManifestResourceStream etc functions on the executing assembly. Check out a sample here : http://lamahashim.blogspot.com/2009/06/c-reading-embedded-files-at-runtime.html

0

精彩评论

暂无评论...
验证码 换一张
取 消