Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 83469

Streaming Excel module skips empty rows in xlsx file, so the app cannot get the physical rows number.

$
0
0
Streaming Excel is very lightweight and fast and works well in our app. However, it skips empty rows in the xlsx file, so the app can't get the physical row number of each row. I know this is because POI XSSF Eventmodel skips empty rows in xlsx files. But this is bothering us because our app needs to tell the user exactly which row in the xlsx the data came from. In the POI XSSF Eventmodel, you can get the exact physical row number by using attributes.getValue("r") in 'case "row"' in the startElement method of DefaultHandler. Therefore, I think that the physical row number obtained here can be inserted as the first column just before adding the row data to the row buffer in ''case "row"' in the endElement method. Of course, it would be good to make this function selectable as an optional function with a flag parameter. I have implemented this modification in our app and confirmed that it works well, but I hope that it will be adopted as a standard in the Streaming Excel module. How about you guys? I would be happy if the author Taner san sees this post and agrees with it.

Viewing all articles
Browse latest Browse all 83469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>