Generating a Printable Document based on Styles.

Hi,

(Please excuse me if this isn't the correct place. this is my

first post. If I am in the wrong area - could someone point me

inth right direction)

Anyway - this is my problem.
I manage a User Guide for an Service Development Scripting Language that runs on my companies Telecoms Platform.

This Language is used by both Internal Development Staff to write call-flows and by Customers to develop thier own Applications.

My problem is this. Some of the commands in the language are

"only available internally" - in other words we don't want Customers to

see them.

Why is this a problem. Well I'd really like to just have one

Reference user Guide, rather than dragging the internal commands out to

a seperate Guide that owuldn't have the contextual information on the

Main Guide, and i'm not prepared to duplicate maintenance by hacing two

versions.
So what i thought was this: I would have 1 Master Document.

In that document some of the Sections would be marked, i was thinking

by using a different style and section headings.

Then the idea was a Macro would be run that:

  • Saves the Existing Document.
  • Takes a Copy of the Document
  • Deletes all the information marked as "internal"
  • And then if possible runs Distiller to PDF it - but that can be done manually.

So my questions are:

  1. Is this possible?
  2. If so - does anyone have ANY idea how i'd go about it? A resource of code that does somethign similar or whatever.

  3. OR - does anyone have any other suggestions on how to achieve this.

[1653 byte] By [DavidEllard] at [2007-12-18]
# 1

It is possible.

You need some Word VBA programming. Just some simple idea for you:

For each iParagraph as Word.Paragraph in mDocument

If iParagraph.Style = ''Internal" then <<delete the paragraph>>

Next

Of course, you need to "style" of internal paragraph is "Internal"

I hope this would help

johnsonhk at 2007-9-8 > top of Msdn Tech,Microsoft ISV Community Center Forums,Visual Basic for Applications (VBA)...
# 2

Here's a suggestion from the support engineer:

Goal: To have a document which have some sections/text which should not get printed (depending upon the choice).

Process: To achieve this goal, we can use the Hidden Text feature in Microsoft Word.

- Have a document with some sample text in it.

- Make a selection of the part of the document which you want to mark as for internal purpose only

- Go to FONT | FORMAT menu bar and in the Format dialog box, under Font Tab, select “Hidden Text”.

Document:

- This will hide the selected text in the document.

- If the text is still visible to you, then that text will be underlined with a dotted line.

- If the text is not visible, go to TOOLS | OPTIONS | View tab.

- Under that tab, check the “Hidden Text” option.

- If the option is checked, the text will be visible in the document.

- If the option is unchecked, the text will not be visible in the document.

Printing:

- While printing, go to TOOLS | OPTIONS | Print Tab.- Under this tab, there is an option called Hidden Text.

- If we want to print the whole text, regardless of the format settings, check this option.

- If we don’t want to print the Hidden Text formatted text, then uncheck this option.

- A document can be printed to PDF and send to a customer.

*George* at 2007-9-8 > top of Msdn Tech,Microsoft ISV Community Center Forums,Visual Basic for Applications (VBA)...