Solved

Generating XLS file using HTML tags

Posted on 2002-03-06
6
144 Views
Last Modified: 2010-04-09
I have generated an  Excel file using HTML tags. The excel file generated is fine in OFFICE 2000. but if i use OFFICE 97 alignment gets changed. please send me the solution for this problem...
(in 2000 im getting the file in 2 pages while in 97 it is taking 4 pages for the same data with misalignment)


Thanx
0
Comment
Question by:Narendranath
6 Comments
 
LVL 19

Expert Comment

by:DreamMaster
ID: 6846822
Could you show us the code you are using to generate this Excel file? It would be kinda helpfull in pointing you to where it goes wrong...

Max.
0
 
LVL 19

Expert Comment

by:webwoman
ID: 6847233
What do you mean 'generated an  Excel file using HTML tags'? Did you make a big table in HTML and then try to use it in Excel? Big mistake...

Some detail of what you're trying to accomplish would also be helpful -- because what you've said so far doesn't make much sense.
0
 
LVL 18

Expert Comment

by:bruno
ID: 6847354
are you using response.contentType?  if so, would definitly need to see the code...
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 2

Accepted Solution

by:
udnimbalkar earned 100 total points
ID: 6850234
just add this
 set contenttype as ("application/vnd.ms-excel",TRUE);
and write your data in table in normal html presentation format. browser will show data in excel
  cheers
  umesh nimbalkar
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6975494
This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.

Cd&
0
 
LVL 18

Expert Comment

by:bruno
ID: 6976099
delete, NO refund
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question