寻呼机 HTML 查看器

发布于 2024-08-25 14:08:49 字数 548 浏览 2 评论 0原文

我们目前正在 VS 2008 C# 中开发 Windows 窗体应用程序。该应用程序用于阅读长篇(200 - 300 页)法律文档,可处理约 30 - 40 个文档。该应用程序搜索文档文本、在文档之间切换等。

我们的客户已将文档以单独的 *.rtf 文件发送给我们,以便我们“将其放入应用程序中”。我们决定使用 MS Word 的“另存为”功能将 rtf 文件转换为 HTML,然后选择“过滤的 HTML”。在此解决方案中,应用程序可以在 WebBrowser 控件中显示文档。

我们的问题是:客户想要一个额外的“寻呼机视图”功能,用户可以像阅读书籍一样阅读文档。他可以看到虚拟纸张上的页面,然后单击下一页、上一页等。就像在浏览器的打印预览对话框中一样。

我在互联网上搜索了任何 Pager HTML 查看器,但没有找到任何内容。您能建议任何在分页器模式下显示 HTML 页面的解决方案或组件吗?

在最后一种情况下,我们也可以保存原始 rtf 文件以供分页视图显示。在这种情况下,有什么解决方案可以在分页模式下查看RichText文件吗? (如果可能的话,我们希望避免这种情况。)

等待您的答复: 彼得

We are currently developing a Windows Forms application in VS 2008 C#. This application is for reading long (200 - 300 pages) law documents, and it handles about 30 - 40 docs. The application searches in document text, switches between documents, etc.

Our customer has sent the docs in separate *.rtf files for us to "put it into the application". We decided to convert the rtf files into HTML, using the MS Word's "Save as" function, and then selecting "filtered HTML". In this solution, the application can show the documents in a WebBrowser control.

Our problem is: the Customer wants an additional "Pager view" function, where the user can read the documents like it would be a book. He can see the pages on a virtual paper sheet, and then click next page, previous page, etc. Like in the browser's Print preview dialog.

I have searched the internet for any Pager HTML viewer, but I haven't found anything. Could you suggest any solution or component for showing the HTML pages in pager mode?

In last case, we can hold the original rtf files too for Pager View showing. In this case, is there any solution for view RichText files in pager mode? (We want to avoid it, if it's possible.)

Waiting for your answer:
Peter

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

花辞树 2024-09-01 14:08:49

我不知道有什么组件可以在页面中显示 HTML,但有几个可能的解决方案:

  1. 编辑 HTML 文档并手动将它们分成链接页面(或使用 javascript 隐藏 div 来隐藏/取消隐藏 div 以进行导航) )

  2. 将 RTF 文档转换为 XPS 格式并使用 WPF 的 DocumentViewer 控件 - 但由于您的应用程序是 WinForms,那么您可能必须执行以下操作:
    http://www.codeproject.com/KB/dialog/WinFormWPFIntegration.aspx
    (尽管有人在该页面上评论了内存泄漏:S,但需要密切关注...)

I don't know of any components that can display HTML in pages, but a couple possible solutions could be:

  1. edit the HTML documents and manually separate them into linked pages (or hidden divs with javascript to hide/unhide divs for navigating)

  2. convert the RTF docs to XPS format and use WPF's DocumentViewer control - but since your app is WinForms, then you'd probably have to do something like this:
    http://www.codeproject.com/KB/dialog/WinFormWPFIntegration.aspx
    (though someone commented on that page about a memory-leak :S that's something to keep an eye open for...)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文