23.1 Pasting or Embedding Graphs in Other ApplicationsPaste-Embed-OLE
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 Origin graph as a picture, it cannot be edited using Origin tools.
- When you include your graph using OLE, the graph can be edited using Origin tools (you can generally edit a picture in a destination application using that application's image editing tools, but this is not the same). When you embed your Origin graph, the destination file contains a copy of the graph object.
When you include your graph in a destination file as an OLE object, Origin acts as an OLE server.
Copy/Paste Graph as Image
Copy grapy to clipboard without using OLE, then the graph will be pasted as a picture in other applications.
-
Click the Copy Graph as Image... button in the mini toolbar of the graph.
or
Select Edit: Copy Graph as Image... in the menu.
or
Right-click on the graph, select Copy: Copy Graph as Image... in the context menu.
or
Active the graph window, press Ctrl + Alt + J.
- In the Copy Graph as Image dialog, you can customize the image format (PNG, EMF, DIB, HTML and JPEG) . And then click the Copy button.
- In the destination application (such as Microsoft® Word), press Ctrl + V key or click Paste button.
Note: Exactly the same result is produced by the following method:
- Ctrl + C (Origin) => Ctrl + V (MS Word).
You can open Preferences> Options> Page to set Ctrl + C to copy OLE.
|
Embed your graph in another application
You can share Origin graphs with OLE-compliant applications by embedding your graph. Once you embed the graphs in other applications, you are allowed to edit the graphs using Origin's tools.
Please be known, when you embed your graph into another application's files, the data are stored in the destination file -- not in the Origin file. Subsequent editing of the graph can be initiated by double-clicking on the graph in the destination file. Chief advantage: This creates a single, self-contained file.
How to Embed Graphs
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(U)) or a project (*.OPJ(U)) file (the contents of the current Origin session do not have to be saved).
- In Origin, select Edit:Copy Page.
- In the destination application (such as Microsoft® Word), select Edit:Paste Special. In Word, this menu command opens the Paste Special dialog box.
- Select Origin Graph Object from the As list box.
- Select the Paste radio button.
- Click OK.
Your graph displays as an object in the destination file.
| Origin 2018 introduced new Unicode-compliant file types, including those for the Origin Project (OPJU) and the Origin Graph (OGGU). If you use Origin 2018 or later to embed an Origin graph in a Word document, then hand that document to a colleague who uses Origin 2017 or earlier, he or she will not be able to edit the Origin graph. See this FAQ for details.
|
| If copying a graph page from an existing OPJU file and then pasting in MS Office e.g. Word, PPT, etc., there is Paste Link option in Paste Special dialog to paste Origin graph as a link to save MS document space. But this doesn't work well with new MS document format (docx, pptx, etc.) When loading such MS document and double clicking Origin graph, multiple instances of Origin will be launched behind the scene and cause slowness. Closing document will not close those hidden Origin sessions either. No such issue with MS document save with old format (doc, ppt, etc.)
|
The graph must already be saved to a graph (*.OGG(U)) window file.
- In the destination application (such as Word), select Insert:Object. In Word, this menu command opens the Object dialog box.
- Select the Create from File tab.
- Click Browse. This action opens the Browse dialog box.
- Select your *.OGG(U) file.
- Click OK.
- In the Object dialog box, make sure the Link to File check box is cleared.
- Click OK.
Your graph displays as an object in the destination file.
- In the destination application (such as Word), select Insert:Object. In Word, this menu command opens the Object dialog box.
- Select the Create New tab.
- Select Origin Graph from the Object Type list box.
- Click OK. This action creates a new instance of Origin displaying a graph in a Documentn window.
- Make this new instance of Origin the active application.
- Create your graph (in the new program instance).
- With your graph window active, select File:Update Documentn.
- 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).
Edit an embedded graph
When an Origin object is embedded in a OLE-compliant file, it is editable using Origin's tools.
- To edit the embedded object in Origin:
- Double-click the inserted graph.
- This opens an instance of Origin; the graph window displays in the workspace and is ready for editing.
- Make changes to the graph.
- To update the embedded object:
- Select File:Update DestinationApplication.
- To close the instance of Origin and return to the destination application:
- Select File:Exit and Return to DestinationApplication.
- To edit the embedded graph using in-place activation:
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:
- From the Origin menu, select Preferences: Options, and choose the Graph tab.
- Select the Enable OLE In-place Activation check box.
- Click OK to close the dialog box (You are prompted to Save as Origin's startup options?).
- You may close Origin.
- To edit the graph using in-place activation:
- 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.
|
|