阅读word文档的问题? [英] Issue with reading word document?
本文介绍了阅读word文档的问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的,
我正在处理Word文档阅读,本地系统一切正常,但来到服务器我无法读取图像,我是面对问题并完成了我能做的所有事情。服务器是:2008 r2服务器。
并且能够知道问题出在哪里?
Dear all,
I am working on Word document reading and everything is fine in local system but coming to server i am not able to read images , i am facing issue and done all the things that i can done.and server is : 2008 r2 server.
And able to know where the issue is ?
var thread = new Thread(() => path = SaveInlineShapeToFile(inlineid, wordApplication, i, j));
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
thread.Join();
在SaveInlineShapeToFile()中:
我得到了空值,我在将文件写入服务器的帮助下进行了检查。
In the SaveInlineShapeToFile():
I am getting empty values, i checked with the help of writing a file on to server.
inlineShape.Select();
wordApplication.Selection.CopyAsPicture();
推荐答案
问题很可能是基本的:服务器没有用户。因此,他们通常没有安装Microsoft Office,因此任何试图阅读办公文档的软件通常都可以在开发机器上运行 - 它们有Office - 并且生产失败。
>
最好的解决方案是google for C#DOCX reader class。
Chances are that the problem is pretty basic: servers don't have users. As a result, they generally don't have Microsoft Office installed, so any software which tries to read office documents generally works on development machines - which do have Office - and fails in production.
The best solution would be to google for a C# DOCX reader class.
这篇关于阅读word文档的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文