Profile picture for user jordanjt95

Hi everyone,

I'm creating a report that outputs an Excel file and I would like to automatically change the size of the rows/columns, the Police , characters size , etc..

What are the main functions in order to do that ?

Thank you

by François Barthélemy
Posted on Tue, 08/03/2021 - 08:44

Dear Jordan, 

To my knowledge, there is no possibility in ARIS scripting to make an Excel output "automatically adjustable".
You have to specify the width of the columns, the height of the rows, the size of the font, ...

Here are the main functionalities to do so : 

  •  Specify the width of a column : sheet.setColumnWidth(colIndex, colWidth) or sheet.setDefaultColumnWidth(colWidth)
  •  Specify the height of a row : row.setHeight(rowHeight) or sheet.setDefaultRowHeight(rowHeight)
  •  Define a font : workbook.createFont() and then specify the specifics of the font (font.setColor(Constants.C_RED) or font.setItalic(true) )
  •  Specify a style : workbook.createCellStyle(...)

The wrap text option will allow to have automatic "returns to the next line" if the content of the cell is bigger than the current size => it will adjust the height of the cell dynamically.

Please find attached a small example...

Does it answer your question ?

Best Regards,
François

File attachments
0
by Jordan Tangy
Badge for 'Question Solver' achievement
Author
Posted on Tue, 08/03/2021 - 15:37

In reply to by francoisbar

Hi François ,

First of all , thank you for your quick and detailed answer.

Indeed, when I said "automatically", I meant how to specify police size, cell size , etc.. sorry for the misphrase, but you got my point, so thank you for your help !

All the best,

Jordan

 

0
by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Tue, 08/03/2021 - 08:57

Or just use a template excel file when creating the output file.

There you can set the filters, groupings, width etc just like you want.

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock