| | |
Many problems using ASP and Excel
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2005
Posts: 1
Reputation:
Solved Threads: 0
Hello. I always use the same way to open an excel file (the same one that the one wich is used by another person in this topic: http://www.daniweb.com/techtalkforums/thread26473.html). But to create... there are problems. Let's see...
To generate an Excel file...
1) If I use the method based in
<%
Response.ContentType = "application/vnd.ms-excel"
%>
I get an "odd" excel file:
-Without visible lines among cells.
-It's only html code. I can't open this with the usual method from ASP. I can open it in this way if previously, I manually save the file marking the type as "excel book" (or similar), but not as "web file".
-I can't do an important thing: the fact that when you write in an excel cell, if the text is too long, it doesn't care, because the cell don't grow to have it. In this case, the cell and all the column will grow in width to adapt to the longest text, and if I try to fix it with the property "width" of the "<td>", the cell will grow vertically to show the text.
2) If I use the metod based in OWC (a better method I think, with a more "normal" result), I don't know how to do two things. Please, if someone know them, tell me them.
-How can I fix the size of a column or a cell?
-How can I do that a text fits two or more columns?
And that's all. I also would know if I can insert images, in both methods.
Thanks.
To generate an Excel file...
1) If I use the method based in
<%
Response.ContentType = "application/vnd.ms-excel"
%>
I get an "odd" excel file:
-Without visible lines among cells.
-It's only html code. I can't open this with the usual method from ASP. I can open it in this way if previously, I manually save the file marking the type as "excel book" (or similar), but not as "web file".
-I can't do an important thing: the fact that when you write in an excel cell, if the text is too long, it doesn't care, because the cell don't grow to have it. In this case, the cell and all the column will grow in width to adapt to the longest text, and if I try to fix it with the property "width" of the "<td>", the cell will grow vertically to show the text.
2) If I use the metod based in OWC (a better method I think, with a more "normal" result), I don't know how to do two things. Please, if someone know them, tell me them.
-How can I fix the size of a column or a cell?
-How can I do that a text fits two or more columns?
And that's all. I also would know if I can insert images, in both methods.
Thanks.
![]() |
Similar Threads
- Exporting ASP pages to Excel (ASP)
- read excel records in asp not refreshing (is the excel file cached) (ASP)
- Run ASP scripts on Win XP Home (ASP)
- Problems configuring web server (ASP)
Other Threads in the ASP Forum
- Previous Thread: Excel to ASP database
- Next Thread: how to sum the cells in excel using asp
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection connection database databaseconnection diagnostics dreamweaver excel fso iis microsoft msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption server single specfic sqlserver sqlserverconnection toolkit webserver windows7





