带页眉和页脚的RichTextBox [英] RichTextBox with header and footer

查看:121
本文介绍了带页眉和页脚的RichTextBox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序一直在富文本框中查看rtf文件,并且已经工作了一段时间没有任何问题。出现了一个新问题。我开始得到包含页眉和页脚的rtf文件。如果使用MS Word查看,则页眉和页脚可见。如果使用Wordpad或我的应用程序使用RichTextBox查看,则页眉和页脚不可见。我还有一些实例,其中rtf文件中有一个表,并且并非使用WordPad或RichTextBox可以看到该表中的所有信息。使用MS Word可以看到一切。如何让我的应用程序能够查看rtf文件并能够查看页眉和页脚信息????我真的想远离使用Word Interop,因为这将需要在将查看这些文件的每台计算机上安装MS Word。任何建议??????

I have an application that has been viewing rtf files in a richtextbox and has been working for some time now with no problems. A new problem has arose. I am starting to get rtf files that have headers and footers in them. If viewed with MS Word, the header and footer is visible. If viewed with Wordpad or in my application with a RichTextBox, the header and footer is not visible. I have also had some instances of where a rtf file has a table within it and not all the information within that table is visible with WordPad or in a RichTextBox. Everything is visible with MS Word. How can I give my application the ability to view an rtf file and be able to see the header and footer information???? I would really like to stay away from using Word Interop because that will require MS Word being installed on every machine that will view these files. Any suggestions??????

推荐答案

看看这里:

RichTextBoxDocument [ ^ ]

在VB C#中添加页眉和页脚 [ ^ ]

我相信它会有所帮助。
Have a look here:
RichTextBoxDocument[^]
Adding a Header and a footer in VB C#[^]
I belive it would be helpful.


这篇关于带页眉和页脚的RichTextBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆