تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
Remove excel from memory after close
#1
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()
الرد }}}
تم الشكر بواسطة:
#2
أرفق كود الاعلان عن الكائن الذى أستخدمته لإنشاء نسخه الاكسل
الرد }}}
تم الشكر بواسطة: asmarsou
#3
(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
الرد }}}
تم الشكر بواسطة:



التنقل السريع :


يقوم بقرائة الموضوع: