如何找到一行以“ABC”开头。在word文档中不使用c#中的interop dll [英] How to find a line starts with "ABC" in a word document without using interop dll in c#

查看:115
本文介绍了如何找到一行以“ABC”开头。在word文档中不使用c#中的interop dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须使用docX dll打开word文档,并在word文档上的标题 IMAGES:下面插入一些图像。

有人可以帮我找到使用c#中的DocX dll开始使用word文档中的图像,

i可以使用下面的代码插入图像,但无法找到修复这些图像的确切位置。

//将图像添加到docx文件



Novacode.Image img = doc.AddImage(@C:abc.jpg);

图片pic = img.CreatePicture();

pic.Width = 600;

pic.Height = 300;



我已经通过这个链接 C#:Create并使用DocX以编程方式处理Word文档 [ ^ ]



注意:我没有使用interop dll来打开或保存单词文件。



在此先感谢

I have to open a word document using docX dll and insert some images below the heading IMAGES: on the word document.
could anyone please help me to find the line starts with Images in the word document using DocX dll in c#,
i can insert the image by using the below code but am not able to find the exact place to fix those images.
// Add an Image to the docx file

Novacode.Image img = doc.AddImage(@"C:abc.jpg");
Picture pic = img.CreatePicture();
pic.Width = 600;
pic.Height = 300;

I have gothrough this linkC#: Create and Manipulate Word Documents Programmatically Using DocX[^]

Note: I am not using interop dll to open or save the word documents.

Thanks in Advance

推荐答案

您应该在文章末尾的论坛中发布您的问题,以便作者看到它。
You should post your question in the forum at the end of the article so the author sees it.


实际上您可以询问DocX社区或DocX制造商: http://docx.codeplex.com/discussions [ ^ ]
Actually you could ask the DocX community or maker of DocX: http://docx.codeplex.com/discussions[^]


这篇关于如何找到一行以“ABC”开头。在word文档中不使用c#中的interop dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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