Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

in Flextable, how to set a row with special column width

 
peter tong
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I try to set a row with a special column widht compared with other row.
I try the following:


but the result is very strange,
the output seems something like combination of row1 column widht and row 2 column width.
e.g. column 1 is 15%, column 2 is 45%!!!
how to set a row with special column width using Flextable?
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using FlexTable#getFlexCellFormatter#setColSpan()
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic