MSWord 格式丰富的文本粘贴到 Webgui 文本输入字段中以供数据库提交

发布于 2024-09-28 01:46:41 字数 770 浏览 1 评论 0原文

我在 Word 2003 文档中有几个格式丰富的段落。如何复制每个段落并将其粘贴到文本输入字段中并设置所有格式?

主要目标是将每个段落作为数据库中的一个对象,以便用户可以按自定义顺序添加和重新排列这些对象(段落)以生成自定义 DOC 文件。

到目前为止,我能想到的唯一方法是:

1) SaveAs this DOC file in XML format
2) Find the WordML for this particular paragraph
3) Select and Copy the specific WordML region
4) Paste it into the web browser text input field
5) Submit and save into the database.

我理想的方法是:

1) Open the DOC/DOCX file
2) Select and Copy the paragraph within Word 2003/2007/2010
3) Paste it into the web browser text input field
4) Submit and save into the database.

我理想的方法跳过用户需要以 XML 格式保存 DOC 文件并手动搜索 WordML 标签并查找段落的部分他们需要复制。我希望用户界面能够处理此任务,但这也许只是我的一厢情愿。这种理想的方法可行吗?如果不在 Word 2003 中,Word 2007/2010 可以工作吗?

I have several richly formatted paragraphs in a Word 2003 document. How do I copy each paragraph and paste it in a text input field with all the formatting in place?

The main objective is to make each paragraph as an object in the database so users can add and rearrange these objects(paragraphs) in custom order to generate their custom DOC file.

So far the only way I can think of is to:

1) SaveAs this DOC file in XML format
2) Find the WordML for this particular paragraph
3) Select and Copy the specific WordML region
4) Paste it into the web browser text input field
5) Submit and save into the database.

My ideal method would be to:

1) Open the DOC/DOCX file
2) Select and Copy the paragraph within Word 2003/2007/2010
3) Paste it into the web browser text input field
4) Submit and save into the database.

My ideal method skips the part where the user needs to save the DOC file in XML format and manually having to search for the WordML tags and finding the paragraph they need to copy. I'd like the UI to handle of this task but maybe this is just wishful thinking. Is this ideal method doable? If not in Word 2003, would Word 2007/2010 work?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文