Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have created an excel file using vb.net programming, and which is saved as myfilename... now this excel sheet1 contains data and i want browser could download this data... can any buddy help

Dim strconn As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & MyFileName & ";Extended Properties=Excel 8.0;"

this my source address?
now how can user download this...please send me the code
Posted
Updated 22-Mar-10 1:02am
v2

1 solution

If you mean that you want the excel file to be downloaded by a browser, then you need to post it to a website somewhere on the internet with an html page with a hyperlink that points to it. If you mean that you want it to be formatted in HTML so that the data is viewable to the general public, then you need to to create a ASP.net page with a dataview in it that uses that excel file as your datasource.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900