This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes  Excel size becomes large while creating excel file in jsp using content type Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark " Excel size becomes large while creating excel file in jsp using content type" Watch " Excel size becomes large while creating excel file in jsp using content type" New topic
Author

Excel size becomes large while creating excel file in jsp using content type

bhagyah
Greenhorn

Joined: Jul 05, 2007
Posts: 1
Hi All,

I created an excel using jsp by setting content type as excel, the size of the excel is coming nearly around 5MB. If copy the content of that 5MB excel content and paste it and created another excel directly. The size of the new excel is coming around 1 MB.

It will be great if any body reply me as soon as possible.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
Welcome to JavaRanch.

You can't create XLS files using a JSP. I'm guessing that you're creating an HTML table that happens to be readable by Excel; correct? If so, it's no surprise that the data takes up much less space once it's in Excel, because all those HTML tags are gone.
[ October 08, 2008: Message edited by: Ulf Dittmer ]

Android appsImageJ pluginsJava web charts
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56191
    
  13

"bhagyah", please check your private messages for an important administrative matter.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Excel size becomes large while creating excel file in jsp using content type
 
Similar Threads
help needed with jsp:getProperty
Format data exported to Excel from JSP
export data to excel and double byte
Excel-format report
Excel Charts and JSPs