Comments (3)
I have now cherry-picked changes from LePat@d38372b onto branch https://github.com/centic9/poi-on-android/commits/add_dummy_autosize to show how such missing classes from java.awt can be added.
But as the implementation just provides dummy implementations of the methods, I did not merge it into master. The resulting autosized column widths are far off and will not be useful unless a more sophisticated solution is implemented.
If you just want to get SXSSFWorkbook to work should be able to fetch these changes from there in your fork.
It can also serve as example of how to add a more useful implementation in the future.
from poi-on-android.
Android does not provide the java.awt.* packages and also actively refuses if you try to add such classes, this means any part of Apache POI which uses java.awt.* stuff will currently fail this way.
I did some workaround with shading for java.awt.Color before, you can try to do the same for Dimension, see https://github.com/centic9/poi-on-android/blob/master/poishadow/build.gradle#L39 and https://github.com/centic9/poi-on-android/tree/master/poishadow/src/main/java/org/apache/poi/java/awt
from poi-on-android.
The same issue is triggered by calling Sheet.autoSizeColumn(Int row)
, this also needs the FontRenderContext
.
Thanks for adding the example of how to add implementations for missing classes!
from poi-on-android.
Related Issues (20)
- Сompile JAR for a particular architecture? HOT 1
- fr.opensagres.poi.xwpf.converter.pdf.PdfConverter HOT 8
- Cannot insert picture in a XWPFDocument HOT 1
- XMLSlideShow解析失败 HOT 3
- Crash due to not able to locate index.xsb HOT 3
- ClassCastException writing Excel file HOT 4
- org.apache.poi.ooxml.POIXMLException HOT 2
- Office to pdf HOT 1
- Unexpected reference to missing service class HOT 6
- Crash when run in app HOT 3
- the width value of cell in the excel looks strange
- java.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/geom/Rectangle2D$Doubl HOT 2
- Do you have a plan for the next version? HOT 2
- Some questions about this project HOT 1
- Failing to build shadowJar HOT 2
- A quick question regarding performance (fastness of reading writing) HOT 1
- is it CSV Writer includes this library ? HOT 1
- java.lang.NoSuchMethodError: No static method forArray HOT 3
- POITextExtractor bug! docs, xlsx, pptx are OK, but doc file throws Exception! HOT 3
- NoSuchMethodError createExtractor(Ljava/io/InputStream;)Lorg/apache/poi/POITextExtractor HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poi-on-android.