Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map

Barry MacDonnell's
Toolbox for WordPerfect

Macros, tips, and templates for Corel® WordPerfect® for Windows®
© Copyright 1996-2008 by Barry MacDonnell. All Rights Reserved.

Page updated Jul 8, 2008
WordPerfect Tips
Main tips page | Browse tips

Graphics Tips

Miscellaneous tips for inserting and using graphic images in a WordPerfect document

  • You can create and save a custom graphic style (figure, line, etc.) with Format, Graphic Styles. Note that Graphics Styles come in four "flavors" which can be accessed by the four radio buttons on that dialog: Box, border, line, and fill. If you select one of them and choose a style from the list, you can then use the Options button to make a Copy of an existing style and modify it instead of making changes to an existing style (which, in any case, can always be Reset to the default using the Options button).
    • For example (tested in WordPerfect X3 but the process should be similar in other versions):
    • Suppose you want to use a "Chapter.FigureNumber" format such as Figure 1.1, Figure 1.2, Figure 1.3 ... Figure 2.1, Figure 2.2, etc. To create automatic numbering, Figures (which are a WP graphic style) use a built-in Counter style (i.e., FigureNum) -- which, in turn, can be edited to create a new (counter) numbering style. To do this you need a FigureNum style with two levels instead of the default of one level. One will track the Chapter number, the other will track the Figure number within each Chapter.
    • First, create a new two-level counter (actually, we'll just modify the existing style, which is document-specific; however, as noted above you can modify and save a custom graphics style for future use).
      • Go to the top of the document and -
      • (1) Click Insert, Other, Counter.
      • (2) Choose ".Figure Box" from the Counter Numbering dialog's list.
      • (3) Click the Edit button to bring up the Edit Counter Definition dialog; set the Number of Levels to "2".
      • (4) Click OK, then Close.
    • You now should have a two-level counter available.
    • Next you need to insert the new counter into the Figure's style, where the Caption appears:
      • (1) Click Format, Styles and choose FigureNum, then click Edit.
      • (2) You should see the text characters, "Figure ", followed by a box counter code. Delete that code so that we can replace it with a custom version.
      • (3) With the cursor still at the same location in the Contents pane, click Insert, Other, Counter (from the Styles Editor dialog's menu bar), and choose ".FigureBox Level 1" in the Counter list, then click "Display in Document." This inserts the code into the Contents pane (at this point, this pane is considered a "document" by WordPerfect).
      • (4) Press the period/full-stop key to insert a "dot".
      • (5) Click again on Insert, Other, Counter, and choose ".FigureBox Level 2" in the Counter list, then click "Display in Document." This inserts the second counter code.
      • (6) Click OK, then Close to return to the document.
    • Finally, since the counters will need to be reset with each Chapter, go to the top of each chapter (perhaps on the line with your Chapter's title) and -
      • (1) Click Insert, Other, Counter.
      • (2) Choose the Level 1 counter; click Value bring up the small dialog which lets you set reset the two counter Levels to 2 and 1 (for Chapter 2, Figure 1). This allows starting the renumbering of figures in each Chapter.
  • How to keep a graphic image or text box from "jumping around" on a page or moving to another page:
    • [From a post by Martin V. at WordPerfect Universe:]
    • "When positioning a graphic, right-click the graphic and have a look at the "position" dialog of that graphic. Any grahic (or box) can be -
      • Attached to a page: which means the location will stay on a fixed position relative to the edge of the page or relative to a the margins or relative to a column. However if a lot of text is inserted before the imagecode in the document, the image can still move to the next page [unless the "Box stays on page" is checked].
      • Attached to the paragraph: the image is positioned relative to a margin or to the paragraph and is attached to the paragraph. It will move when the paragraph moves.
      • Attached to a character: now it will be attached to a certain character. It will move with that character. Most of the time you will only use this with very small images.
      • You will have to figure out what to attach an image too. If you do not want an image to "jump around" start with the option "attach to page" and position it relative to the edge of the paper. If it does not produce what you need, try attach to paragraph."
  • You can set your preferred (i.e., your default) graphic box style when inserting images:
    • Click Format, Graphic Styles to bring up the Graphics Styles dialog, then enable the radio button corresponding to the Style type (Box, Border, Line, or Fill) to want to modify.
    • In the Styles list, choose the type of graphic (e.g., Image, Figure, etc.), then click Edit to set your desired program defaults for any of the seven categories in the Edit Box Style dialog that appears.
      • Note that the Caption button in the Edit Box Style dialog will take you to another dialog (Box Caption) where you can set the "Caption numbering method and style" for that type of box (i.e., FigureNum, TextBoxNum, etc.). For example, you can change the default figure caption from "Figure 1" to "Fig. 1," remove the bold attribute, add italics, etc. You can also set a multi-level style (Fig. 1.1, Fig. 1.2 ... Fig 2.1, Fig. 2.2, etc.).
    • You can always use Options, Reset in the Graphics Styles dialog to restore things at a later date.
  • You can set the size (or other settings) of individual graphic boxes with a macro such as the ones in Footnote 1.
  • Need to cross-reference a Table? Put the table inside a captioned custom box (which can be repositioned on the page):
    • Put each of your tables inside a custom box by either copying them into a box or creating a table-in-a-box.
    • For example: Click Insert, Graphics/Pictures, Custom Box. Select the "Table" style, and click OK.
    • Double-click inside the empty box (it has 8 drag handles around its perimeter) to edit it. Create the table there (or copy a table into the box).
    • Right-click the box-with-table, choose Caption from the context menu. This brings up the Box Caption dialog. Click Edit. This inserts a "Table x" (where "x" is a number) caption. [Here, you can also add text to describe the table.]
    • While editing the caption, carefully select the [Open Style] code (this is easy with a Shift+arrow key). Then click Tools, Reference, Cross-Reference. In the Reference Tools dialog, choose "Caption Number" in the Reference Type drop list. Now, click in the Select Target field; the table number should appear in it. Click Mark Target. A [Target] code will appear in the caption. Then click Close.
    • At this point you can drag the box-with-table to a location on the page. It probably is best to "anchor" it to a paragraph (with the Position feature from the context menu, when you right-click on the box). But you can experiment with other Positions.
    • Click in the document text area at the location where you want the reference to the table. Then click Tools, Reference, Cross Reference. In the Reference Type field, select (as above) "Caption Number". Then click in the Select Target field and, in the drop list, choose the table number of the table. Click Mark (but /not/ Mark Target!). A '?' mark will appear in the document.
    • At this point (or later, when you are finished) you can click Generate to generate the links between the references and their targets.
    • Repeat the above for each of your tables.
  • Need to cross-reference a Figure box? Once the box is placed on a page:
    • Edit the box's caption (right-click on the box, select Edit Caption); in Reveal Codes the cursor should now be next to the "Figure x" code (where "x" is a number; the code itself is shown as an [Open Style: FigureNum] code).
    • While still in the caption, click Tools, Reference, Cross Reference, Reference Type: <Caption Number>, Select Target: <give a name to the box's target, such as "Box3">; click on Mark Target, then Close.
      • Note that if you select the [Open Style] code first, the target name should automatically appear in the Select Target field.
    • Next, place the cursor where you want the reference to go in the body text; click on Tools, Reference, Cross Reference, Reference Type: <Caption Number>, Select Target: <choose the name of the box from the list, such as "Box3">; click on Mark, then Close.
    • Finally, generate the cross references with Tools, Reference, Generate.
    • See also the next tip below.
  • Need to number some graphic box images ("Figure 1," "Figure 2," etc.) but not all images?
    • First, add captions with numbers to the ones you need captioned and numbered:
      • Right-click the image, choose Caption, then click Edit. "Figure 1" appears by default if you have inserted a graphic image; a simple "1" appears if you have inserted a text box; etc.. Type some text after the number if you need a description or title, then click outside the image to go to the body text area.
      • Insert (or go to) a new image, and repeat the process.
      • When finished, un-number the images that should not be numbered:
    • Since WordPerfect keeps track of image numbers with an internal counter (a different counter for Equation, Figure, Table, Text, and User boxes), you can turn the counter off for the images that should not be numbered. The other images will be properly numbered. Here's how.
      • Right-click an image you do not want numbered and choose Caption from the context menu. The Box Caption dialog appears.
      • If the image is already captioned, click the Reset button to revert the image to a non-captioned image (i.e., delete any caption for that image).
      • Next, click Change, then <none> for the Counter type.
      • Finally, click Select, then OK.
    • Go to the next image you don't want counted or captioned, and repeat the above four steps. All other captioned and numbered boxes should then be properly and automatically numbered in sequence. If some are not, right-click them and choose Caption, then click the Edit button. This should reset the displayed number.
  • Here's how to install the entire Clip Art catalog (located on the installation CD Disk 2) to a hard drive so that you can have ready access to it without using the CD. [Warning: This involves a small change to the Windows Registry. Always make a backup of the Registry before modifying it. For information, see Microsoft's Support Knowledge Base at http://support.microsoft.com and Search for "edit Registry in Windows XP" (for Windows XP; various versions of Windows have different articles, so use the appropriate Windows version in your Search].
    • The following method was posted by Charles Rossiter, Corel C_Tech, on a Corel newgroup. It refers to WordPerfect 12, but the method should work for other versions that ship with a separate ClipArt CD:
      • "With CD#2 in its drive, access the full set of clipart just by doing Insert, Graphics, Clipart. Close WPWin12.
      • Copy the entire F:\Graphics folder (assuming F is the CD drive) to E:\Graphics (assuming E is the target hard drive partition).
      • Edit the Windows registry and search for 'srb'. There will be a few entries -- you need to find the one that references F:\Graphics. Just change the F:\ to E:\.
      • Now launch WPWin12, without CD#2 in its drive. Do Insert, Graphics, Clipart and you should have access to all the Clipart."
      • TIP: Recent versions of WP include the catalog (a PDF file) for all clip art on CD #2.
  • Create "sticky notes" in WordPerfect.
    • See this thread on WordPerfect Universe.
    • Insert a "Post-It"-type note (or yellow "sticky note") in a WordPerfect (or Microsoft Word) document with Insert, Object, CorelMEMO.
    • For an alternative to these electronic "sticky notes," see 3M Post-It Software Notes.
  • Want to add your scanned signature to a document? See this thread on WordPerfect Universe.
  • Graphics and "file bloat." If documents with graphics in them result in large, bloated file sizes, perhaps it is because you are saving Undo changes when you save the files, thus saving additional copies of any inserted graphics along with the originals. (Additionally, WordPerfect converts all inserted graphics to its own WPG format, resulting in larger file sizes than expected in some cases.) Solution: Click on Edit, Undo/Redo History, Options and make sure that "Save Undo/Redo items with document" is NOT checked. Then re-save the file. (For more on this option as it relates to sharing confidential documents with other users, see here.)
  • JPEG images: If importing a JPEG image (*.JPG) into WordPerfect on an Intel Pentium 4 computer causes the photo to appear partly missing (or black), see "Parts of my imported image are missing or appear blank in WordPerfect" (Answer ID: 207681) on the Corel support site.
  • [WordPerfect 10 and later:] Line up text boxes or other graphics in WP10+ with the Align and Distribute tool. Once you have created several text boxes or other graphics, you can select all (or a group) of them by holding down your <Shift> key while you left-click each box. This will put a (borderless) box around all the boxes you have selected. Right-click inside this parent box (click directly on top of one of the child boxes) and you can Align and Distribute the child boxes inside the parent. (Use the Help button on the Align and Distribute dialog for more information.) Also, the entire parent box can be dragged into position and right-clicked to select a caption, border, etc.
  • Create a page border with repeating graphic images (clip art, photos, etc.) around the four edges of the page (the method requires Corel Presentations, part of the WordPerfect Office Suite). To create a page border using text, see the TextBord macro in the Library (Presentations not required).
  • Problems inserting graphics into WordPerfect on a Windows 2000 or Windows XP computer?
    • In both Win2000 and WinXP, to be able to insert non-wpg graphics, you have to enable indexing service on your NTFS partition, although you can disable it overall.
    • Double-click My Computer to get a list of partitions. Right-click on the partition with the graphics. Select Properties. Check on the option "Allow index service to index this disk ...".
    • In Win2000 to disable indexing service overall, you can do Windows Start, Search, Files or Folders, if needed click on Search Options to open that sub-dialog. If Indexing Service is enabled, you can set it to disabled, which should over-ride the option for the particular partition which has to be enabled.
    • In WinXP to disable indexing service overall, you can do Windows Start, Search, Files or Folders, click Change Preferences. Now click Without Indexing Service and select the option "No, do not enable indexing service", which should over-ride the option for the particular partition which has to be enabled.
  • Getting a message about your image being greater than 27 inches?
    • From Charles Rossiter, Corel C_Tech, with regard to the "Graphic image viewport width/height exceeds 27" (inches)" message:
      • "This is a known problem with JPG or GIF graphics. [N.B.: This has been fixed in WordPerfect X4.] The key is not just the size of the graphic, but also the resolution in dots per inch. Take the number of pixels (dots) that the graphic is wide (or long) and divide that by the resolution in dpi. The answer is in inches, and is the size of the graphic. If that size is greater than 27.308 inches (69.36 cm), then the conversion will abort.
      • The solution is just to change the resolution. As far as WPWin is concerned, doubling the resolution halves the size, for example.
      • With many graphics packages, you can change the resolution, and this has no adverse effect on the graphic or the quality of the image. You can try ... [the free program] IrfanView to reset the resolution. Then the graphic will open in WPWin."
    • Follow up quote from Charles:
      • "Let me go through this in detail. The key size is 27.308 inches. When you open a jpg file in IrfanView or VuePro32 or other package, you will see a status line giving the number of pixels in the graphic and its resolution. If you divide the larger dimension by the resolution (dpi or pixels per inch), you will get the size of the graphic in inches. If that size is bigger than 27.308 inches (32768 wordperfect units at 1200 units per inch), then WPWin will not open it.
      • So you need to increase the number of dpi, to decrease the size
        perceived by WordPerfect. One way is to open the graphic in IrfanView (and save it immediately with a new name, but still as a jpg file). Do Image, Information and change the DPI from the probable values of 72 by 72, to 144 by 144 (for example). As you make such changes, you can see the print size changing. Just make sure the Print Size is less than 27.308 inches. Now save the graphic with another new name. It will now open in WordPerfect."
  • Using boxes to cover up dividing lines between columns in newsletters or similar document styles in WordPerfect 8/9. This tip can be used to cover up text, parts of a table, clip art, etc.
  • Controlling the printing and non-printing of graphics with a macro is done with the PrintGraphics() command. Unfortunately, the "on" and "off" parameters are reversed in their common meanings. Here are two small demonstration macros to show the difference. Load a document with both text and graphics and play the macros, one at a time. Also: In your own case, it might help to reset the PrintGraphics() setting to your preferred state before the macro exits so that subsequent print runs during the same session print (or don't print) graphics according to your standard preference.
    • // Macro #1
      // True! = select Print dialog choice: "Print Text Only" - do not print any graphics.
      PrintGraphics (State: True!)
      Print (FullDocument!)
      Return
    • // Macro #2
      // False! = deselect Print dialog choice: "Print Text Only" - print graphics, too.
      PrintGraphics (State: False!)
      Print (FullDocument!)
      Return


Footnote 1

Here are two macros that can set the size (e.g., the height and width) of a selected graphic box (or the next box, if none is selected).

You can precede the code with macro commands that either (1) insert the graphic from a file, or (2) copy the graphic to the clipboard, then paste it at a specific location.

The code in Example 1 below uses just one measurement (the width of the box, set to 2.5 inches) to show how to enter a specific measurement. It also attaches the box to Paragraph, adjusts text flow, and sets the Overlap and position (relative to text) to Front.

The code in Example 2 simply sets the box to its maximum size (between the left and right margins).

See also other BoxText... and BoxTo... commands on the Macro toolbar's Commands button or in Macro Help.


// EXAMPLE 1: Macro code begins -

// Get box number -
vBox:=?BoxNumber
BoxEdit(vBox)

// Use desired measurements/settings in the next Box... commands -
BoxAttachTo (Paragraph!)
BoxWidth(2.5")
BoxHeight(AutoHeight!)
BoxHorizontalAlignment(AlignMargins!; Center!; 0.0")
BoxVerticalAlignment (Top!)
BoxTextFlow (NeitherSide!)
BoxOverlap (Yes!)
BoxToFront

// Exit graphic box here -
BoxUpdateDisplay ()
BoxEnd(Save!)

// Macro code ends


// EXAMPLE 2: Macro code begins -

// Get box number -
vBox:=?BoxNumber
BoxEdit(vBox)

// Set the size to maximum -
BoxHorizontalAlignment (Alignment: AlignMargins!; Position: FullAlign!; Offset: 0.0")
BoxVerticalAlignment (Alignment: FullAlign!; Offset: 0.0")

// Exit graphic box here -
BoxUpdateDisplay ()
BoxEnd(Save!)

// Macro code ends