Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hello, I have come across a very frustrating problem in attempting some Excel automation with C#. I have a bit of code that allows the user to select a spreadsheet to open and then programmatically inserts some values into it. For some reason, though, the code hangs during the call to open the workbook. I am running this on a Windows 2000 SP3 Workstation w/Office 2000 and developing the code on Windows XP with Office XP in Visual C#.NET. Incidentally, it works flawlessly on my dev machine. Here is the code I am using. It hangs on the 3rd line. Excel.Application exapp = new Excel.ApplicationClass(); Excel.Workbook wb = exapp.Workbooks.Open(filename,Type.Missing,Type.Mi ssing,Type.Missing,Type.Missing,Type.Missing,Type. Missing,Type.Missing,Type.Missing,Type.Missing,Typ e.Missing,Type.Missing,Type.Missing,Type.Missing,T ype.Missing,Type.Missing); Does anyone have any ideas what this might be? I'm almost at my wits end trying to figure out why it is hanging. Thanks, Chris Jones ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =--- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
when opening an Excel Workbook, another blank workbook also opens | Excel Discussion (Misc queries) | |||
Excel hangs on opening file | Excel Discussion (Misc queries) | |||
excel exits unexpectedly or hangs the second time I open workbook | Excel Discussion (Misc queries) | |||
Excel file hangs for several min, before opening | Excel Discussion (Misc queries) | |||
Excel 2003 hangs when trying to locate a workbook to open | Excel Discussion (Misc queries) |