home *** CD-ROM | disk | FTP | other *** search
/ Chip: 25 Years Anniversary / CHIP_25Jahre_Jubilaeum.iso / downloads / 401065 / WPO11 / Data1.cab / _EF62209A197F4F3F8249E7C97090FDFD < prev    next >
Text File  |  2003-03-07  |  20KB  |  560 lines

  1. Linking and embedding
  2.  
  3. WordPerfect supports object linking and embedding (OLE). Object linking and embedding is the process of inserting an object created in one application (the server) into another application (the client). An object can be text, a graphic, a chart, a spreadsheet, a sound or video clip, or any file created by an OLE-compliant application. To share information with Windows applications created before Windows 95, you  must use Dynamic Data Exchange (DDE) instead of OLE.
  4.  
  5. In this section, you'll learn about
  6.  
  7.   linking and embedding objects
  8.   
  9.   linking and embedding data created in other formats as regular text
  10.   
  11.   linking and embedding TextArt images
  12.   
  13.   linking and embedding video
  14.   
  15.   linking, embedding, and using sound
  16.   
  17.   changing links
  18.   
  19.   updating links and editing OLE objects
  20.   
  21.   changing and hiding link icons
  22.   
  23. Linking and embedding objects
  24.  
  25. WordPerfect lets you link and embed objects from any application registered with Windows as being OLE- or DDE-compliant. You can also link or embed selected information from a file.
  26.  
  27. When you link information, it resides in the source (server) file where it was created. It displays in WordPerfect (the client file) in a graphic frame or as an icon. If you change the object in the source file, you can update the link in the WordPerfect file too. Linking is useful when you want to be able to edit an object in a single location and have the edits reflected in the linked locations as well. The server application is used to create and edit linked OLE objects, either in the source application or in WordPerfect. If you want to edit DDE linked information, the server application must be used.
  28.  
  29. When you embed an object in a WordPerfect document, it is contained completely in the document file. The information is copied to WordPerfect but retains all the properties of the source application. An embedded object increases the size of a file and is not updated when you make changes in the source file. Embedding is useful if you want to insert an object and not have it change when its source file changes. You can embed an object in WordPerfect by creating a new object or by dragging the object into WordPerfect. You can embed multiple copies of an object by creating a Windows scrap file. You can also embed documents located on the Internet in a WordPerfect file as an object.
  30.  
  31. To link or embed a file as an object
  32.  
  33. 1    Click Insert  Object.
  34.  
  35. 2    Enable the Create from file option.
  36.  
  37. If you want to link an object, enable the Link check box.
  38.  
  39. 3    Type a path and filename in the File box.
  40.  
  41. If you want to display the object as an icon, enable the Display as icon check box.
  42.  
  43. Notes
  44.  
  45.   If the Display object as icon in document check box is disabled, a DDE link is created.
  46.   
  47.   You can also link and embed HTML documents that use a standard filename, also known as the Uniform Naming Convention (UNC).
  48.   
  49. To link or embed selected information as an object
  50.  
  51. 1    Select the information that you want to embed in a WordPerfect document.
  52.  
  53. 2    Click Edit  Copy.
  54.  
  55. 3    In WordPerfect, click where you want to insert the information.
  56.  
  57. 4    Click Edit  Paste special.
  58.  
  59. 5    Enable one of the following options:
  60.  
  61.   Paste-embeds the information
  62.   
  63.   Paste link-links the information
  64.   
  65. 6    From the As list box, choose a format for the embedded information.
  66.  
  67. Notes
  68.  
  69.   If the Paste link option is disabled, the source application does not support linking, or the application is not registered properly with Windows. In this case, you can only insert a copy of the information. For information about copy and paste, see "Cutting, copying, and pasting text and graphics."
  70.   
  71.   If the information is embedded rather than copied, the Result area indicates that the information can be activated by the source application.
  72.   
  73. To embed an object by dragging
  74.  
  75. 1    Open the WordPerfect document into which you want to drag the object.
  76.  
  77. 2    Select an object that you want to drag into the WordPerfect document.
  78.  
  79. 3    Hold down CTRL, and drag the object to the WordPerfect icon on the Windows taskbar.
  80.  
  81. WordPerfect opens as the active window.
  82.  
  83. 4    Position the object in the WordPerfect document, and release the mouse button and CTRL.
  84.  
  85. Tip
  86.  
  87.   If WordPerfect and the other application are displayed, you can drag the object from the other application into the WordPerfect document.
  88.   
  89. To embed a new object
  90.  
  91. 1    Click Insert  Object.
  92.  
  93. 2    Enable the Create new option.
  94.  
  95. 3    Choose an object type from the Object type box.
  96.  
  97. 4    Create the object.
  98.  
  99. 5    Click outside the OLE box.
  100.  
  101. To embed a scrap file
  102.  
  103. 1    Select text or an object.
  104.  
  105. 2    Resize the application window so that you can see part of the Windows desktop.
  106.  
  107. 3    Drag the object to the Windows desktop or to any folder in Windows Explorer.
  108.  
  109. The dragged object becomes a file with the word Scrap in its filename.
  110.  
  111. 4    Drag the scrap file into any open document.
  112.  
  113. Note
  114.  
  115.   If you drag a scrap file into WordPerfect or another application that support the .rtf file format, the scrap file is inserted as text. Otherwise, it is inserted as an embedded OLE object. For information about objects, see "Linking and embedding objects."
  116.   
  117. To embed Internet documents
  118.  
  119. 1    Click Insert  Object  Create new.
  120.  
  121. 2    From the Object type list box, choose an object type for an OLE-enabled browser.
  122.  
  123. 3    Click OK.
  124.  
  125. 4    Type the URL of the Internet document in the Location box.
  126.  
  127. 5    Click outside the Internet object to return to the document window.
  128.  
  129. If you want to update the document, double-click the Internet document.
  130.  
  131. Note
  132.  
  133.   The Microsoft Windows dialog box used to insert objects does not recognize Universal Resource Locators (URLs), such as http://www.corel.com, as valid filenames.
  134.   
  135. Tip
  136.  
  137.   You can also use browser bookmarks to browse to a Web site. For more information, see the documentation for your browser.
  138.   
  139. Linking and embedding data created in other formats as regular text
  140.  
  141. WordPerfect lets you link or embed spreadsheet, database, and ASCII- or ANSI-delimited text files as regular WordPerfect text. The information displays without a frame as a seamless part of a WordPerfect document.
  142.  
  143. To link or embed spreadsheet data as regular text
  144.  
  145. 1    Click where you want to insert the data.
  146.  
  147. 2    Click Insert  Spreadsheet/database, and click one of the following:
  148.  
  149.   Create link-links spreadsheet data
  150.   
  151.   Import-embeds spreadsheet data
  152.   
  153. 3    Choose Spreadsheet from the Data type list box.
  154.  
  155. 4    Choose Text from the Import as list box.
  156.  
  157. 5    Type a path and filename in the Filename box.
  158.  
  159. 6    From the Named ranges list, choose a named range to convert.
  160.  
  161. You can also    
  162.  
  163. Choose a range to convert    Type a range in the Range box.
  164.  
  165. Import to a table    Choose Table from the Import as list box.
  166.  
  167. Create a merge data text file    Choose Merge data file from the Import as list box.
  168.  
  169. Note
  170.  
  171.   You must remove all passwords in order to import a password-protected file.
  172.   
  173. To link or embed a database as regular text
  174.  
  175. 1    Click where you want to insert the data.
  176.  
  177. 2    Click Insert  Spreadsheet/database, and click one of the following:
  178.  
  179.   Create link-links database data
  180.   
  181.   Import-embeds database data
  182.   
  183. 3    Choose a database format from the Data type list box.
  184.  
  185. 4    Choose Text from the Import as list box.
  186.  
  187. 5    Type a path and filename in the Filename box.
  188.  
  189. 6    From the Fields box, choose the fields to import.
  190.  
  191. If you want to use fieldnames as column headings, enable the Use field names as headings check box.
  192.  
  193. If you want to specify field and record delimiters, click Query.
  194.  
  195. You can also    
  196.  
  197. Import to a table    Choose Table from the Import as list box. If you want to automatically size table columns, enable the Size table columns to fit data after import check box.
  198.  
  199. Create a merge data text file    Choose Merge data file from the Import as list box.
  200.  
  201. Notes
  202.  
  203.   If you are importing an SQL database, you must first log in to the database server.
  204.   
  205.   You must remove all passwords in order to import a password-protected file.
  206.   
  207. To link or embed a delimited text file
  208.  
  209. 1    Click where you want to insert the text file.
  210.  
  211. 2    Click Insert  Spreadsheet/database, and click one of the following:
  212.  
  213.   Create link-links a text file
  214.   
  215.   Import-embeds a text file
  216.   
  217. 3    Choose ASCII delimited text from the Data type list box.
  218.  
  219. 4    Choose Text from the Import as or Link as list box.
  220.  
  221. 5    Type a path and filename in the Filename box.
  222.  
  223. 6    Choose options for delimiters and characters.
  224.  
  225. If you want to create fields based on the data in the first line, enable the First record contains fieldnames check box.
  226.  
  227. You can also    
  228.  
  229. Import to a table    Choose Table from the Import as list box. If you want to automatically size table columns, enable the Size table columns to fit data after import check box.
  230.  
  231. Create a merge data text file    Choose Merge data file from the Import as list box.
  232.  
  233. Notes
  234.  
  235.   Each record must contain the same number of delimited characters (fields).
  236.   
  237.   If you create a merge data text file, the imported fieldnames are based on the data in the first line.
  238.   
  239. Linking and embedding TextArt images
  240.  
  241. An image created with TextArt is an OLE object. You can link or embed an existing TextArt image or create a new TextArt image in a WordPerfect document. For more information about working with TextArt, see Using TextArt in the WordPerfect online Help.
  242.  
  243. To link or embed a TextArt image
  244.  
  245. 1    Select a TextArt image.
  246.  
  247. 2    Click Edit  Copy.
  248.  
  249. 3    In WordPerfect, click where you want to insert a TextArt image.
  250.  
  251. 4    Click Edit  Paste special.
  252.  
  253. 5    Enable one of the following options:
  254.  
  255.   Paste-embeds a TextArt image
  256.   
  257.   Paste link -links a TextArt image
  258.   
  259. 6    From the As list box, choose a format for the embedded image.
  260.  
  261. To create an embedded TextArt image
  262.  
  263. 1    Click where you want to insert a TextArt image.
  264.  
  265. 2    Click Insert  Object.
  266.  
  267. 3    Click Create new.
  268.  
  269. 4    Choose TextArt document from the Object type list box.
  270.  
  271. 5    Click OK.
  272.  
  273. 6    Create a new TextArt image.
  274.  
  275. 7    Click outside the OLE box.
  276.  
  277. Note
  278.  
  279.   For information about working with TextArt, see Using TextArt in the WordPerfect online Help.
  280.   
  281. Linking and embedding video
  282.  
  283. WordPerfect lets you link or embed a video clip as an OLE object. When you link the file, you can update the video clip when the source file changes. When you embed the file, you insert a copy of it in a document. For information about updating a linked object, see "Updating links and editing OLE objects."
  284.  
  285. The type of video formats available depends on what is registered in the Windows Registry as being OLE-compliant. Formats include Video for Windows (.avi files) and may also include QuickTime Movie and Active Movie types. For more information, see the documentation for Windows and the video application.
  286.  
  287. To link or embed a video clip
  288.  
  289. 1    Click Insert  Object.
  290.  
  291. 2    Click Create from file.
  292.  
  293. If you want to link a video clip, enable the Link check box.
  294.  
  295. 3    Type a filename in the File box.
  296.  
  297. If you want to display a video clip as an icon, enable the Display as icon check box.
  298.  
  299. Notes
  300.  
  301.   By default, WordPerfect represents the video clip in a document by displaying the first frame of the video clip.
  302.   
  303.   Double-clicking a video clip plays the clip. Once in play, a control bar displays across the bottom of the file.
  304.   
  305. Linking, embedding, and using sound
  306.  
  307. You can link or embed a sound clip in a WordPerfect document. You can also play or record a sound clip in a document. If you want to rename a linked or embedded sound clip, you can edit its description. If you want to type the speech recorded in a sound clip, you can transcribe the sound clip using WordPerfect.
  308.  
  309. You can add digital (.wav) and MIDI (.mid or .rmi) sound files to WordPerfect documents. This allows you to include sound effects, music, and voice recordings and create multimedia documents for presentations, educational materials, product tutorials, and more.
  310.  
  311. To use sound in a WordPerfect document, you must have a sound device (usually a sound card) properly installed on your computer. If you want to create or play sound files, you will also need a microphone or another input device as well as an application for recording sound.
  312.  
  313. Depending on your hardware configuration, you can use two types of sound files with WordPerfect: MIDI (Musical Instrument Digital Interface) or digital audio. With the proper hardware, you can create sound files. You can also purchase sound files to use with WordPerfect. Before you purchase either MIDI or digital files, make sure that the files are compatible with your sound device.
  314.  
  315. To link or embed a sound clip
  316.  
  317. 1    Click Insert  Sound.
  318.  
  319. 2    Click Insert.
  320.  
  321. 3    In the Name box, type a name or brief description of the sound clip.
  322.  
  323. 4    In the File box, type the filename of the sound file.
  324.  
  325. 5    Enable the Store in document option.
  326.  
  327. If you want to link a sound clip, enable the Link to file on disk check box.
  328.  
  329. Note
  330.  
  331.   The sound file is saved as part of the document, increasing the document size.
  332.   
  333. To play a sound clip
  334.  
  335. 1    Click Insert  Sound.
  336.  
  337. 2    Choose a sound clip from the Sound clips in document list.
  338.  
  339. 3    Click the Play button.
  340.  
  341. You can also    
  342.  
  343. Fast forward a sound clip    Click the Fast forward button.
  344.  
  345. Rewind a sound clip    Click the Rewind button.
  346.  
  347. Pause a sound clip    Click the Pause button.
  348.  
  349. Tips
  350.  
  351.   You can also click the Sound button in the left margin of the document to play the sound clip.
  352.   
  353.   You can also double-click the sound clip to play it.
  354.   
  355. To edit the description of a linked or embedded sound clip
  356.  
  357. 1    Click Insert  Sound.
  358.  
  359. 2    Click Edit description.
  360.  
  361. 3    Type a description in the Name box.
  362.  
  363. To transcribe a sound clip
  364.  
  365. 1    Click Insert  Sound.
  366.  
  367. 2    Click Transcribe.
  368.  
  369. 3    Click the Play button on the Sound toolbar.
  370.  
  371. You can also    
  372.  
  373. Fast forward a sound clip    Click the Fast forward button on the Sound toolbar.
  374.  
  375. Rewind a sound clip    Click the Rewind button on the Sound toolbar.
  376.  
  377. Replay the last sequence of the sound clip    Click the Replay button on the Sound toolbar.
  378.  
  379. To record a sound clip
  380.  
  381. 1    Click Insert  Sound, and click Record.
  382.  
  383. 2    Record the sound using a microphone or other input device.
  384.  
  385. 3    Click File  Save as.
  386.  
  387. 4    Type a name for the clip in the Filename box.
  388.  
  389. 5    Close the Sound Recorder.
  390.  
  391. Note
  392.  
  393.   Sound is recorded by using the Windows Sound Recorder. For more information, see the Windows documentation.
  394.   
  395. Changing links
  396.  
  397. WordPerfect lets you update the source of a linked object, or a linked spreadsheet or database inserted as regular text. For example, if you move the source file, you can specify its new location. You can also break a link and keep the current copy of the information in a document. This may be useful if you do not want to update a link with its source file. If the linked information is not needed anymore in a WordPerfect document, you can delete the link and the linked information.
  398.  
  399. To change the source of a linked object
  400.  
  401. 1    Deselect all objects in the document.
  402.  
  403. 2    Click Edit  Links.
  404.  
  405. 3    Choose the object from the Links list box
  406.  
  407. 4    Click Change source.
  408.  
  409. 5    Choose the drive and folder where the file is stored.
  410.  
  411. Note
  412.  
  413.   Most objects are inserted as OLE links. Whether an object is inserted as an OLE or DDE link depends on the registration in Windows of the source application, and the format you selected when you inserted the object.
  414.   
  415. Tip
  416.  
  417.   If you want to view the linked object, click Open source.
  418.   
  419. To change the source of a spreadsheet or database linked as regular text
  420.  
  421. 1    Click between the link markers in a WordPerfect document.
  422.  
  423. 2    Click Insert  Spreadsheet/database  Edit link.
  424.  
  425. 3    Choose a format from the Data type list box.
  426.  
  427. 4    Choose a format for the linked information from the Import as list box.
  428.  
  429. 5    Type the path and filename in the Filename box.
  430.  
  431. Note
  432.  
  433.   When you change or update a link, you lose formatting made to the data in WordPerfect.
  434.   
  435. To break a link and keep the information in a document
  436.  
  437. 1    Click Edit  Links.
  438.  
  439. 2    Choose a link from the Links list box.
  440.  
  441. 3    Click Break link.
  442.  
  443. Tip
  444.  
  445.   You can break a DDE link by deleting the DDE Link codes in the Reveal Codes window. For more information about Reveal Codes, see "Displaying Reveal Codes."
  446.   
  447. To delete a link and the linked information
  448.  
  449. 1    Select a link.
  450.  
  451. 2    Click Edit  Cut.
  452.  
  453. Tip
  454.  
  455.   You can also delete a link and its linked information by deleting the [Box:Linked Object] code in the Reveal Codes window.
  456.   
  457. Updating links and editing OLE objects
  458.  
  459. WordPerfect lets you update links to keep the information in a WordPerfect document current with its source file. You can manually update a linked spreadsheet or database as regular text, or have WordPerfect automatically update it when you open the document. You can also manually update a linked or embedded OLE object in a WordPerfect document, or have WordPerfect automatically update it when you open the document. By default, WordPerfect automatically updates the link when you open the document.
  460.  
  461. An embedded object is a copy of the source information. Although there is no link between the object embedded in a WordPerfect document and the source file, the embedded object retains the properties of its source application. Using the controls of the source application from WordPerfect, you can update an embedded object by editing it.
  462.  
  463. To manually update a spreadsheet or database linked as regular text
  464.  
  465. 1    Save the source file in the source application.
  466.  
  467. 2    Click Insert  Spreadsheet/database  Update.
  468.  
  469. To update a spreadsheet or database linked as regular text when you open the document
  470.  
  471. 1    Save the source file in the source application.
  472.  
  473. 2    Click Insert  Spreadsheet/database  Options.
  474.  
  475. 3    Enable the Update when document opens check box.
  476.  
  477. To update a linked object manually
  478.  
  479. 1    Click Edit  Links.
  480.  
  481. 2    Choose a link from the Links list box.
  482.  
  483. 3    Click Manual.
  484.  
  485. 4    Click Update now.
  486.  
  487. Note
  488.  
  489.   To update a DDE link, the source file must be open in the source application.
  490.   
  491. To update a linked object when you open a document
  492.  
  493. 1    Click Edit  Links.
  494.  
  495. 2    Choose a link from the Links list box.
  496.  
  497. 3    Click Automatic.
  498.  
  499. To edit a linked or embedded OLE object
  500.  
  501. 1    Select the object.
  502.  
  503. 2    Click Edit  [object name]  Edit.
  504.  
  505. If you want to open the object in a separate window, click Edit  [object name]  Open.
  506.  
  507. 3    Make any changes.
  508.  
  509. 4    Click outside the object box.
  510.  
  511. Note
  512.  
  513.   You can edit most embedded objects by double-clicking them. However, if you double-click a sound or video clip, the clip plays.
  514.   
  515. Tip
  516.  
  517.   You can also edit an object by right-clicking the object, and clicking [object name]  Edit.
  518.   
  519. Changing and hiding link icons
  520.  
  521. When you display a linked or embedded object as an icon, WordPerfect provides a default icon and label. You can enter a different label and choose an icon from a file saved in a .ico, .exe, or .pll file. This must be done when you link or embed the object.
  522.  
  523. For a spreadsheet or database linked as regular text, you can hide the link markers shown in the margin.
  524.  
  525. To choose the icon or label displayed for a linked or embedded object
  526.  
  527. 1    Click Insert  Object.
  528.  
  529. 2    Enable the Create from file option.
  530.  
  531. 3    Type a path and filename in the File box.
  532.  
  533. If you want to link an object, enable the Link check box.
  534.  
  535. 4    Enable the Display as icon check box.
  536.  
  537. 5    Click Change icon.
  538.  
  539. 6    In the Change icon dialog box, enable the From file option, and type the path and filename containing the new icon in the box beside it.
  540.  
  541. 7    Press TAB.
  542.  
  543. 8    Click the icon you want displayed.
  544.  
  545. 9    In the Label box, type a name for the icon.
  546.  
  547. To hide link icons for a spreadsheet or database linked as regular text
  548.  
  549. 1    Click Insert  Spreadsheet/database  Options.
  550.  
  551. 2    Disable the Show link icons check box.
  552.  
  553. Note
  554.  
  555.   The link icons do not appear when you print even if they display in the document window. 
  556.   
  557.  
  558.  
  559.  
  560.