Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Form to select textblock for printing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frank Spade - 04 Jan 2006 12:10 GMT
I like to create an online form that allows me to enter Text into some
fields and select some checkboxes. When I print, only the text associated
with the checked checkboxes is supposed to print, but not the checkboxes.
This is how the document template (form) should look like (fields are shown
with brakets):

[address]

Salutation [lastname],

Some text ...
[x] text block 1
[  ] text block 2
[x] text block 3
more text ...

After entering the address and the last name I want to check the text blocks
I want to include and then print the document. In this case text block 2 is
not supposed to print and I don't want to see the checkboxes printed either.
It would be good to see the text blocks so I know which to check.

I don't know how to realise that text blocks are included or excluded and
how to suppress the checkboxes.

Is this doable? Are there examples I can look at to learn how to do it?
Signature

Frank Spade

Perry - 06 Jan 2006 20:29 GMT
Here's another approach:

Bookmark the textblocks, then hide the text as per user's selection in yr
dialog
using something like:

ActiveDocument.Bookmarks("TextBlock4").Range.Font.Hidden = True

Krgrds,
Perry

>I like to create an online form that allows me to enter Text into some
>fields and select some checkboxes. When I print, only the text associated
[quoted text clipped - 22 lines]
>
> Is this doable? Are there examples I can look at to learn how to do it?
Frank Spade - 17 Jan 2006 14:04 GMT
Thank you Perry,

that's woth looking into ...

Kind regards,

Frank

> Here's another approach:
>
[quoted text clipped - 3 lines]
>
> ActiveDocument.Bookmarks("TextBlock4").Range.Font.Hidden = True

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.