For example, what I want to do is: develop a program called by command line based on C ා, export the contents of specified office files (such as XLS, xlsx) to a picture. If possible, I also hope to selectively export each part of the office file to multiple pictures (each sheet of Excel).
I use Visual Studio 2017, windows 10
So far, I’ve found Microsoft’s
Microsoft.Office.Interop.ExcelThis package, and found a way to read xlsx output as PDF file, but it seems that we can’t find the way to transfer the image?
Ask a friend who is familiar with. Net, can you give me some advice on how to do it?
The SDK of Aspose provides a relatively perfect conversion interface, but there is a problem that some pages will be lost in the conversion of files with more pages, so it has been tested and has not been used.
You can use it Microsoft.Office.Interop Convert to PDF, and then use the PDF SDK to convert pictures. There are more SDKs for PDF, which happens to do something related to it, so I can understand it a little bit.
Microsoft.Office.Interop I have a look at this. Excel can be used to convert the entire worksheet to PDF. Can I transfer the map to a specific cell?
I haven’t seen this kind of operation, nor in the SDK
What kind of SDK do you use for PDF to picture? Is it also officially owned by Microsoft? Or is it from a third party
The spire series has a good function for document conversion. You can refer to the tutorial document on the official website. It is OK to convert documents in these three formats into pictures,
Word to picture:https://www.e-iceblue.cn/spiredoc/word-conversion-feature.html
Ppt to picture:https://www.e-iceblue.cn/spirepresentation/convert-powerpoint-to-image-pdf-svg-in-c.html
Excel to picture:https://www.e-iceblue.cn/spirexls/convert-excel-worksheet-and-chart-to-image.html
The three conversion methods respectively use the operation of the corresponding document DLL, you can download directlyfree spire.office for .netThis collection package,