OriginLab Corporation - Scientific Graphing and Data Analysis Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis

Pasting or Embedding Graphs in Other Applications

There are two ways you can include Origin graphs in other application's files -- as a picture or using OLE (Object Linking and Embedding):

When you include your graph in a destination file as an OLE object, Origin acts as an OLE server.

Contents

Embedding vs. Linking

There are two methods of sharing Origin graphs with OLE-compliant applications: embedding your graph or creating a link to your graph. The two are distinguished primarily by the storage location of the graph's supporting data. Both allow editing of the graph using Origin's tools.

Embedding your graph in another application

Origin provides three methods to embed your graph in an OLE-compliant file.

The graph does not have to be saved to a graph window (*.OGG) or a project (*.OPJ) file (the contents of the current Origin session do not have to be saved).

To embed the active graph window in a destination file:

  1. In Origin, select Edit:Copy Page.
  2. In the destination application (such as Microsoft® Word), select Edit:Paste Special. In Word, this menu command opens the Paste Special dialog box.
  3. Select Origin Graph Object from the As list box.
  4. Select the Paste radio button.
  5. Click OK.

Your graph displays as an object in the destination file.

Note: Exactly the same result is produced by either of the following:
  • CTRL + C (Origin) => CTRL + V (MS Word).
  • Edit:Copy Page (Origin) => Edit:Paste (MS Word).

The graph must already be saved to a graph (*.OGG ) window file.

  1. In the destination application (such as Word), select Insert:Object. In Word, this menu command opens the Object dialog box.
  2. Select the Create from File tab.
  3. Click Browse. This action opens the Browse dialog box.
  4. Select your *.OGG file.
  5. Click OK.
  6. In the Object dialog box, make sure the Link to File check box is cleared.
  7. Click OK.

Your graph displays as an object in the destination file.

To create, and simultaneously embed, an Origin graph object in another application:

  1. In the destination application (such as Word), select Insert:Object. In Word, this menu command opens the Object dialog box.
  2. Select the Create New tab.
  3. Select Origin Graph from the Object Type list box.
  4. Click OK. This action creates a new instance of Origin displaying a graph in a Documentn window.
  5. Make this new instance of Origin the active application.
  6. Create your graph (in the new program instance).
  7. With your graph window active, select File:Update Documentn.
  8. Select File:Exit and Return to Documentn. This menu command closes the new instance of Origin and returns activity to the destination application (in this example, Word).

Editing an embedded graph

When an Origin object is embedded in a OLE-compliant file, it is editable using Origin's tools.

  1. Double-click the inserted graph.
  2. This opens an instance of Origin; the graph window displays in the workspace and is ready for editing.
  3. Make changes to the graph.
  1. Select File:Update DestinationApplication.
  1. Select File:Exit and Return to DestinationApplication.

As an alternative, Origin objects inserted into a destination file can be edited without leaving the destination application. This editing method works by in-place activation of a subset of Origin's graph editing tools.

To enable in-place activation:

  1. From the Origin menu, select Tools:Options, and choose the Graph tab.
  2. Select the Enable OLE In-place Activation check box.
  3. Click OK to close the dialog box (You are prompted to Save as Origin's startup options?).
  4. You may close Origin.
  1. Double-click on the embedded (not linked) Origin graph in the destination application. The Origin graph is now editable by right-clicking on the selected object and choosing from various Origin shortcut menu commands.
Note: In general, in-place activation is not the recommended method for editing embedded Origin graphs; you do not have access to many useful Origin features - for instance, the workbook windows that contain the data plotted in the graph.

Creating a link to your graph

Two methods exist for creating a link to your graph in an OLE-compliant file:

To create a link to a graph in a saved Origin project file:

  1. Open the project that includes your graph window.
  2. With the graph window active, select Edit:Copy Page.
  3. In the destination application (such as Word), select Edit:Paste Special. In Word, this menu command opens the Paste Special dialog box.
  4. Select Origin Graph Object (or Picture) from the As list box.
  5. Select the Paste Link radio button.
  6. Click OK.

Your graph displays as an object in the destination file.

To create a link to a graph in a saved Origin graph window file:

  1. In the destination application (such as Word), select Insert:Object. In Word, this menu command opens the Object dialog box.
  2. Select the Create from File tab.
  3. Click Browse. This action opens the Browse dialog box.
  4. Select the desired *.OGG file.
  5. Click OK.
  6. In the Object dialog box, select the Link to File check box.
  7. Click OK.

Your graph displays as an object in the destination file.

Editing a linked graph

  1. Opening the Origin project or graph window file that contains the source for the linked object.
  2. Edit the graph using Origin's tools.

Alternatively, you can:

  1. Double-click on the linked object in the destination file. This action opens an instance of Origin displaying the linked #graph in a graph window.

Make changes to the graph in this instance of Origin.

  1. Select Edit:Update Client from the Origin menu bar.

or

  1. Redirect window activity to the destination application.
  2. Update the link within the destination application. For instructions on updating the link, consult the destination application's documentation.