Click here to Skip to main content
15,920,896 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to open Excel file in asp.net Pin
vivekdeshpande13-Oct-06 19:16
vivekdeshpande13-Oct-06 19:16 
hi

I want to open Excel file on my local computer .
File is located on server's drive for eg.D\Project\Test.xls

How can i open this file on clients computer in Asp.Net.

I try this Code

public Excel.Application ExcelObj = null;


string filepath = AppDomain.CurrentDomain.BaseDirectory + @"PO_Attachment/"+lstattach.SelectedValue.ToString() ;

theWorkbook= ExcelObj.Workbooks.Open(
filepath, 0, true, 5,
"", "", true, Excel.XlPlatform.xlWindows, "\t", false, false,
0, true);
Excel.Sheets sheets = theWorkbook.Worksheets;


Excel.Worksheet worksheet = (Excel.Worksheet)sheets.get_Item(1);


ExcelObj.Visible = true;


But file can't open

So plz give solution or Code for opening this file

Its Very Very Argent


So plz Help me

thanks


Vivek Deshpande
AnswerRe: How to open Excel file in asp.net Pin
islamkalil13-Oct-06 23:47
islamkalil13-Oct-06 23:47 
Questionupload gif/doc file to database Pin
Nizha J13-Oct-06 19:16
Nizha J13-Oct-06 19:16 
Questionpassing parameter using postbackURL property... Pin
Naif_Prof13-Oct-06 12:06
Naif_Prof13-Oct-06 12:06 
AnswerRe: postbackURL property..... [modified] Pin
Jay_se13-Oct-06 19:01
Jay_se13-Oct-06 19:01 
QuestionReportViewer Issue Pin
Christopher Stratmann13-Oct-06 9:13
Christopher Stratmann13-Oct-06 9:13 
AnswerRe: ReportViewer Issue Pin
Andy Brummer13-Oct-06 10:22
sitebuilderAndy Brummer13-Oct-06 10:22 
Questionjavascript alert function breaks with linefeed character Pin
#realJSOP13-Oct-06 9:00
professional#realJSOP13-Oct-06 9:00 
AnswerRe: javascript alert function breaks with linefeed character Pin
Shog913-Oct-06 9:23
sitebuilderShog913-Oct-06 9:23 
GeneralRe: javascript alert function breaks with linefeed character Pin
#realJSOP13-Oct-06 9:43
professional#realJSOP13-Oct-06 9:43 
AnswerRe: javascript alert function breaks with linefeed character Pin
Rama Krishna Vavilala13-Oct-06 9:25
Rama Krishna Vavilala13-Oct-06 9:25 
GeneralRe: javascript alert function breaks with linefeed character Pin
#realJSOP13-Oct-06 9:44
professional#realJSOP13-Oct-06 9:44 
GeneralRe: javascript alert function breaks with linefeed character Pin
Rama Krishna Vavilala13-Oct-06 9:47
Rama Krishna Vavilala13-Oct-06 9:47 
GeneralRe: javascript alert function breaks with linefeed character Pin
Guffa13-Oct-06 16:28
Guffa13-Oct-06 16:28 
QuestionSending Audio content from ASPX page. Pin
hectorpc200613-Oct-06 8:34
hectorpc200613-Oct-06 8:34 
AnswerRe: Sending Audio content from ASPX page. Pin
WillemM13-Oct-06 9:12
WillemM13-Oct-06 9:12 
GeneralRe: Sending Audio content from ASPX page. Pin
hectorpc200613-Oct-06 10:12
hectorpc200613-Oct-06 10:12 
GeneralRe: Sending Audio content from ASPX page. Pin
WillemM13-Oct-06 21:22
WillemM13-Oct-06 21:22 
QuestionDisplay data as table in Crystal Report Pin
bins8813-Oct-06 8:03
bins8813-Oct-06 8:03 
AnswerRe: Grid view paging error Pin
WillemM13-Oct-06 9:14
WillemM13-Oct-06 9:14 
Questionsql delete statement error in asp page Pin
keroed_edmond13-Oct-06 6:29
keroed_edmond13-Oct-06 6:29 
AnswerRe: sql delete statement error in asp page Pin
Guffa13-Oct-06 7:14
Guffa13-Oct-06 7:14 
GeneralRe: sql delete statement error in asp page Pin
keroed_edmond13-Oct-06 12:36
keroed_edmond13-Oct-06 12:36 
AnswerRe: sql delete statement error in asp page Pin
Guffa13-Oct-06 15:34
Guffa13-Oct-06 15:34 
QuestionUpload large files Pin
felopater13-Oct-06 5:28
felopater13-Oct-06 5:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.