Microsoft KB Archive/45871
Word: Importing Graphics from Windows
PSS ID Number: Q45871 Article last modified on 01-24-1995
The following are ways to transport graphics from Windows to Word version 5.00:
This is the quickest and most direct way to import a graphic into Word 5.00. To do this, do the following:
- Copy the graphic to the Windows Clipboard in bitmap form. You can check to see if it is a bitmap by loading CLIPBRD.EXE from Windows. From Excel, you can put a bitmap on the Clipboard by holding down the SHIFT key, opening the Edit menu, choosing Copy Picture, selecting As Shown On Screen, and pressing SHIFT+ENTER.
- Run Word 5.00 under Windows. If necessary, close all Windows applications to free memory but do not close Windows itself. The Clipboard will retain the image as long as Windows is running.
- In Word, choose Library Link Graphics and type “clipboard” (without the quotation marks) in the “filename” field. If Word is being run under Windows 3.00, “clipboard” will only be a choice if Windows is in 386 enhanced mode. Standard or real mode will not allow Word to access the Clipboard.
- To verify that the graphic was successfully linked, choose Print Preview. If the graphic appears in the preview, it has been successfully linked.
Note: Word may report either of the following two errors:
No bitmap found in Clipboard
If you receive the above message immediately after linking the graphic, it is an indication that Word’s PIF settings are selected for text rather than graphics. Changing the Program Switch and Screen Exchange settings to Graphics will correct this error.
Cannot link graphic UNTITLED.P00. Word is unable to process information in file
If you receive the above message when changing into Print Preview, it is an indication that the bitmap is too large. The image must be made smaller before placing it into the Clipboard. If you do not want to make the graphic smaller, you may use one of the methods listed below.
Copy the graphic into PC Paintbrush Plus as a bitmap for Windows and save the file in PCX format. This method will retain the color of the image.
This is the best method when memory is short; it will also retain the colors of the picture. If you do not know how to print to a file from Windows, see the “Printing from Windows” section below. To create an HPGL file, do the following:
- Add a filename followed by an equal sign to the [PORTS] section of the WIN.INI file.
- Exit and restart Windows.
- Choose Windows Control Panel.
- Select Setup Connections.
- Connect the HP plotter to the filename and choose OK.
- Choose Setup Printer.
- Make sure that HPPLOT on <<filename>> is selected and press ENTER.
- From the Devices menu for the HP plotter driver, select the HP 7440A ColorPro.
- Put an X in preloaded, and change orientation to landscape.
- Press ENTER and close the Control Panel.
- Print the graphic from the Windows application.
- Start Word (either inside Windows or from DOS) and choose Library Link Graphic.
- Type the name of your print file.
- Type HPGL under File Format.
- Choose Print Preview to view the linked graphic.
PostScript or Printfile
This is another good way to transport graphics when memory is low. The main disadvantages are the following:
- Word must be installed for the same type printer as Windows.
- The graphic will not show in Page Preview. Word will, however, reserve space in the document for the picture, and it will print properly.
To make a Printfile or PostScript file, do the following:
- Print to a file with the appropriate driver from Windows.
- Start Word.
- Link the graphic by pressing ESC, L, L, G.
- Type the name of the print file.
- Under File Format, type “printer” or “PostScript” (without quotation marks).
Printing from Windows
Use the following procedure when printing to a file from Windows:
- Locate the line “Spooler=yes” in the WIN.INI file (it should be near the top of the file). Change the line to read “Spooler=no”. This statement turns off the Windows print spooler.
- Locate the [PORTS] section of the WIN.INI file. This section is usually about one-half to three-quarters of the way through.
- In the [PORTS] section, add the line “C:.PRN=” (without quotation marks).
- Save the modified WIN.INI file. If you edited this file from within Windows, quit and restart Windows to put the modifications into effect.
- Open the Control Panel and choose Connections from the Setup menu.
- Connect the printer to the port C:.PRN.
- Close the Control Panel and print your document. This time it will print to a file named OUTPUT.PRN; the printer will not be involved. Your document will be located in C: or whichever drive you specified.
- When the application prints its output to the file and disk activity ceases, the print file is completed.
KBCategory: kbother kberrmsg kbgraphic KBSubcategory: Additional reference words: ============================================================================= Copyright Microsoft Corporation 1995.