excel opens asp.net page

J

Jerry.Rhodes

From an ASP.Net web page, I would like to start up Excel on the Client
and populate with data from my VB program. If I create a spread sheet
and save it to Test.xls, it works fine. If I create a tab delimited
file and save it to Test.xls, Excel opens my web page (test.aspx). Yet
if I manually open the tab delimited file directly with Excel, it opens
just fine. Here is my code:

Response.Clear()
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/vnd.ms-excel"
Response.WriteFile("d:\temp\Test.xls")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top