Presentation is loading. Please wait.

Presentation is loading. Please wait.

Microsoft Office Project Desktop Development Marcel Parent Program Manager Project Microsoft Corporation.

Similar presentations


Presentation on theme: "Microsoft Office Project Desktop Development Marcel Parent Program Manager Project Microsoft Corporation."— Presentation transcript:

1

2 Microsoft Office Project Desktop Development Marcel Parent Program Manager Project Microsoft Corporation

3 What You Will Learn The 4 primary desktop development options VBA Macros COM Add-Ins (Unmanaged & Managed) Custom Project Guides Custom Web Views HOW, WHEN & WHERE to use each option 1) Extend Project with VBA macros & COM Add-Ins to handle custom scenarios/business logic & automate repetitive processes 2) Encapsulate & enforce a business process/workflow in Project through a custom Project Guide 3) Integrate Web-UI into Project through custom Web Views

4 Roadmap The Project Object Model Option 1: Writing VBA Macros Option 2: Creating COM Add-Ins Option 3: Customizing the Project Guide Option 4: Creating custom Web Views

5 NOT Covered In This Session Project Server Development Refer to the Project Data Service (PDS), Web Parts & Reporting sessions for this info

6 The Project Object Model The Basics CollectionsObjectsMethodsPropertiesEvents

7 The Project Object Model

8 VBA Macros The Basics What is a VBA Macro? VBAVBA = Visual Basic for Applications VBA Macro = a user-defined command that is part of an application (like Project) & executes a series of commands Writing your own macro Macro deployment options Macro security Digital signatures Policy settings

9 VBA Macros OOB Macros in Project 2003 NameDescription 1Format_Duration Reformats the duration of all tasks in the project, expressed in either minutes, hours, days, or weeks. Also sets the default duration unit that applies to all summary tasks and new tasks. 2ResMgmt_TaskEntry Applies the Task Entry view with the schedule fields displayed in the bottom pane’s Task Form. 3Rollup_Formatting Formats rolled up tasks so that the task names alternate above and below the rolled up tasks. 4Toggle_Read_Only Toggles a file between Read-Only and Read-Write. 5Update_File Updates a Read-Only file to the most recently saved version.

10 Developing a Project VBA Macro

11 COM Add-Ins The Basics What is a COM Add-In? COM = Component Object Model Add-In = extension to an application (like Project) COM Add-In = an extension to an application that uses COM to automate one or more applications (via object model calls) Writing your own COM add-in Use the Project Primary Interop Assembly (PIA) in a managed add-in Add-in deployment options Add-in security Digital signatures

12 COM Add-Ins OOB COM Add-Ins in Project 2003 NameDescription 1Adjust Dates Adjusts all dates in your project in relation to a new start date that you provide when prompted. Tasks with constraints are also adjusted. 2Analyze Timescaled Data in Excel Exports timephased data to Excel. 3Eurocurrency Converter ** Displays costs in more than one currency at the same time, without affecting existing cost information. 4PERT Analysis Performs a Program, Evaluation, and Review Technique (PERT) analysis to estimate a task's duration. 5Compare Project Versions ** Creates a detailed report that highlights differences between 2 projects. 6Copy Picture to Office * Exports project information to a table and/or image in a PowerPoint, Word, or Visio document. 7Visio WBS Chart Wizard ** Exports project information to a hierarchical WBS Chart diagram in Visio. 8XML Reporting Wizard ** Creates custom reports in any format by generating an Extensible Markup Language (XML) file from project data. * Introduced in Project 2003 ** Added to the box in Project 2003 (released via the web for Project 2002)

13 Developing a Project COM Add-In

14 The Project Guide

15 Custom Project Guides The Basics What is a custom Project Guide? Custom web content & associated script, organized in a navigable hierarchy This content can replace or append to Project’s default Project Guide Writing your own Custom Project Guide Custom mainpage.htm file Frameset/layout Functionality/event handling Custom gbui.xml & content files HtmlJScript/VBScriptCSS Custom Project Guide deployment options Project Guide security IE Trusted Sites

16 Developing a Custom Project Guide

17 Custom Project Guide Samples

18 Custom Web Views The Basics What is a custom Web View? Custom web content displayed in the Project document window May contain script to interact with Project Writing your own Custom Web View Create the content page (as necessary) Modify the mainpage or wrapper page to handle the custom page load Tie the custom page load to Project UI Toolbar button, custom Project Guide button, etc Custom Web View deployment options Custom Web View security IE Trusted Sites

19 Developing a Custom Web View

20 Custom Web View Samples

21 What You Will Learn: Recap The 4 primary desktop development options VBA Macros COM Add-Ins (Unmanaged & Managed) Custom Project Guides Custom Web Views HOW, WHEN & WHERE to use each option 1) Extend Project with VBA macros & COM Add-Ins to handle custom scenarios/business logic & automate repetitive processes 2) Encapsulate & enforce a business process/workflow in Project through a custom Project Guide 3) Integrate Web-UI into Project through custom Web Views

22 More Information General: Desktop Development Start with the “ Getting Started: Developing with Project 2003” technical article on MSDN http://msdn.microsoft.com/library/en- us/odc_pj2003_ta/html/odc_pjGetStarted.asp http://msdn.microsoft.com/library/en- us/odc_pj2003_ta/html/odc_pjGetStarted.asp This article summarizes the Project desktop development options covered in this session, and includes links to helpful information for each option Refer to the Project 2003 SDK The April 12 2004 update online: http://msdn.microsoft.com/library/default.asp?url=/library/en- us/pjsdk/html/pjsdkoverview.asp http://msdn.microsoft.com/library/default.asp?url=/library/en- us/pjsdk/html/pjsdkoverview.asp The April 12 2004 update download: http://www.microsoft.com/downloads/details.aspx?familyid=4d2a bc8c-8bca-4db9-8753-178c0d3099c5&displaylang=en http://www.microsoft.com/downloads/details.aspx?familyid=4d2a bc8c-8bca-4db9-8753-178c0d3099c5&displaylang=en

23 More Information Specific: The Project Object Model Refer to the compiled VBA help file installed with Project for OM specifics :\Program Files\Microsoft Office\OFFICE11\ \VBAPJ.CHM :\Program Files\Microsoft Office\OFFICE11\ \VBAPJ.CHM Or from within the Project VBA editor (boot Project and press Alt + F11), use the Object Browser to navigate the OM’s object hierarchy, and then press F1 to view help information from VBAPJ.CHM for any selected object/method/property/event

24 More Information Specific: Creating Project Add-Ins Refer to the “Create a COM Add-in for Microsoft Office Project 2003” & “Creating Managed Add-ins for Microsoft Office Project 2003” Project 2003 SDK articles http://msdn.microsoft.com/library/en- us/pjsdk/html/pjsdkvb6_Create_COM_Add- In_HV01103711.asp http://msdn.microsoft.com/library/en- us/pjsdk/html/pjsdkvb6_Create_COM_Add- In_HV01103711.asp http://msdn.microsoft.com/library/en- us/pjsdk/html/pjsdkMAOverview_HV01098482.asp http://msdn.microsoft.com/library/en- us/pjsdk/html/pjsdkMAOverview_HV01098482.asp

25 More Information Specific: The Project Guide Refer to the “Project Guide 101” Project 2003 SDK article which covers everything Project Guide-related in this session, including sample code for the demoed custom Project Guides The April 12 2004 update download: http://www.microsoft.com/downloads/details.aspx?familyid =4d2abc8c-8bca-4db9-8753-178c0d3099c5&displaylang=en http://www.microsoft.com/downloads/details.aspx?familyid =4d2abc8c-8bca-4db9-8753-178c0d3099c5&displaylang=en

26 © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.


Download ppt "Microsoft Office Project Desktop Development Marcel Parent Program Manager Project Microsoft Corporation."

Similar presentations


Ads by Google