Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Guys
I need to copy data from one excel file to other. Am doing this in asp.net with c# as backend code. Do I need to two excel Application objects? No matter if I use two excel objects or one, I am ending up with one excel object in memory even after closing them. Whats the best way to do this without leaving any Excel apps around? Please help. Heres what my code looks like: Excel.Application exclApp = new Excel.ApplicationClass(); Excel.Workbook... srcWb = Open("source.xls",...) Excel.WorkSheets srcSheets Excel.Worksheet srcSheet Excel.Workbook dstWb = open("dest.xls",....) Excel.Worksheets dstSheets Excel.Worksheet dstSheet.. dstSheet.range = srcSheet.range; cleanup.. I call ReleaseComObject() on all above objects and finally. exclApp.Quit(); GC.Collect(); |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Visual to copy format one row down when data entered | Excel Discussion (Misc queries) | |||
copy and paste visual cells only in Excel | Excel Discussion (Misc queries) | |||
copy and paste (visual basic) | New Users to Excel | |||
Passing a range of data to a function - Excel - visual basic | Excel Programming | |||
Link or Copy Excel Data to Calendar (for scheduling) for Visual Aid | Excel Discussion (Misc queries) |