Skip to main content



      Home
Home » Eclipse Projects » NatTable » natExporter.exportMultipleNatTables tables are overlapping
natExporter.exportMultipleNatTables tables are overlapping [message #1844447] Tue, 14 September 2021 06:25 Go to next message
Eclipse UserFriend
Hello everybody,

I am trying to use the natExporter.exportMultipleNatTables method to export two different nat tables to the same excel sheet.

My problem is that they are always overlapping, since each layerExport starts at row 0. Can I somehow export them underneath each other?
Is this a problem of what layers are used in each nat table?

In the attached files there are the nat tables in the application (looking fine) and beneath is the export, where the cells are overlapping.

I'm using Version 1.8.

Any bit of help would be appreciated!

Best regards,
Marius
  • Attachment: app.png
    (Size: 48.03KB, Downloaded 76 times)
  • Attachment: export.png
    (Size: 35.28KB, Downloaded 75 times)
Re: natExporter.exportMultipleNatTables tables are overlapping [message #1844452 is a reply to message #1844447] Tue, 14 September 2021 08:19 Go to previous messageGo to next message
Eclipse UserFriend
If you have a look at the API you should find NatExporter#exportMultipleNatTables(ILayerExporter exporter, Map<String, NatTable> natTablesMap, boolean exportOnSameSheet, String sheetName)

If you set exportOnSameSheet to true you should get what you expect.

BTW, a NatTable 1.8 version does not exist
Re: natExporter.exportMultipleNatTables tables are overlapping [message #1844496 is a reply to message #1844452] Wed, 15 September 2021 04:43 Go to previous messageGo to next message
Eclipse UserFriend
If you really use a NatTable Version 1.8 (that does not exist officially) I assume you have some local modifications/fixes that forced you to create a new non-official NatTable release.

In that case I request a contact person in your company that I can contact to receive the modified NatTable sources. My mail address should be easily discovered in the NatTable sources, or you can contact me via a NatTable mailing list.
Re: natExporter.exportMultipleNatTables tables are overlapping [message #1844501 is a reply to message #1844452] Wed, 15 September 2021 05:49 Go to previous messageGo to next message
Eclipse UserFriend
You're right. I was using 1.5. Sorry for the confusion.
I also used a custom version of the PoiExcelExporter. The reason for the problem was that it didn't correctly use the "this.currentRow" instance variable. I changed the code so that the function "exportCell" uses it correctly and now it works!

Thank you anyway.

Best regards
Marius Funk
Re: natExporter.exportMultipleNatTables tables are overlapping [message #1844502 is a reply to message #1844501] Wed, 15 September 2021 06:55 Go to previous message
Eclipse UserFriend
NatTable 1.5 is more than 4 years old and most of the issues you will face are probably already fixed. Could be that the currentRow issue is one of those issues.

I personally recommend to update to a more recent version, as I am not able to support on issues in such an old version.
Previous Topic:filter
Next Topic:dynamic coloring of cells using CellOverrideLabelAccumulator with filtering/grouping/sorting
Goto Forum:
  


Current Time: Sat May 17 09:39:17 EDT 2025

Powered by FUDForum. Page generated in 0.03195 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top