S
Steve Kershaw
Hello,
I've been trying to spin off an Excel worksheet on the client from an
ASP.NET website. I was successfull in displaying an Excel worksheet on
the client in a test website (not using IIS, but using Visual Studio
2005) with the following code:
protected void Button1_Click(object sender, EventArgs e)
{
Application exc = new Application();
exc.Visible = true;
Workbooks workbooks = exc.Workbooks;
_Workbook workbook = workbooks.Add(XlWBATemplate.xlWBATWorksheet);
Excel.Worksheet worksheet = (Excel.Worksheet)workbook.ActiveSheet;
}
This code spins off a blank Excel worksheet.
However when I place this code into another ASP.NET website that I'm
developing, I find that I can't set exc.Visible = true! The Excel
worksheet doesn't display at all. The only difference is that the new
ASP.NET website is run off of IIS and the test website is run off the
local Visual Studio 2005.
What am I doing wrong?
Thanks!
Steve
I've been trying to spin off an Excel worksheet on the client from an
ASP.NET website. I was successfull in displaying an Excel worksheet on
the client in a test website (not using IIS, but using Visual Studio
2005) with the following code:
protected void Button1_Click(object sender, EventArgs e)
{
Application exc = new Application();
exc.Visible = true;
Workbooks workbooks = exc.Workbooks;
_Workbook workbook = workbooks.Add(XlWBATemplate.xlWBATWorksheet);
Excel.Worksheet worksheet = (Excel.Worksheet)workbook.ActiveSheet;
}
This code spins off a blank Excel worksheet.
However when I place this code into another ASP.NET website that I'm
developing, I find that I can't set exc.Visible = true! The Excel
worksheet doesn't display at all. The only difference is that the new
ASP.NET website is run off of IIS and the test website is run off the
local Visual Studio 2005.
What am I doing wrong?
Thanks!
Steve