Working with OLE


OLE provides the easiest way to place Visio shapes or diagrams into Word, Excel, PowerPoint, and other applications that support the Windows Clipboard and OLE. When you use OLE to place Visio shapes or diagrams, you maintain a connection with Visio, so you can edit the shapes or diagrams using Visio tools and features. OLE is just a broad name for the technology that allows you to use information from one application in another. All the Office System applications support OLE, which means that you can insert and edit Office documents within Visio, or add Visio diagrams to Office documents, as Figure 7-1 shows. Although OLE has been around for a while, you might not be familiar with the term. If you’ve ever copied and pasted information from one program into another, or used the Paste Special command in an Office application, you’ve probably taken advantage of OLE.

click to expand
Figure 7-1: With OLE, you can embellish an ordinary Word memo by linking or embedding a Visio diagram in the document.

OLE boils down to linking and embedding, both of which support editing in place. Which technique should you use? It depends on the number of documents that will include the Visio information and how frequently you expect to revise the information.

  • Link a saved Visio diagram when you want to use it in one or more other documents. When you update the original Visio file, the diagram will be updated in every document that contains it. Likewise, when you update the diagram within another document, the original and any other linked diagrams will also be updated.

  • Embed an existing Visio shape or drawing in another document when you want to be able to edit the Visio information without leaving the application’s document. This is probably the most common way to place Visio information into another program— pasting Visio shapes into an Office document automatically embeds them.

  • Create a Visio diagram in place when you don’t want to switch between different application windows. You can start Visio from within another application to add and edit shapes—and if you’re working in an Office document, plenty of Visio tools are available to use. Your shapes are saved with the application’s document, not as a separate Visio drawing file.

One benefit of linking instead of embedding is that the document in which you use the Visio data stores only a reference to the Visio data. This keeps your document file size smaller and more manageable. However, applications keep track of links using the file name and location of each linked file—the link will be broken if you change the file name of the original diagram or move the files.

The main advantage of embedding is that you can maintain separate versions of a Visio diagram for different purposes. An embedded shape or diagram isn’t linked to the original Visio drawing file, so you can make changes there that don’t affect any of the embedded copies. In addition, an embedded diagram is available even if the original file is not. For example, you can print a Word document that contains an embedded Visio diagram from any computer, whether or not Visio is installed and the original Visio diagram file is on the computer. Of course, because the entire Visio diagram must be embedded in the document, the document’s file size can increase dramatically.

You can also embed, link, and import objects created in other programs into Visio. The basic principles are the same. For details, see “Embedding and Linking Microsoft Office Documents in Visio,” page 222.

start sidebar
Visio Has a Viewer!

New Feature Visio now has a viewer that enables people who do not have Visio installed on their computer to view Visio drawings. The Visio Viewer is an ActiveX control that allows users to open and view Visio drawings. When a Visio drawing is opened with the viewer it is displayed in a Microsoft Internet Explorer (version 5.0 or later) window. You can download the viewer at the Microsoft Download Center.

There are, however, several other ways you can share Visio diagrams with users who don’t have Visio. You can export the diagram in a graphic format that can be placed into another application. For example, you can export a Visio diagram as a bitmap that can be inserted into a Word document or other application. You can also save the diagram as a Portable Document Format (PDF) file that can be viewed in Adobe Acrobat Reader or save the diagram as an HTML file that can be viewed in any Web browser. For details about these options, see the corresponding topics later in this chapter.

end sidebar

start sidebar
Inside Out
Import your text from Word

Visio does many things well, but it probably wouldn’t be your first choice for word processing. For text-based documents, you’ll save yourself some headaches if you create the diagrams in Visio, the words in another program, and then bring them all together using OLE. You can embed Visio diagrams in your word processor document or embed the text from your document in Visio.

end sidebar




Microsoft Office Visio 2003 Inside Out
Microsoft Office Visio 2003 Inside Out (Inside Out (Microsoft))
ISBN: 0735615160
EAN: 2147483647
Year: 2003
Pages: 209

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net