|
-
Nov 14th, 2007, 01:57 PM
#1
Thread Starter
New Member
how to dispose excel ?????
in the VB program,
i want bring up a excel sheet ( visible = true) and fill in some items, let user to print the excel.
however, i don know how to dispose excel , if i use
...
...
oExcel.Visible = True
...
...
...
oExcel.Quit()
System.Runtime.InteropServices.Marshal.ReleaseComObject(oExcel)
GC.Collect()
then excel sheet flash and close, (that's for sure)
if i don add the last 3 commands, progress EXCEL.exe will stay in memory even after user close the excel sheet.
so , how to make the sheet stay on screen and dispose after user close the excel? anyone can give me some suggestions?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|