打开任何文件并另存为不同的格式 [英] Open any file and save as different format

查看:85
本文介绍了打开任何文件并另存为不同的格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有任务打开任何文件,例如xls,doc,msg,eml,pdf等,并以不同的格式保存它们,并想知道有人可以给我代码,我会很棒。



提前谢谢:)

I have task to open any file e.g. xls, doc, msg, eml, pdf etc. and save them as in different format and wondering somebody can give me the code would me great.

Thank you in advance:)

推荐答案

首先,不存在这样的转换器,因为您必须为要读取的每种文件格式编写解释器。祝你好运。



接下来,这里没有人只是给你代码来做这件事。这不是这个网站或任何其他网站的工作方式。您编写的唯一代码是您编写的代码。
First, no such converter exists because you'd have to write an interpreter for every file format you want to read. Good luck with that.

Next, nobody here is just going to "give you code" to do this. That's not how this, nor any other, site works. The only code you code is the code YOU write.


尝试

如何使用C#将DOC转换为其他格式 [ ^ ]



或者,您可以查看各种第三方组件,例如 .NET PDF组件 - 创建转换PDF文件VB.NET [ ^ ] 。
Try
How to convert DOC into other formats using C#[^]

Alternately, you can look at various third party components like .NET PDF Component - Create Convert PDF Files in VB.NET[^].


谢谢所有提交建议的人



经过研究我发现最好的解决方案是使用PowerShell代码制作这发生了。我曾使用以下代码打开任何文件:



Thank you all who submitted their suggestions

After research I found the best solution would be to use PowerShell codes to make this happen. I had work out to open any file using below code:


这篇关于打开任何文件并另存为不同的格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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