index > Visual Studio Tools for Office > exporting to excel problem

exporting to excel problem


hi,

I have created a little time reporter (Web Application) that has a button to export time sheets to excel.

when I debug the application by hitting F5 and then I click the button to export time sheets to excel, everything goes well but when browse to my application (http://server:888/app1) the button does not work and it generate followin exception:
System.Exception: Cannot create ActiveX component.

it generates at this line of my code:
oExcel = CreateObject("Excel.Application")

Medes_

Hi Medes

this forum is specific for questions concerning the VSTO technology. You're automating Excel in a web application, which is outside the scope of this forum. You need to ask this question in a more appropriate forum, one that deals with web issues. The ASP.NET forums are here

http://forums.asp.net/

FWIW, from what I've seen discussed here-and-there, you're probably running into Security problems. Perhaps Internet Explorer isn't set up to allow what you want to do?




-- Cindy Meister (Word MVP)
Cindy Meister
reply 2

You can use google to search for other answers

 

More Articles

outlook add-in 2002 vs 2003
Partial trusted call from Excel application to shared memberes of...
VSTO 2005 Upgrade did not install Visual Web Developer
Is it possible to use Globals class outside the "Code behind...
infoPath forms problem
Inserting Page numbers into Excel
Dynamic Customization
Smart Tag aspect
creating VSTO outlook Addin Setup File
Package Wizard
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Insufficient Memory Exception
System._ComObject casting error
Inserting standard comments into Word
Dynamic Array of NamedRanges
filling the Multiple ranges
Visual Basic For Excel - Search in Word
How to customize more than one Excel wor…
Excel 2007 Beta Charting Problem/Question
Measure the width of a string contained …
Determine selected cells in a ListObject
EventHandlers not firing inside ThisDocu…
VSTO 2005 SE Beta
We need a VSTO Excel stud (or studette)
Serious: Update multiples tables of Data…
VBA/excel programming investing software

Hot Articles

Please try this: view Word doc in webBro…
Excel 2003 -The XML Maps in this workboo…
Threading issues GUI updates in the Acti…
API request: Chart drawing in Excel
Adding toolbar button like Excel's Undo/…
Big Trouble with Encrypted Emails in VST…
Excel SaveAs() method
Made a mistake...unable to uninstall!
Deletion & Memory Leak Word 2003
VSTO 2005 SE Deployment Problem
Query on VS2005
multiple windows again and again
I am newbie..Pls Help Me with Actions Pa…
No SetSecurity Project in german VSTO
Serious problem with permission/security…

Recommend Articles

VSTO 2005 Install before VS 2005
How to get IWin32Window for Show/ShowDia…
Question regarding VSTO Excel Worksheet
VSTO Deployment Models
filling the Multiple ranges
Why is a hidden VSTO document grabbing i…
Running MySql from Form in Outlook 2003 …
Document-level VSTO in Access 2007
Sharepoint and caspol
Outlook add-in in a Citrix enviroment
Office 2003 and Office XP.
VSTO Outlook Addin - Why doesn't my Prop…
How to determine the type of the Outlook…
Xml Toolbox issue
InfoPath 2003 Tools for Visual Studio 2003