• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

CSV file opening in Excel - cell auto adjustment using JasperReports

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using JaperReport for creating reports. I am exporting them to CSV format.
I am opening it in Microsoft Excel. As data length is more than Excel cell length, data is get hide behind next column.
I want to make sure - as per data length cell length should get increase.

I read about DynamicJasper, but for this change it is not possible to me to change all reports and create new with DynamicJasper.

Please help me if any know how can I do this programaticaly using JasperReport.

 
Sheriff
Posts: 22784
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't specify in a CSV file how Excel will open it. If you need to specify a predefined size for a column you'll have to export the data as an Excel file.
 
Sham Phadtale
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Rob!

Please can you tell me how can I specify a predefined size for a column to export the data as an Excel file using japser report?
 
Rob Spoor
Sheriff
Posts: 22784
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not really. I haven't used JasperReports, and have only used Apache POI and JExcelAPI for reading Excel files, not writing them.
 
reply
    Bookmark Topic Watch Topic
  • New Topic