Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 18th, 2003, 05:35 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Default excel.exe in memory

Hi i am doing project in asp.net using vb

i want to show the output in excel format.
after closing the excel application also
i can see the EXCEL.EXE in my taskmanager means in PRocesses tab i can see the
EXCEL.EXE. how to close this EXCEL>EXE from memory.If i run my code 10 times 10 EXCEL.EXE are shoing in taskmanager.

my code like this

     Dim excel As New Excel.Application
        excel.Application.Workbooks.Add(True)
        lcdgrd.Visible = True
        Dim table1 As System.Data.DataTable
        table1 = GetData()
        Dim col As DataColumn
        Dim colIndex As Integer
        Dim rowIndex As Integer
        rowIndex = 1
        For Each col In table1.Columns
            colIndex += 1
            excel.Cells(rowIndex, colIndex) = col.ColumnName
        Next col
        Dim row As DataRow
        For Each row In table1.Rows
            rowIndex += 1
            colIndex = 0

            For Each col In table1.Columns
                colIndex += 1
                excel.Cells(rowIndex, colIndex) = row(col.ColumnName).ToString()
            Next col
        Next row
        excel.Application.Visible = True
        excel = Nothing


pl advice me. thanks
sr

 
Old September 17th, 2004, 02:35 PM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have You solved your peoblem. Because i am facing the same problem right now. Can you help me with this?

 
Old September 17th, 2004, 02:56 PM
Authorized User
 
Join Date: Sep 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

did u try excel.Dispose()



 
Old February 9th, 2005, 04:32 PM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To close the running excel you probably have to issue excel.Application.close at some point





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Remove Excel Object From Memory jatinp82 BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 2 May 30th, 2007 03:53 PM
Excel Application is left in Memory, why??? thetwai C# 3 March 29th, 2007 11:19 AM
EXCEL process stays in memory even after deallocat kool_creative General .NET 0 January 13th, 2006 05:04 AM
excel export giving memory error msrnivas .NET Web Services 0 September 6th, 2004 12:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.