Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Automation in VB.net: Application.Visible does not work.

Status
Not open for further replies.

dylanmendes

Programmer
Sep 13, 2004
3
0
0
IN
Hello all,

My ASP.NET application attempts to export data into an Excel workbook using the following code:


**********************************************
Dim excelFileRef As Excel.Application
excelFileRef = New Excel.Application

Dim wbookNew As Excel.Workbook
wbookNew = excelFileRef.Workbooks.Add

'Save Instructions to Excel Workbook
InsertStringInExcel(wbookNew, strInstructions)

'Write data to Excel Workbook
InsertDataInExcel(wbookNew, dtableAnalysis)

excelFileRef.Visible = True
**********************************************

This code works fine on about 2/3 machines. However, when run on one of my client's machine, the Excel sheet does not open up. When I stepped through code here, it worked OK with no errors, except that the Excel application did not pop up when excelFileRef.Visible = True executed! Further, when I checked the processes in Tast manager, there was a new EXCEL.EXE process.

What do I need to do to allow my client to see the Excel application?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top