使用C#以编程方式将Excel,PDF和Word文档转换为JPEG [英] Converting excel, pdf and word documents to jpeg programmatically using c#
问题描述
我正在尝试使用C#和WPF创建幻灯片应用程序...
我遇到的问题是,我需要将excel,pdf和word文档转换为jpeg格式,以便将它们用作幻灯片中的幻灯片...
基本上,我希望幻灯片应用程序的用户将其文件放入文件夹中.运行该应用程序后,它将文件转换为jpeg格式,并且该应用程序将能够将转换后的文件加载到幻灯片播放列表中.
请帮助我找到解决方案...任何建议将不胜感激.您需要编写打开单词并带屏幕截图的代码,或者需要编写/购买可以读取Word文件,Excel文件等并将其渲染为位图的渲染引擎.不太可能急着发生.
Hi,
i am trying to create a slideshow application using C# and WPF...
The problem I am having though is that i need to convert excel, pdf and word documents into a jpeg format in order to use them as slides in a slideshow...
basically, i want the users of the slideshow app to place their files into a folder. When the app is run it will convert the files into a jpeg format and the app will be able to load the converted files into the slideshow playlist.
Please help me find a solution... any suggestions will be most appreciated
Your best bet is to buy some sort of library that does this. You need to either write code that opens word and takes a screenshot, or you need to write/buy a rendering engine that can read a Word file, an Excel file, etc and render it to a bitmap. Not likely to happen in a hurry.
这篇关于使用C#以编程方式将Excel,PDF和Word文档转换为JPEG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!