Solved

Generating XLS file using HTML tags

Posted on 2002-03-06
6
145 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

808 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