Multiline Textbox Cause Page Overflows when Printing or doesn't print all lines 
Author Message
 Multiline Textbox Cause Page Overflows when Printing or doesn't print all lines

There are 2 scenarios.

(1) Created Word document with a table with many bookmarks.  Created VB
userform to fillin all fields.  User enters data into many multiline
textboxes.  When printing, all bookmarks are replaced with text.  If the
text exceeds the allocated dimensions on the Word document the printing is
terrible with non-existent fields and page overflow, etc.  If the original
textbox dimensions(capacity to handle text from userform) are not exceeded
then everything prints fine.

Word is not automatically dealing with this issue - is there a way to have
bookmarks automatically expand within a Word table and not totally{*filter*}up
printing?

(2) Same as item 1, except eliminate the userform and use activeX controls
directly on Word.  A multiline textbox will not print all the lines of the
textbox even with only one on the page(The textbox only prints WYSIWYG).
What needs to be done to ellicit the correct behavior?

Thanks!



Wed, 10 Aug 2005 02:14:38 GMT  
 Multiline Textbox Cause Page Overflows when Printing or doesn't print all lines

Quote:
>There are 2 scenarios.

>(1) Created Word document with a table with many bookmarks.  Created VB
>userform to fillin all fields.  User enters data into many multiline
>textboxes.  When printing, all bookmarks are replaced with text.  If the
>text exceeds the allocated dimensions on the Word document the printing is
>terrible with non-existent fields and page overflow, etc.  If the original
>textbox dimensions(capacity to handle text from userform) are not exceeded
>then everything prints fine.

>Word is not automatically dealing with this issue - is there a way to have
>bookmarks automatically expand within a Word table and not totally{*filter*}up
>printing?

>(2) Same as item 1, except eliminate the userform and use activeX controls
>directly on Word.  A multiline textbox will not print all the lines of the
>textbox even with only one on the page(The textbox only prints WYSIWYG).
>What needs to be done to ellicit the correct behavior?


1) Maybe a DoEvents and an explicit Document.Repaginate. Check the
table properties for controlling layout as well.

2) Some sort of pre-process before printing to ensure the ranges are
fully displayed in their container.
Steve Hudson - Word Heretic, Sydney, Australia
I can do tricky stuff with Word or words for you.

Products: http://www.*-*-*.com/
Spellbooks: 1558 pages of dump left and dropping...

The VBA Beginner's Spellbook is now available!
The first graphical representation of the Word object model
and an extensive checklist for functional template development.
Perfect for everyone at every level of VBA usage.



Fri, 16 Sep 2005 11:57:05 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Printing Textbox Doesn't Work Now

2. Common Dialog (Print) doesn't display Page Number selection

3. ShellExecute Print DOESN'T ALWAYS PRINT!

4. Newbie trying to print a multiline textbox

5. Printing the contents of a multiline-textbox with pagebreaks

6. Printing Multiline Textbox Help Needed.

7. Printing multiline text from a textbox

8. Printing multiline textbox

9. printing a multiline textbox

10. Printing from multiline textboxes?????

11. Printing Text in Multiline TextBox

12. VB5: Want to print text in multiline TextBox

 

 
Powered by phpBB® Forum Software