不使用内置控件的RTF文件操作 [英] RTF files manipulation without using builtin controls

查看:91
本文介绍了不使用内置控件的RTF文件操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的项目中,我们有带有书签字段的富文本格式(RTF)报告模板文件。


我们要求的是在后台读取该文件用DB字段替换模板书签字段值(可能在迭代中)并将此报告文件另存为.rtf,但不使用任何丰富的*控件....


基本上我们正在寻找一个库或api已经在做同样的事情......(因为我们遵循规则......从不重新发现轮子)


任何帮助都将受到赞赏......无论是通过代码示例还是通过引导链接net


提前感谢

解决方案

可以使用自动化来驱动MS Word。



可以使用自动化来驱动MS Word。



很抱歉,我们也不想使用MS字自动化。因为使用Web应用程序很重要。


我已经通过Google快速浏览了一下,看起来可能有很多相关的软件链接。我刚刚搜索了VB RTF CONTROL API。并找到了大量的链接,包括......

http://www.vbaccelerator.com/codelib...t/richedit.htm
http://www.velocityreviews.com/forum...-text-box.html
http://www.xtremevbtalk的.com / showthre ... OTO = nextnewest

In our project we have rich text format (RTF) report template files with bookmark fields.

what we required is to read that file in background replace templates bookmark fields with DB field values (may be in iteration) and save this report file as .rtf but without using any rich* controls....

basically we are looking for a library or api already doing the same thing ... (since we follow the rule ... NEVER RE-INVENT THE WHEEL)

Any help would be appreciated... either by code example or by guided links on net

thanks in advance

解决方案

You could use automation to drive MS Word.


You could use automation to drive MS Word.

sorry to indicate that we also do not want to use MS word automation. since it is heavy to work with web application.


I''ve had a quick glance via Google, and it looks as though there may be quite a few relevant links to software out there. I just searched on "VB RTF CONTROL API" and found tons of links, including...

http://www.vbaccelerator.com/codelib...t/richedit.htm
http://www.velocityreviews.com/forum...-text-box.html
http://www.xtremevbtalk.com/showthre...oto=nextnewest


这篇关于不使用内置控件的RTF文件操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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