22
DEV317 Integrating Extensible Business Graphics into Enterprise Applications using Visio 2003 Mai-lan Tomsen Bukovec Program Manager

DEV317 Integrating Extensible Business Graphics into Enterprise Applications using Visio 2003 Mai-lan Tomsen Bukovec Program Manager

Embed Size (px)

Citation preview

DEV317

Integrating Extensible Business Graphics into Enterprise Applications using Visio 2003

Mai-lan Tomsen Bukovec

Program Manager

Agenda

Visio in the Enterprise Solution DemosCode DrilldownsResources Appendix

Managed Code Interop Control Deployment

Graphical Project Planning Enterprise Project Management

Binding data to shapesWizards in user interface

ODBC-compliant data store

Programmable, event-driven shapes

Application scenariosMicrosoft Project data for complex project schedule diagrams

Access or SQL data for corporate space planning

SAP data for finance workflow processes

Visio XML Data IslandsDrawing Data in XML

Visio and XMLNative (but busy) XML file formatSolutionXML for export to other processesConsumer of SOAP payloads

Application scenariosDiagramming inventory availability through a supplier’s Web serviceDisplay schedules and timelines from an Enterprise Resource Planning web serviceTrack workflow status in a single diagram from data in multiple Web services in a partner community

Visio XML for Diagrams

Mai-lan Tomsen Bukovec

Program Manager

Visio

demodemo

Graphics in ContextBusiness Process Management

Diagrams for collaboration in contextGraphical representation of process, strategy, and workflowDiagram display according to end user task in multi-tier application

Application scenariosStatus tracking in Microsoft Office 2003 Word smart doc for RFP reviewTeam progress on a Microsoft Office 2003 SharePoint Portal Web partDynamic schedule diagram integrated into a C# winform

Dynamic Diagrams on Microsoft Office 2003 SharePoint Portal Server

Mai-lan Tomsen Bukovec

Program Manager

Visio

demodemo

Visio Solution Architecture

VBA

COM Add-in

Visio

LAN

Database

XML Server

In

tern

et Web

service

Server

Sharepoint Team Site

AddAdviseAddAdvise

IVisEventProcIVisEventProc

Visio Flowchart Automation Drill-down (VB.NET)Mai-lan Tomsen Bukovec

Program Manager

Visio

demodemo

Visio Component FeaturesVisio Component

In-process activation of Visio drawing window

Full Visio functionality through Visio API

Single active document and window

Integrated look and feel with host applicationDiagrams in context to application usage (form, web part, smart doc, web page)

Programmatic control over drawing surface

Mouse and keyboard events

Custom Host ApplicationsVisio Component

Visual Basic

C++

VB.NET

C#

Managed C++

ASP

ASP.NET

C# or VB.NET WinformC# or VB.NET Winform

Visio ActiveX Control

Sales Training Processes

First Customer ContactRequest for ProposalContract NegotiationMonthly Sales Roundup

Office As Host ContainerVisio Component

Office XPWord, Excel, PowerPoint

Office 2003Word, Excel, PowerPoint, Access

Separate IE Window

InfoPath

Project

Visio Control Automation Drill-down (C#)

Mai-lan Tomsen Bukovec

Program Manager

Visio

demodemo

Mouse and Keyboard EventsNew Developer Features

Display a custom form on the click event

Events on page or window, not shapePage.SpatialSearch(x, y, visSpatialContainedIn, 0.001 , visSpatialFrontToBack)

Use a very small unit, relative to the size of the shape, for tolerance

Returns a display-list-ordered Selection object that contains all of the shapes that contain the point x, y within the tolerance

Macro RecorderNew Developer Features

Rapid application developmentRecords user interaction with drawing surface and shapesheet

Quick prototypes, not production code

Visio programming “tutorial”Learn how the Visio API works

Learn complex tasks like glue

Shortcut to production code

Visio 2003 SDKNew Developer Features

ShapeStudioDevelopment environment for smart shapes

Developer tools Event Monitor and

Persistent Events

VS 6.0 and VS.NET wizards for Visio solutions

SamplesExtensive application samples (VB, VB.NET, C#)

Library of reusable functions, classes and sub-routines

Also available: Premier Services for Visio Partners

Ask The ExpertsGet Your Questions Answered

Jon Price Product Manager, Visio Product Group

Mai-lan Tomsen Bukovec Program Manager, Visio Development Platform

Questions, feedback, solution ideas welcome!

Community Resources

Community Resourceshttp://www.msdn.microsoft.com//visio(Visio 2002 SDK, Visio 2002 Managed Code Tutorial, Technical Articles,Samples, Visio 2003 SDK in Q4 2003)

Newsgroupsmicrosoft.public.visio.developermicrosoft.public.visio.developer.shapesheetmicrosoft.public.visio.developer.diagramsmicrosoft.public.visio.developer.vbamicrosoft.public.visio.developer.vc

User GroupsMeet and learn with your peershttp://www.microsoft.com/communities/usergroups/default.mspx

evaluationsevaluations

© 2003 Microsoft Corporation. All rights reserved.© 2003 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.

Appendix: C#, VB.NET Interop New Developer Features

Primary Interop Assemblies (PIA)Visio 2003 type library

Save As Web type library

Visio 2003 drawing control type library

Global Assembly Cache (GAC) supportInstallation and registration as part of product setup

Requires .NET Framework 1.1

Visio 11 SDK Visual Studio.NET Wizards

Appendix: Deploying the ControlVisio Component

Silent mode installA custom Setup.exe application to drive Visio setup program. Pass in “silent install” mode parameter for corporate deploymentDim WshShellSet WshShell = CreateObject("WScript.Shell")WshShell.Exec("setup.exe /qn PIDKEY=<your-key-goes-here>

INSTALLLEVEL=20")

Standard Windows Installer behavior

Custom scriptLaunch Visio product MSI directlyDim WshShellSet WshShell = CreateObject("WScript.Shell")WshShell.Exec("msiexec.exe /qn /i <path_to_the_msi >

PIDKEY=<your-key-goes-here> INSTALLLEVEL=20")