منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب
Remove excel from memory after close - نسخة قابلة للطباعة

+- منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب (http://vb4arb.com/vb)
+-- قسم : قسم لغة الفيجوال بيسك VB.NET (http://vb4arb.com/vb/forumdisplay.php?fid=182)
+--- قسم : قسم اسئلة VB.NET (http://vb4arb.com/vb/forumdisplay.php?fid=183)
+--- الموضوع : Remove excel from memory after close (/showthread.php?tid=41718)



Remove excel from memory after close - moh8880 - 11-06-22

I am try to close the excel app from memory -- Task  manager after close and quite it from vb.net but i can't

Ex ::

Xlworkbook.close()
Xlsapp.quite()


RE: Remove excel from memory after close - رمضان272 - 17-06-22

أرفق كود الاعلان عن الكائن الذى أستخدمته لإنشاء نسخه الاكسل


RE: Remove excel from memory after close - asmarsou - 18-06-22

(11-06-22, 10:11 PM)moh8880 كتب : I am try to close the excel app from memory -- Task  manager after close and quite it from vb.net but i can't

Ex ::

Xlworkbook.close()
Xlsapp.quite()

ضع الكود التالي في حدث FormClosing
كود :
Dim xlp() As Process = Process.GetProcessesByName("EXCEL")

       For Each Process As Process In xlp
           Process.Kill()
           If Process.GetProcessesByName("EXCEL").Count = 0 Then
               Exit For
           End If
       Next