Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Why two files are under one process in task manager. _ vb.net 2008

Why two files are under one process in task manager. _ vb.net 2008

Scheduled Pinned Locked Moved Visual Basic
csharphelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pankaj Garg
    wrote on last edited by
    #1

    Hi,

    xlsApp1 = CreateObject("Excel.Application")

    after the excution of the above code creates an instance of excel in task manager.

    Dim temp As Excel.Workbook
    temp = xlsApp1.Workbooks.Open(ExsTemplate & "sheet.xls")

    this line is opening an excel template file. after the excution of above line i try to open any excel file by double clicking it which is lying in my hard drive. and results in opening this file - ExsTemplate & "sheet.xls" and one more thing this opened file , does not create a new instance in task manager. These are the two problems. both thses files are under one process. because when i kill this process from task manager, it closes both files. please help.

    C 1 Reply Last reply
    0
    • P Pankaj Garg

      Hi,

      xlsApp1 = CreateObject("Excel.Application")

      after the excution of the above code creates an instance of excel in task manager.

      Dim temp As Excel.Workbook
      temp = xlsApp1.Workbooks.Open(ExsTemplate & "sheet.xls")

      this line is opening an excel template file. after the excution of above line i try to open any excel file by double clicking it which is lying in my hard drive. and results in opening this file - ExsTemplate & "sheet.xls" and one more thing this opened file , does not create a new instance in task manager. These are the two problems. both thses files are under one process. because when i kill this process from task manager, it closes both files. please help.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Excel is one process. That's how it works. You can't change it.

      Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

      P 1 Reply Last reply
      0
      • C Christian Graus

        Excel is one process. That's how it works. You can't change it.

        Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

        P Offline
        P Offline
        Pankaj Garg
        wrote on last edited by
        #3

        Christian, Suppose i open ten files, and all these files shall come under one process. I know the process id. can u tell me how should i find out all the file names pertaining to this process? Thank You

        J 1 Reply Last reply
        0
        • P Pankaj Garg

          Christian, Suppose i open ten files, and all these files shall come under one process. I know the process id. can u tell me how should i find out all the file names pertaining to this process? Thank You

          J Offline
          J Offline
          JR212
          wrote on last edited by
          #4

          xlsApp1.workbooks give you all the info about the open files by your program and others(manualy)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups