Menu

Format of tabular xlsx-Output

ART Help
Gerd S
2022-03-29
2022-10-11
  • Gerd S

    Gerd S - 2022-03-29

    Hi, is there an option to configure the standard XLSX-Output?
    If you choose xlsx as output, then you get blue headers and all columns with same width.
    If you choose Datatable in browser and then push the Excel-button you get an excel with black headers, auto-width,...

    Is there a chance to configure the format, or at least take always just one of these?

    Thanks,
    Gerd

     
  • Timothy Anyona

    Timothy Anyona - 2022-03-29

    Hi,
    It's currently not possible to configure the look of the xlsx output.

     
  • Sirichoke Kunnavatsuwan

    Jxls output as your choice.
    You can decorate excel file as template.

    Hope this help.

     
  • Gerd S

    Gerd S - 2022-04-28

    yes, but that's what i'm trying to avoid. just add the query as new report and set an standard xls output as result, without having to create a template for each single report.
    But it's just a layout topic, perhaps i try to change the code on my own.

     
  • Gerd S

    Gerd S - 2022-06-09

    I hope i can formulate this as a feature request:
    Now the xlsx-output of a report looks like this: see xlsx.png - all cols have the same width, and no autofilter.
    Would it at least be possible, to add AutoFilter and AutoWidth, so it would look like xlsx_new.png? It would also be ok, if i have to activate it using the options (to not break existing reports).

    Thanks
    Gerd

     
  • Timothy Anyona

    Timothy Anyona - 2022-06-14

    Just a note that auto width can make the excel generation much slower, especially for larger reports.

    https://sourceforge.net/p/art/discussion/352129/thread/96424228/

     
  • Gerd S

    Gerd S - 2022-06-29

    Thanks, it works great. Only one thing:

    I've seen in the source, that you set AutoWidth and afterwards the AutoFilter. Can you do the AutoFilter first? I don't know if there is a difference in java, but when you do it in excel in this way, the filter will overlap the header (if the header is longer than the values).
    If i do "autoWidth" it in excel after AutoFilter, the filter-icon will be after the header.

     
  • Gerd S

    Gerd S - 2022-06-30

    and one additional bug: If the parameter are shown AND AutoFilter is set, the autofilter is shown in the first row instead of the 3rd (or depending on the params) line in excel - see screenshot

     

    Last edit: Gerd S 2022-06-30
    • Timothy Anyona

      Timothy Anyona - 2022-06-30

      I think the parameter rows were not considered, but should be fine without show parameters?

       
  • Gerd S

    Gerd S - 2022-06-30

    without show parameters, the headerline is in the first row and file looks ok. Can we disable "show parameters" somehow? (without JSP-edit)

     
  • Timothy Anyona

    Timothy Anyona - 2022-06-30

    There's no option to hide show parameters.

     
  • Timothy Anyona

    Timothy Anyona - 2022-07-01

    Changing the order of autofilter and autowidth code doesn't seem to have any effect, but the just released 6.1 version may have some extra accommodation for the column width size.

     
  • Makka Pakka

    Makka Pakka - 2022-09-30

    It would be nice to have a fixed first row!

     
    • Gerd S

      Gerd S - 2022-09-30

      Yes, good idea. But let's say "fixed header row", because of parameteroutput, title row, ... the header can be some lines below.

       
  • Timothy Anyona

    Timothy Anyona - 2022-09-30

    There'll be a fixedHeader excel option for this in the next release.

     
    • Makka Pakka

      Makka Pakka - 2022-10-11

      Can I use excel option in the top left corner of the HtmlDataTable report results page?

       
  • Makka Pakka

    Makka Pakka - 2022-10-11

    That's this excel

     
  • Timothy Anyona

    Timothy Anyona - 2022-10-11

    No. That is provided/controlled by a different library.

     

Log in to post a comment.