Visio 2003 development entry

xiaoxiao2021-03-06  40

Release Date: 11/3/2004

| Update Date: 11/3/2004

Saul Candib

Microsoft Corporation

Applicable to:

Microsoft Office Visio Standard 2003

Microsoft Office Visio Professional 2003

Summary: Developing a Microsoft Office Visio 2003 extended application or a variety of methods integrated with other applications. This article outlines the techniques required to develop Visio while providing links to specific information and sample downloads. (This article contains some links to English sites.)

This page

Introduction Solution Development Shape Development Visio Graphic Controls Development Save As Web Page Developing XML Development Visio 2003 SDK Other Resources

introduction

Extending Microsoft Office Visio 2003 has a variety of programming, or it can be integrated with other applications. Development of Microsoft Office Visio 2003 Standard Edition or Microsoft Office Visio 2003 Professional Edition can take the following form:

• Solution development • Shape development • Visio graphics control development • Save as web page development • XML development

This article describes the above-mentioned development forms and provides some document links and sample code links. Through these links, you can learn how to develop Visio.

Back to top

Solution development

The Visio solution typically combines the Visio shape of the analog reality world with the Visio program that solves the specific graphical problem. The Visio program helps you create graphics, analyze graphics, deliver information between graphics and external data sources or identify events that occur in applications.

When you create a Visio solution, you can use the following techniques separately or combine them:

• Microsoft Visual Basic for Applications (VBA) Using the Built-in VBA Macro Recorder and Integration Development Environment (IDE) (called Visual Basic Editor), you can create some simple macros to automatically process repetitive tasks. You can also develop simple or complex extensions to integrate Visio with other applications (such as Microsoft Office Word 2003 on the Microsoft Office system, and Microsoft Office Excel 2003, and other hundreds of applications containing VBA). VBA provided in Microsoft Office Visio 2003 Automation Reference Help built into Visio Standard and Visio Professional, which records and explains how to use properties, methods, events, and objects in the Visio object model. Automation Reference can also be found in Microsoft Office Visio 2003 SDK. • The COM Add item and the Visio Accessories Component Object Model (COM) add-on provides new features for Visio (for example, the custom dialog accessible through the new menu item), has also added some new features. The Visio attachment is a user-written program that can extend the functionality of Visio. Attachments can be used in two file types, one is a Visio library file (.vsl file, this is a Visio-specific dynamic link library), and the other is a separate executable program (.exe file). Annex can also be implemented in two ways. Microsoft Office Visio 2003 SDK contains two wizards to help you create attachments and add-on: Microsoft Visual Studio .NET 2003 Visio Add-in Wizard, which uses Microsoft Visual Studio .NET 2003, Microsoft Visual Basic .NET, Microsoft Visual C # or Microsoft Visual C creates a shell attachment or load item; Microsoft Visual Studio 6.0 C Visio Add-on or Add-in Wizard, which creates a shell attachment or loading item using Microsoft Visual C 6.0. In addition, Visio 2003 SDK also includes some Microsoft Visual Basic 6.0 project templates for creating executables as an attachment in Visio and a COM add-in that will run in Visio. Based on these templates contain basic Visio support to help speed up the development process while also showing some suggestions for creating Visio accessories and add-in in Visual Basic. For more information on creating attachments and COM addresses in Visio, see the About Microsoft Office Visio Add-Ons and COM Add-IS in Visio 2003 SDK. • Hosting code You can use the COM-based Visio object model with Visio 2003, a managed code assembly developed based on Visual Basic .NET, C # and other languages ​​developed by Visual Basic .NET, C # and using Microsoft .NET Framework. Integrate with the application. Normally, Visio 2003 PIA is installed when installing Visio on your computer.

To determine if PIA is installed, you can open the global assembly cache as follows: On the Windows Start menu, click Run, type "assembly" in the drop-down list box and click OK. This will open the assembly window, from which you can see the listed Microsoft.Office.Interop.Visio and other PIAs for Microsoft Office 2003 applications installed on your computer. If you don't see Visio Pia in the global assembly cache, see How To: Install Office Primary Interop Assemblies. For more information on using the .NET Framework Extension Microsoft Office application, see Managed Code and Office Programming With Visual Studio .NET. Visio 2003 SDK contains a Managed Code Tutorial (Hosting Code Tutorial). This tutorial consists of four lessons, you can guide you to complete the creation process of Visio COM add-on. Each lesson is explained by a COM loading item sample application written in Visual Basic .NET. The COM load item automatically generates a flowchart according to the end user data collected by the custom Visio wizard. Each lesson is a further explanation of the sample application based on the previous lesson. • Integrate Visio with other applications By integrating Visio with other Office applications, you can create a perfect solution. For example, to learn how to integrate Visio with Microsoft SharePoint products and technology, see Integrating Microsoft Office Visio 2003 with Microsoft SharePoint Products and Technology. Back to top

Shape development

Each of the Microsoft Office Visio 2003 (including each document, page, style, shape, group, group, key, main program, object, auxiliary line, and assist point from other programs) corresponds to a Shapesheet electronic Tables for information for storing the object. This spreadsheet contains the height, width, angle, color, and other attribute information that determines the appearance and behavior of the shape.

Shape developers need precise control of the appearance and behavior of the created shape. As a shape developer, you can change its default behavior and enhance its feature by editing shaped Shapesheet (can be accessed by programming, you can also access the default behavior and enhance its functionality.

For more information on shape development, see Shapesheet Reference, which is built into Visio or found from Visio 2003 SDK.

SDK also includes ShapeStudio, which is a development tool and efficiency tool for Visio shape design and developers. ShapeStudio provides a custom work environment in Visio, which provides convenience for project management, specification, and smartshape design, development, and verification. All data related to the ShapeStudio project is stored separately in a database, rather than being stored in the Visio document, making it easier to perform shape maintenance and version control.

For more information on ShapeStudio, see the ShapeStudio documentation in Visio 2003 SDK download.

Back to top

Visio graphic control development

Microsoft Office Visio Drawing Control 2003 is a Microsoft ActiveX control that provides a Visio Object Model (API) and user interface full access capabilities, so you can integrate Visio graphics and user interfaces into your application, customize The appearance and make your application automatically have Visio's features. Visio graphics controls will be installed with Microsoft Office Visio Standard 2003 and Microsoft Office Visio Professional 2003, will be installed together when installing Visio. For more information on Visio graphics controls, see the Automation Reference in Visio SDK. For more information, see the following MSDN article:

• Programming with the Microsoft Office Visio ActiveX Control • Host An Intective Visio Drawing Surface In .Net Custom Clients

For managed code development, Visio graphics control has its own PIA, namely Microsoft.Office.Interop.visocx.

Back to top

Save as web page development

Visio 's "Save As Web Page" feature provides users with a simple way of publishing a Visio document on the Web. "Save As Web Page" API allows you to access this feature by programming, allowing you to save the Visio graphics as a web page without having to display the Save As Web Page dialog box in the user interface. For more information, see the Help Topics in the Save As Web Page Reference in Visio SDK.

For managed code development, Visio saves as a web page API has its own PIA, namely Microsoft.Office.Interop.Visio.saveasWeb.

Back to top

XML development

XML (Scalable Markup Language) is a universal format for structured documents and data on the Web. DataDiagrammingXML (previously known as an XML for Visio) file is an XML document that contains all components of the Microsoft Office Visio binaries. As you can use "Automation" or access the Visio document with the "Shapesheet" window, you can use XML and various support tools to access data in the DATADIAGRAMMINGXML file.

For more information on developing XML in Visio, see XML Developer Center on MSDN. You can also download the entire Office XML Reference Schemas file from the Microsoft site, including the DataDiagrammingXML architecture.

Back to top

Visio 2003 SDK

You can download the full Visio 2003 SDK from the Microsoft Site. Fully download includes the following:

• Tool customization tools and extensions, which enhance development efficiency and reduce development time. These tools include Persistent Events, Print Shapesheet, Solution Publishing, and Event Monitor tools, including ShapeStudio, which is a full user interface for developing a Visio shape. The SDK also includes the Wizard for creating a new Visio attachment and component object model (COM) add-in using Microsoft Visual C #, Microsoft Visual Basic .NET, Microsoft Visual C , and Microsoft Visual Basic. • Sample Applications You can use sample applications to develop experimental development and familiar with Visio's various features. The original intention of writing these example applications is to illustrate various situations developed on the Visio platform, and can also be used as the starting point for custom application development. These examples include FlowChart, Tree View, and Office Plan sample applications and Managed Code Tutorial. • Code Base Manager This is a database that stores methods, classes, classes, classes, classes, and processes that use Microsoft Visual C #, Microsoft Visual Basic .NET and Microsoft Visual Basic 6.0 development Visio. You can view and copy all code examples provided in Microsoft Code Librarian Viewer. • Library files are used to store the API and C library help files provided by Visio. • Document complete Visio references and articles, including Automation Reference, Shapesheet Reference, Save As Web Page Reference, and XML Reference. Back to top

Other resources

The issue of Visio 2003 developed exceeded the Visio range to be discussed herein. Microsoft Office Developer Center provides a variety of information about all products in the Microsoft Office system and integration with other products. Visio Developer Center provides a variety of technical articles, updated SDK documents, links to the Visio newsgroup.

Various third-party books also provide useful information about using Visio.

Of course, for any developers developed using Visio 2003, it is also very important to understand Visio itself. The Visio homepage on Microsoft Office Online provides a number of resources that involve help, training, templates, articles, case analysis, downloads, and information about how to use Visio 2003.

© 2004 Microsoft Corporation All rights reserved. all rights reserved. Use the specification.

转载请注明原文地址:https://www.9cbs.com/read-64386.html

New Post(0)