specific action behind a clipart

G

Guest

I have a word document with a table of contents.

In this table of contents, there is a clipart of a printer next to eacht
chapter.

When clicking on the printer, the chapter should be printed out.

Each chapter has its own printer.

How do I do this??
 
J

Jay Freedman

Wanny said:
I have a word document with a table of contents.

In this table of contents, there is a clipart of a printer next to
eacht chapter.

When clicking on the printer, the chapter should be printed out.

Each chapter has its own printer.

How do I do this??

Do you already have the clipart in the table of contents? If so, how did you
put it there? Does it disappear when you update the TOC? If so, that's going
to create a problem.

Here's the way I would approach this:

- Finish all editing and formatting of the document, so there won't be any
changes in the pagination.
- Set a bookmark to cover each chapter, naming each bookmark with 'C'
followed by the chapter number. (Bookmark names must start with a letter,
not a number.)
- Create the TOC in the normal way, using a TOC field to gather the headings
and page numbers. Then click in the TOC and press Ctrl+Shift+F9 to unlink
the TOC field. That changes it into plain text, so it won't ever update
again.
- Next to each chapter title in the TOC, insert a MacroButton field (see
http://word.mvps.org/FAQs/TblsFldsFms/UsingMacroButton.htm). The "display
text" of the field will be just the clipart of a printer. The macro called
by the MacroButton field will need to "read" the chapter number in the same
paragraph of the TOC, find the starting and ending page numbers of the
corresponding bookmark, and print those pages. This is not going to be an
easy task if you aren't already familiar with VBA and the Word object model.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top