Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting A Word Document 1

Status
Not open for further replies.

jocasio

IS-IT--Management
Oct 11, 2002
88
US
Hey all:

I have a VB app that takes a Word template and fills it with data (using bookmarks). The problem I'm having is the following:

I have a Address line that inserts the name and address. These lines (3 one for Name, one for Address, and one for City, State, and Zip) are underlined. When the data populates the lines, it extends the underlining, creating another line

So my original line looks line this:

___________________________
___________________________
___________________________

When the data is inserted, it may look like the following:
James Smith________________
_______
123 Main Street____________
_____________________
AnyTown, NY 10000__________
_______________

My questions is how do I get it so my lines stay stationary?

I hope I didn't ramble.

Thanks for all of you help

jocasio
 
Hi,

Why do you have UNDERSCORES to begin with? Get rid of them. They are useless!

You could also use FORM FIELDS (you can underscore the form field or not). Stuff your data into each FORM FIELD.

If you ABSOLUTELY need to have underscore lines, then insert a TABLE with 3 rows and use Format/Borders & Shading for lines.

:)

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Skip:

The underscores are actually a line holder. They are indicative of a Line (as in sign on the dotted line). This is a legal document that if it wasn't being populated by dynamic data, it would be typed in and the lines would show the user where to type (similar to loose leaf paper). What I would like is for the line to stay stationary and not move when data is added (it's functioning like an insert). I know I've seen templates before with these type of lines and when a user types into it, the data is typed but the line stays stationary. That's what I'm trying to accomplish.

Thanks for the post. Please let me know if you have any other ideas

jocasio
 
Did you read my last paragraph?
If you ABSOLUTELY need to have underscore lines, then insert a TABLE with 3 rows and use Format/Borders & Shading for lines.
I use this technique alot with legal forms or paper forms.

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Skip:

Thanks again for the reply. Yes, I did read that last statement. The only problem (and it may not be, but I'm not sure) is this Document is from a client of mine and I do not want to change the formatting if I don't have to. I will try the table technique as a test to see how if it will suite my needs, but I don't want my client coming back saying I altered their legal Document.

Thanks again

jocasio
 
UNDERSCORE characters are NEVER a good idea to use in a form that you'll actually fill in on the computer. In most cases you can use a Table.

Maybe its only ONE column and ONE row.

Suppose that you have a line this a blank in the middle of the line for a Name. I'd insert a 3-column 1-row Table. The first & last cells has the leading & following verbage with NO BORDER FORMATTING. The middle cell only has the BOTTOM border. That's one way.

I have a Lease Form that I fill in on a computer. ALL the fields are Form Fields that have been UNDERSCORED. I have no fields of the type you described, but if I did, I'd have put the Form Fields in a Table WITHOUT the underscore, using BOTTOM BORDERS instead.

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Skip:

many thanks for your posts. You've given me a lot to think about and test. I will try to implement some of your suggestions and will let you know the outcome.

Again, thanks for the posts!

jocasio
 
Skip:

It looks like it's working. I do have one question: How do you change the height of the Cells? My font is 6.5 and there seems to be space, but I can not move the cells. It looks like it's defaulting to .05 inches. When I created the tables, it dropped my page down, altering the contents of Page 1 (I had 2 pages total, and now there are 3; page two continues what was on page 1).

Thanks again,

jocasio
 
Table/table Properties - Row tab and specify the row height for each row as EXACTLY

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
I tried that, but it doesn't change the height (I think it may be at it's smallest height. I'm going to continue trucking.

Thanks again

jocasio
 
What font are you using?

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
I'm using Arial for these. I think I may have fixed it another way; By merging the table I created with the table that existed, I was able to free up some space.

One last question (I hope - you've been extremely helpful)
Suppose I have a Line as the following

Your cost is $ _____________ Payable in ______________

How can I create the tables where the underscores are? Do I have to set up tab stops?

Again, Thanks for your patience and attention!

jocasio
 
This would be a table with 1 row and 4 columns
[tt]
Column 1: Your cost is $
Column 2:
Column 3: Payable in
Column 4:
[/tt]
Columns 2 & 4 has BOTTOM BORDER.

:)

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
DUHHHH!

Thanks for all of your help!

jocasio
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top