• 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

Exporting html data to excel

 
Ranch Hand
Posts: 253
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Every one,

In the html page i am having table with three columns.Below the table, data will be displayed.Actually this is a report.

i am having an excel icon.when i click on this icon the data must be exported to excel sheet.

BedNo PatientName Remarks are the columns

I got the excel document.For this, i have put below code.
")

My requirement is , data in remarks column is improper in excel sheet.

It is stretched and not considering new lines...

Please any one reply to this thread...

Thanks & Regards,
vipul Kumar.





 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What Excel will do when importing HTML is anyone's guess. if you want precise control over the spreadsheet, generate proper Excel files using a library such as Apache POI.
 
vipul John
Ranch Hand
Posts: 253
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank for your reply.
I cannot use Apache POI for my project. As of my project is of maintenance, No new jar files will be added.
Without adding any jar file , is there any solution for this.

Please guide me..
Thanks & Regards,
Vipul Kumar.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Excel can read a CSV - comma separated values - formatted text file, each line gets turned into one row.

Bill
 
vipul John
Ranch Hand
Posts: 253
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply,

Excel can read a CSV - comma separated values - formatted text file, each line gets turned into one row.



What is CSV? What does it mean?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

vipul bondugula wrote:Thanks for your reply,

Excel can read a CSV - comma separated values - formatted text file, each line gets turned into one row.



What is CSV? What does it mean?



As already explained: comma separated values
 
vipul John
Ranch Hand
Posts: 253
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry i don't mean that..

CSV means "is it any format or what".Actually what you are trying to say i am unable to get clearly.

Please explain clearly from where should i start?

Thanks & Regards,
Vipul Kumar.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Comma-separated values
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic