Top Navigational Bar

Using Graphs In WordPerfect For DOS
DocumentID: 10462
Revision Date: 07-Mar-97 12:13:14 PM

The information in this document applies to:
WordPerfect® 6.0 for DOS

Problem

Combining Quattro Pro graphs with WordPerfect for DOS documents can create more effective presentations and reduce the effort necessary to create and modify reports.This document describes techniques for combining Quattro Pro graphs with WordPerfect documents.Document #7040, "Data Exchange with WordPerfect for DOS", covers issues relating to inserting spreadsheets created in Quattro Pro into WordPerfect.All examples in this document refer to WordPerfect 6.0 for DOS unless otherwise noted.

WordPerfect can access Quattro Pro graphs in a variety of formats..PCX and .EPS (Encapsulated Postscript) are the most common graph formats.However .PIC and HPGL (Hewlett Packard Graphics Language) graphic files created with Quattro Pro can also be imported or linked into WordPerfect.


IMPORTING VS LINKING

There are two major points to consider when using a Quattro Pro graph in WordPerfect:

1. Should the WordPerfect document be updated when changes are made in the spreadsheet?

2. Will the WordPerfect document be moved to another system?

The answers will determine whether the graph should be imported into the WordPerfect document or linked to it.

Importing a graph means a copy of the graph is brought into the WordPerfect document.There is no connection between the original graph and the copy in the WordPerfect document.This means changes made to the original graph from within Quattro Pro will not be reflected in the WordPerfect document.The advantage is that all the data is combined into a single file and can be easily transported to another system, including systems that may not have Quattro Pro.

When a Quattro Pro graph is linked to a WordPerfect document, a link or association is created between the graph and the WordPerfect document.When the graph is updated in Quattro Pro, the WordPerfect document will be updated to show the new graph. When the document is moved to another system, the graph file must also be moved.In addition, if the location of the Quattro Pro graph on the disk or network changes, the link in WordPerfect must also be updated.


CREATING GRAPH FILES

After a graph has been created in Quattro Pro, it can be saved to disk as a separate file.WordPerfect can then import this file or link to it.

When exporting a Quattro Pro graph for use in WordPerfect, keep in mind the following: oGraphs stored in a vector format can be resized by WordPerfect without affecting output quality.Resizing a bitmap graph creates jagged lines and circles.

oEPS graphs can only be printed on Postscript printers.

oSome graph formats (mainly .PIC) do not support all of Quattro Pro's graph features.For example, the .PIC format does not support 3D bars.

The graph file formats that WordPerfect and Quattro Pro share are PCX (bitmap), Encapsulated Postscript (EPS)(vector), PIC (vector) and Hewlett Packard Graphics Language (HPGL)(vector).To create a PCX, EPS, or PIC file, choose /Print | Graph Print | Name (and select the graph to be exported) | Write Graph File and indicate
which file format you want.Quattro Pro will prompt for a file name and append .PCX, .EPS, or .PIC as the file extension unless otherwise specified.Creating an HPGL file is described in "CREATING HEWLETT PACKARD GRAPHICS LANGUAGE FILES" below.

Listed below are the graph formats that both Quattro Pro and WordPerfect support and their strengths and weaknesses: PCXPCX images are the most transportable and WordPerfect can print them on most printers.In addition, PCX images will support all of Quattro Pro's graphing features.Because .PCX files are bitmaps, the image quality degrades if it is resized in WordPerfect.See the section "TIPS FOR CREATING PCX IMAGES" below for getting the best quality output when using PCX format.

EPSEPS images will have the best quality output and can be resized in WordPerfect without degrading the quality. However, WordPerfect will only be able to display a box stating "Contains Postscript Data" and the document will need to be printed to a Postscript printer.An alternative method for creating EPS images that allows more control of the file is described in "ALTERNATE METHOD OF CREATING ENCAPSULATED POSTSCRIPT FILES" below.

PICPIC images are vector based images so they are resizable. However the PIC format does not support some graph elements such grid lines, annotation and 3-D graphs.Font support is also limited.

HPGLHPGL images are vector based images.While the graph itself is of good quality, font support is limited.


IMPORTING GRAPHS INTO WORDPERFECT

To import a graph into WordPerfect, follow these steps in WordPerfect:

1. Position the cursor where the graph is to be inserted.

2. Choose Graphics | Retrieve Image.

In WordPerfect 5.1, Press [ALT+F9] (Graphics) Figure Create Filename

3. Specify the file name.(Press [F5] (File List) to display the List Files menu if it is necessary to search for the graph.)

If graph elements appear to be missing from the inserted graph, it may be because WordPerfect has translated the graph colors to shades of gray that are difficult to distinguish.The figure editing features of WordPerfect help pinpoint potential trouble areas with graphs imported to WordPerfect.In WordPerfect, use Graphics | Graphics Boxes | Edit | Edit Box (in WordPerfect 5.1, press [ALT+F9] (Graphics), Figure, Edit) and enter the figure number to be edited.Select Edit to edit your Quattro Pro graph. If an element is missing because it is the same color as the background, try using Invert from the Edit menu.This reverses the image allowing transparent elements to show.The graph can be left inverted or you may wish to return to Quattro Pro and select a new set of colors which will display all the elements.


LINKING GRAPHS INTO WORDPERFECT

To link a graph to a WordPerfect document, perform the following steps in WordPerfect:

1.Position the cursor where the graph is to be inserted.

2. Choose Graphics | Graphics Boxes | Create | Contents | Image on Disk.

In WordPerfect 5.1, Press [ALT+F9] (Graphics) Figure Create Contents Graphic On Disk

3. Specify the file name.Remember to include the file extension (and path, if necessary).


OTHER GRAPH OPTIONS IN WORDPERFECT

Any of the graphic file formats supported by Quattro Pro can be converted from their original form to the WPG (WordPerfect Graphic) format using WordPerfect's conversion utilities: Convert Perfect with WordPerfect 6.0 or GRAPHCNV with WordPerfect 5.1. The WPG file can then be imported or linked to a WordPerfect document as described above.This may be useful in some situations where WordPerfect has trouble reading a particular graph or when a large number graphs must be converted.See the WordPerfect Users Guide for a complete explanation of CV.EXE and GRAPHCNV.EXE.


TIPS FOR CREATING HIGH QUALITY GRAPH OUTPUT

When WordPerfect prints graphs that were created in another application (e.g., Quattro Pro), it must translate the file into its own graphics format.To produce the highest quality output, follow the tips listed below.

In Quattro Pro:

1.Set the font color to black using /Graph | Text | Font | Color.

2. Set the color for patterns to black or use solid fills for colors for each data series in /Graph | Customize Series. Colors will be used by WordPerfect for display purposes only and will be translated to shades of gray when printed.

3. Set the Line color to black using /Graph | Customize Series.

4. Set Grid color to Black in /Graph | Overall | Grid.

5. Set Fill color to Bright White in /Graph | Overall | Grid.

6. Set Background color to Bright White in /Graph | Overall.

7. Set Color/B&W to Color in /Graph | Overall.

When using a PCX image in WordPerfect, the quality of the bitmapped image can be enhanced by using the proper scaling factor.After inserting the graph into WordPerfect, use the graphics editor to set the width of the graph to a multiple of 0.53333 inches.

In WordPerfect 6.0:

1. Use Graphics, Graphics Boxes, Document Box Number (the number of the graph to be edited), Edit Box.

2. Select Edit Size and set the width of the image to a multiple of 0.53333 inches and set the height to Auto height.For example, to set the image to approximately 2 inches wide, the width would be 4 * 0.53333 inches or
2.13332 inches.

3. Select Image Editor and choose Invert and B/W.

4. Exit from Graphics Editor by pressing [F7] (Exit) until back in the document edit screen.

5. Choose File | Print/FAX | Graphics Quality | High.

In WordPerfect 5.1:

1. Press [ALT+F9] (Graphics), select the type of graphic box to be edited (Figure, Table, Text Box, or User Box).

2. Select Edit and the number of the graph to be edited.

3. Select Size and set the width of the image to a multiple of 0.53333 inches and set the height to Auto height. For example, to set the image to approximately 2 inches wide, the width would be 4 * 0.53333 inches or 2.13332 inches.

4. Select Edit and set Invert to On and Black and White to On.

5. Exit from Graphics Editor by pressing [F7] (Exit) until back in the document edit screen.

6. Press [SHIFT+F7] (Print), Graphics Quality, High.

Using EPS graphs in WordPerfect:

Do not use Graph Editor options to rotate or crop an EPS image in WordPerfect.As with other graphics formats, only one graph will be stored per file.


ALTERNATE METHOD OF CREATING ENCAPSULATED POSTSCRIPT FILES

To control the orientation and image size of a Quattro Pro graph that is being saved as an EPS file, it must be printed to a file.

To create an EPS image by printing to a file, perform the following steps in Quattro Pro:

1. Define the second printer as a Postscript printer by choosing /Options | Hardware | Printers | 1st Printer (or 2nd Printer) | Postscript | Postscript | Use Patterns.

2. Set the default printer to 1st (or 2nd) printer by choosing /Options | Hardware | Default Printer | 1st Printer (or 2nd Printer).

3. Choose /Print | Graph Print | Destination | Binary File and specify a file name.

4. Use /Print | Graph Print | Layout and change any options as necessary.Set Orientation to the orientation desired in WordPerfect.

5. Choose /Print | Graph Print | Go to write the file.


CREATING HEWLETT PACKARD GRAPHICS LANGUAGE FILES
Creating a Hewlett Packard Graphics Language (HPGL) file requires setting the default printer to a HP Plotter and printing to a binary file.

1. Define your printer as an HP Plotter by choosing /Options | Hardware | Printers | 1st Printer (or 2nd Printer) | Type of Printer | HP Plotters | 7475 | Auto.

2. Set the default printer to 1st (or 2nd) printer by choosing /Options | Hardware | Default Printer | 1st Printer (or 2nd Printer).

3. Choose /Print | Graph Print | Destination | Binary File and specify a file name with a .PLT extension (WordPerfect will recognize the extension .PLT as a plotter file).

4. Choose /Print | Graph Print | Layout and change any
options as necessary.

5. Choose /Print | Graph Print | Go to write the file. Be sure to set /Print | Graph Print | Layout | Orientation to Landscape if you want a portrait graph in WordPerfect, since the orientation switches for plotter files.

When creating HPGL files, specify a unique name for each graph. As with other graphics formats, only one graph will be stored per file.

Answer:

Details:


Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER.