CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2001
    Location
    County Durham, England
    Posts
    238

    Question VB.NET and MS Project 2000

    Hi All,

    I have managed to create an MS Project File through vb.net by using the code as below ;

    Code:
    Dim MSProject
    MSProject = CreateObject("MSProject.Application")
    This works as MS Project is Installed onto My PC but I would still like it to create the file on machines which do not have MS Project 2000 Installed. Is there a way I can do this as this area is new to me ?

    Also does anybody have any links to web pages which have sample VB.net code on using MS Project in VB.NET, I'm struggling with adding Resource / Dependencies etc and could do with some samples.

    Ultimately I would like to view the Gantt chart in my application but if I could do this it would be a workaround . . .

    Kind Regards Guru's

    Ken

  2. #2
    Join Date
    Nov 2004
    Location
    LA. California Raiders #1 AKA: Gangsta Yoda™
    Posts
    616

    Re: VB.NET and MS Project 2000

    No, you need to have MS Project installed on the system in order to do any automation with it. It is not a redistributable dependancy either.
    VB/Office Guru™ (AKA: Gangsta Yoda™)
    VB Forums - Super Moderator 2001-Present

    Microsoft MVP 2006-2011

    Please use [code]your code goes in here[/code] tags when posting code.

    Senior Software Engineer MCP, BSEE, CET
    VS 2012 Premium, VS 6.0 Enterprise SP6, VSTO, Office Ultimate 2010, Windows 7 Ultimate
    Star Wars Gangsta Rap SE Reputations & Rating Posts Office Primary Interop AssembliesAdvanced VB/Office Guru™ Word SpellChecker™.NETAdvanced VB/Office Guru™ Word SpellChecker™ VB6Outlook Global Address ListVB6/Crystal Report Ex.VB6/CR Print Setup Dialog Ex.

  3. #3
    Join Date
    Mar 2001
    Location
    County Durham, England
    Posts
    238

    Re: VB.NET and MS Project 2000

    Cheers Rob,

    One Question though, how do these Free 3rd Party MS Project Readers manage ro read MSProject files and interpret them with No MS Project installed.

    Cheers

    Ken

  4. #4
    Join Date
    Nov 2004
    Location
    LA. California Raiders #1 AKA: Gangsta Yoda™
    Posts
    616

    Re: VB.NET and MS Project 2000

    If they are using Project 2002 or 2003 then they may be using the .Interop class of the Office app. It basically lets you package the runtimes legally but it prevents any use or auotmation from outside your app so to speak. If they let you distribute Project then youu could make your own, thus killing the sales for MS Project. The .Interop programibility seems to be a compromise between nothing and everything.

    I have a link in my signature for "Office Programary Interop Assemblies". Everything you need to know about them is in the link at MS.
    VB/Office Guru™ (AKA: Gangsta Yoda™)
    VB Forums - Super Moderator 2001-Present

    Microsoft MVP 2006-2011

    Please use [code]your code goes in here[/code] tags when posting code.

    Senior Software Engineer MCP, BSEE, CET
    VS 2012 Premium, VS 6.0 Enterprise SP6, VSTO, Office Ultimate 2010, Windows 7 Ultimate
    Star Wars Gangsta Rap SE Reputations & Rating Posts Office Primary Interop AssembliesAdvanced VB/Office Guru™ Word SpellChecker™.NETAdvanced VB/Office Guru™ Word SpellChecker™ VB6Outlook Global Address ListVB6/Crystal Report Ex.VB6/CR Print Setup Dialog Ex.

  5. #5
    Join Date
    Mar 2009
    Posts
    9

    Re: VB.NET and MS Project 2000

    i do have the same sort of issue. I am using vb.net where i can read and write the tasks, resources into the msproject where as i need to read the working days of the project. Can you let me know as im in a desperate situation..

    Thanks in advance..


    Maheshkumar B

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured