Microsoft KB Archive/45871

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Word: Importing Graphics from Windows

PSS ID Number: Q45871 Article last modified on 01-24-1995

5.00

MS-DOS

SUMMARY

The following are ways to transport graphics from Windows to Word version 5.00:

Clipboard

This is the quickest and most direct way to import a graphic into Word 5.00. To do this, do the following:

  1. 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.
  2. 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.
  3. 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.
  4. 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.

PCX Format

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.

HPGL Format

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:

  1. Add a filename followed by an equal sign to the [PORTS] section of the WIN.INI file.
  2. Exit and restart Windows.
  3. Choose Windows Control Panel.
  4. Select Setup Connections.
  5. Connect the HP plotter to the filename and choose OK.
  6. Choose Setup Printer.
  7. Make sure that HPPLOT on <<filename>> is selected and press ENTER.
  8. From the Devices menu for the HP plotter driver, select the HP 7440A ColorPro.
  9. Put an X in preloaded, and change orientation to landscape.
  10. Press ENTER and close the Control Panel.
  11. Print the graphic from the Windows application.
  12. Start Word (either inside Windows or from DOS) and choose Library Link Graphic.
  13. Type the name of your print file.
  14. Type HPGL under File Format.
  15. 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:

  1. Word must be installed for the same type printer as Windows.
  2. 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:

  1. Print to a file with the appropriate driver from Windows.
  2. Start Word.
  3. Link the graphic by pressing ESC, L, L, G.
  4. Type the name of the print file.
  5. Under File Format, type “printer” or “PostScript” (without quotation marks).

Printing from Windows

Use the following procedure when printing to a file from Windows:

  1. 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.
  2. Locate the [PORTS] section of the WIN.INI file. This section is usually about one-half to three-quarters of the way through.
  3. In the [PORTS] section, add the line “C:.PRN=” (without quotation marks).
  4. Save the modified WIN.INI file. If you edited this file from within Windows, quit and restart Windows to put the modifications into effect.
  5. Open the Control Panel and choose Connections from the Setup menu.
  6. Connect the printer to the port C:.PRN.
  7. 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.
  8. 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.