Click here to Skip to main content
15,901,205 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Tracing Pin
Shujaat Ullah Khan6-Sep-07 0:12
Shujaat Ullah Khan6-Sep-07 0:12 
GeneralRe: Tracing Pin
Priya S6-Sep-07 1:16
Priya S6-Sep-07 1:16 
GeneralRe: Tracing Pin
Shujaat Ullah Khan6-Sep-07 1:44
Shujaat Ullah Khan6-Sep-07 1:44 
QuestionASP 2.0 Deployment Pin
pksno15-Sep-07 22:04
pksno15-Sep-07 22:04 
QuestionHow can I access a textbox in an insertItemTemplate in a formview control. Pin
Big Ralph5-Sep-07 21:35
Big Ralph5-Sep-07 21:35 
AnswerRe: How can I access a textbox in an insertItemTemplate in a formview control. Pin
Ahmad Adnan5-Sep-07 23:14
Ahmad Adnan5-Sep-07 23:14 
GeneralRe: How can I access a textbox in an insertItemTemplate in a formview control. Pin
Big Ralph5-Sep-07 23:35
Big Ralph5-Sep-07 23:35 
Questionproblem when creating excel from a web page Pin
S Palip5-Sep-07 21:18
S Palip5-Sep-07 21:18 
Hi,

Currently i'm developing a web based app. In one of the page i need to generate and show some data in excel.


I have added Excel 11.0 as a reference and using the following declarations:

Excel.Application ExcelApp = null;
Excel.Workbook ExcelWorkbook = null;
Excel.Worksheet ExcelWorkSheet = null;

and i'm using it as below

ExcelApp = new Excel.Application();
ExcelWorkbook = (Excel.Workbook)(ExcelApp.Workbooks.Add(Type.Missing));
ExcelWorkSheet = (Excel.Worksheet)ExcelWorkbook.Sheets["Sheet1"];
and it works fine.


But when i use the code below i'm getting compile time errors and for the below im not referring to Excel 11.0 library.

using Microsoft.Office.Tools;
using Microsoft.Office.Tools.Excel;
using Microsoft.Office.Interop.Excel;

The above three lines are written at the namespace declaration section.


Application ExcelApp = null;
_Workbook ExcelWorkbook = null;
_Worksheet ExcelWorkSheet = null;

ExcelApp = new Application();
ExcelWorkbook = (_Workbook)(ExcelApp.Workbooks.Add(Type.Missing));
ExcelWorkSheet = (_Worksheet)ExcelWorkbook.Sheets["Sheet1"];

One more problem is now the above codes fail to compile in machines in which their counter compile. Can any one help me on this.

Thanx,

PLS
AnswerRe: problem when creating excel from a web page Pin
Shujaat Ullah Khan6-Sep-07 0:47
Shujaat Ullah Khan6-Sep-07 0:47 
QuestionWhere to write VB Script file in ASP.Net 2.0 Pin
Priya_20075-Sep-07 21:17
Priya_20075-Sep-07 21:17 
AnswerRe: Where to write VB Script file in ASP.Net 2.0 Pin
Imran Khan Pathan5-Sep-07 23:08
Imran Khan Pathan5-Sep-07 23:08 
GeneralRe: Where to write VB Script file in ASP.Net 2.0 Pin
Priya_20075-Sep-07 23:50
Priya_20075-Sep-07 23:50 
GeneralRe: Where to write VB Script file in ASP.Net 2.0 Pin
Sandeep Akhare5-Sep-07 23:58
Sandeep Akhare5-Sep-07 23:58 
GeneralRe: Where to write VB Script file in ASP.Net 2.0 Pin
Imran Khan Pathan6-Sep-07 0:15
Imran Khan Pathan6-Sep-07 0:15 
QuestionImage Editor or manipluation Pin
Mustakim Mansuri5-Sep-07 21:09
Mustakim Mansuri5-Sep-07 21:09 
QuestionUpdating Pin
duo!@#5-Sep-07 20:56
duo!@#5-Sep-07 20:56 
AnswerRe: Updating Pin
John-ph5-Sep-07 21:45
John-ph5-Sep-07 21:45 
Questionwhat is deployment Pin
saravanan055-Sep-07 20:51
saravanan055-Sep-07 20:51 
AnswerRe: what is deployment Pin
vimal_yet5-Sep-07 20:59
vimal_yet5-Sep-07 20:59 
QuestionCall code behind function from Javascript Pin
RajeevKumarSharma5-Sep-07 20:09
RajeevKumarSharma5-Sep-07 20:09 
AnswerRe: Call code behind function from Javascript Pin
Imran Khan Pathan5-Sep-07 20:20
Imran Khan Pathan5-Sep-07 20:20 
AnswerRe: Call code behind function from Javascript Pin
Michael Sync5-Sep-07 20:21
Michael Sync5-Sep-07 20:21 
QuestionAccess denied error Pin
pradeep kumarappagari5-Sep-07 20:06
pradeep kumarappagari5-Sep-07 20:06 
AnswerRe: Access denied error Pin
Vasudevan Deepak Kumar5-Sep-07 21:06
Vasudevan Deepak Kumar5-Sep-07 21:06 
QuestionLock record Pin
samerh5-Sep-07 19:50
samerh5-Sep-07 19:50 

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.