Re: Creating individual forms using templates
From: Cindy M -WordMVP- (C.Meister-C_at_hispeed.ch)
Date: 06/05/04
- Next message: Cindy M -WordMVP-: "Re: Inserting Section Breaks during Find/Replace"
- Previous message: Cindy M -WordMVP-: "Re: Insert data into headers, textboxes,..."
- In reply to: Jason: "Creating individual forms using templates"
- Next in thread: Jason: "Re: Creating individual forms using templates"
- Reply: Jason: "Re: Creating individual forms using templates"
- Reply: Jason: "Re: Creating individual forms using templates"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 05 Jun 2004 22:24:30 +0200
Hi =?Utf-8?B?SmFzb24=?=,
> I created a template as a substitute for a form in access. I am filling in data
properly, but my goal is to make multiple one page forms (like access does) in one
document. currently i have just placed a couple bookmarks to insert a page break, then
inserted the template file again. As this happens, there is more and more of a gap at
the top of the page, the bookmarks don't transfer, and there is always an extra page at
the end.
>
This can be tricky, indeed. Some thoughts:
1. Don't use manual page breaks. Instead, format the first paragraph with "Page break
before" and store that in the AutoText
2. Since you need the form field names (bookmarks), you're going to need to rename the
form fields. Usually, what I do is increment the names with a number each time I insert a
new repeating element. You can keep track of the number (in a document VARIABLE, for
example) and include that in the code that writes the data from Access into Word
(doc.Formfields("baseName" & CStr(counter)))
3. Try to avoid using Select and Selection; work with the object model as much as
possible (which usually means with Ranges).
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or reply in the
newsgroup and not by e-mail :-)
- Next message: Cindy M -WordMVP-: "Re: Inserting Section Breaks during Find/Replace"
- Previous message: Cindy M -WordMVP-: "Re: Insert data into headers, textboxes,..."
- In reply to: Jason: "Creating individual forms using templates"
- Next in thread: Jason: "Re: Creating individual forms using templates"
- Reply: Jason: "Re: Creating individual forms using templates"
- Reply: Jason: "Re: Creating individual forms using templates"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|