简体   繁体   中英

How to programmatically take screenshot of Excel cell range?

How can I programmatically take screenshot of an Excel cell range?

I'm currently using the Apache POI Java API to interact with excel documents, but I can't find any information on this use case. I'm open to other libraries and languages, as long as they can solve the problem and run in Linux.

Using Java with the UNO API, open the document in LibreOffice and navigate to the specified cell range. Be sure to open the document as visible, not hidden.

Then use the code shown here to take a screenshot: https://stackoverflow.com/a/4490471/5100564 .

Examples of Java with UNO are at http://api.libreoffice.org/examples/examples.html#Java_examples .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM