Open excel file in browser
hIpl help me how do i open excel file in browers, should i need to use iframe or any other method. am working on asp.net with vb.net
Right Click in your excel sheet -> open with -> then selected Browser
now you can see the excel sheet in browser window
<iframe src="file:\\Book1.xls" width="100%" height="500"></iframe>
<iframe id="ifrm1" runat="server" src="~/Book1.xls" width="400" height="800"></iframe>
<iframe id="ifm2" runat="server" ></iframe>
ifm2.Attributes.Add("src", Server.MapPath("~\\Book1.xls"));
iframe.Attributes.Add("src", Server.MapPath("~\\Book1.xls"))
< iframe src="http://docs.google.com/gview?url=URL_TO_YOUR_EXCEL_FILE_HERE&embedded=true" style="width:600px; height:500px;" frameborder="0">< /iframe>
var objExcel;
objExcel = new ActiveXObject("Excel.Application");
objExcel.Visible = true;
objExcel.Workbooks.Open(//file Path);