1. #1
    Unregistered

    MS-Office file open automatically when I run C# code in windows 7

    I am an engineering student who is learning C#. The windows works fine without any problem but when I execute the C# code, a word file opens automatically. I need to close this file in order to run the C# code. How can I remove this .doc file from opening in this type of situation.



  2. #2
    BISMITH Array
    Join Date
    Jul 2012
    Location
    NEW DELHI
    Posts
    286

    Re: MS-Office file open automatically when I run C# code in windows 7

    Hi,
    the doc file which opens is the the code of your program,which you are trying to run.
    one way in which in which you can stop this from happening is that better open that program
    usin command prompt,this will certainly solve your problem:-)

  3. #3
    Libin Array
    Join Date
    Aug 2012
    Posts
    266

    Re: MS-Office file open automatically when I run C# code in windows 7

    HELLO GUEST

    Well, you can try this...

    Click Options on theTools menu, and then click the General tab.
    In Microsoft Office 2007, click the Microsoft Office Button, click Office Options, click the Advanced tab, and then locate the General section.
    In Microsoft Office Excel 2010, click the File menu, click Options, click the Advanced tab, and then locate the General section.

    This might help you.
    Thanks
    Libin

+ Reply to Thread

Similar Threads

  1. Replies: 5
    Last Post: 19-09-2013, 01:58 PM
  2. Replies: 19
    Last Post: 03-04-2013, 04:23 PM
  3. Replies: 6
    Last Post: 05-09-2012, 02:47 PM
  4. Replies: 1
    Last Post: 10-07-2012, 11:33 PM
  5. Replies: 4
    Last Post: 06-07-2012, 12:08 PM