Group:  Microsoft Word ยป microsoft.public.word.tables
Thread: capture data from a form and print it in the header of all the pages

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

capture data from a form and print it in the header of all the pages
"divya" <divya_sanam[ at ]yahoo.com> 06.07.2006 07:20:32
I have a document with a form in it with three fields,suppose
NAME,AGE,DESIGNATION.
Now when user fills these 3 cellls and writes about himself below the
form,now if he goes to the second page the second page should open with
an header which consists of
1.Page number
2.Name
3.Designation

In short I want to capture the data from the form and use that in my
header part of all the subsequent pages getting added.Can anybody
suggest a way to do this?

Re: capture data from a form and print it in the header of all the pages
Fredrik E. Nilsen <fenilsen.nospam[ at ]chello.no> 06.07.2006 10:09:32
On 6 Jul 2006 00:20:32 -0700, "divya" <divya_sanam[ at ]yahoo.com> wrote:

[Quoted Text]
>I have a document with a form in it with three fields,suppose
>NAME,AGE,DESIGNATION.
>Now when user fills these 3 cellls and writes about himself below the
>form,now if he goes to the second page the second page should open with
>an header which consists of
>1.Page number
>2.Name
>3.Designation
>
>In short I want to capture the data from the form and use that in my
>header part of all the subsequent pages getting added.Can anybody
>suggest a way to do this?

Go to View --> Header and footer. Then Insert --> Field. In the Field
name-list, select Ref. and select the appropriate bookmarks in the
list to the right.

Do the proper adjustments if you don't want the header on page 1.

--
Fredrik E. Nilsen
Re: capture data from a form and print it in the header of all the pages
"divya" <divya_sanam[ at ]yahoo.com> 06.07.2006 10:31:29
Hi Fredrik
I tried working using the way u said by adding REE BookMarks into the
header,But the problem with ref what am facing is:

1.First time I enter the data in form it takes these values and on the
pages header shows these values as needed.

2.But when I again overite or make changes to previous data enterd it
shows me in the header not the modified values but the same prev old
values.

3.Now I save & close this document .

4.When I Reopen and fill the form,now the header shows me the values
same old values.

Its only taking the values when it was first executed.

Plz help me out ,I need to finishi the assingnemnt today.
Cheerz
Divya

Fredrik E. Nilsen wrote:

[Quoted Text]
> On 6 Jul 2006 00:20:32 -0700, "divya" <divya_sanam[ at ]yahoo.com> wrote:
>
> >I have a document with a form in it with three fields,suppose
> >NAME,AGE,DESIGNATION.
> >Now when user fills these 3 cellls and writes about himself below the
> >form,now if he goes to the second page the second page should open with
> >an header which consists of
> >1.Page number
> >2.Name
> >3.Designation
> >
> >In short I want to capture the data from the form and use that in my
> >header part of all the subsequent pages getting added.Can anybody
> >suggest a way to do this?
>
> Go to View --> Header and footer. Then Insert --> Field. In the Field
> name-list, select Ref. and select the appropriate bookmarks in the
> list to the right.
>
> Do the proper adjustments if you don't want the header on page 1.
>
> --
> Fredrik E. Nilsen

Re: capture data from a form and print it in the header of all the pages
"Margaret Aldis" <Margaret.Aldis[ at ]mvps.(SpamStopper)org.invalid> 06.07.2006 14:59:44
The field won't update automatically, but if you go into Print Preview you
should find the field updates, even in a protected form.

Another solution is to use a StyleRef field instead of a Ref field as
explained in section "Repeating form field data in a header/footer" of

http://sbarnhill.mvps.org/WordFAQs/StyleRef.htm

Or you can use a macro to update - see here for instance:

http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=585

--
Margaret Aldis - Microsoft Word MVP
Syntagma partnership site: http://www.syntagma.co.uk
Word MVP FAQ site: http://www.word.mvps.org



"divya" <divya_sanam[ at ]yahoo.com> wrote in message
news:1152181888.962254.239050[ at ]a14g2000cwb.googlegroups.com...
[Quoted Text]
> Hi Fredrik
> I tried working using the way u said by adding REE BookMarks into the
> header,But the problem with ref what am facing is:
>
> 1.First time I enter the data in form it takes these values and on the
> pages header shows these values as needed.
>
> 2.But when I again overite or make changes to previous data enterd it
> shows me in the header not the modified values but the same prev old
> values.
>
> 3.Now I save & close this document .
>
> 4.When I Reopen and fill the form,now the header shows me the values
> same old values.
>
> Its only taking the values when it was first executed.
>
> Plz help me out ,I need to finishi the assingnemnt today.
> Cheerz
> Divya
>
> Fredrik E. Nilsen wrote:
>
>> On 6 Jul 2006 00:20:32 -0700, "divya" <divya_sanam[ at ]yahoo.com> wrote:
>>
>> >I have a document with a form in it with three fields,suppose
>> >NAME,AGE,DESIGNATION.
>> >Now when user fills these 3 cellls and writes about himself below the
>> >form,now if he goes to the second page the second page should open with
>> >an header which consists of
>> >1.Page number
>> >2.Name
>> >3.Designation
>> >
>> >In short I want to capture the data from the form and use that in my
>> >header part of all the subsequent pages getting added.Can anybody
>> >suggest a way to do this?
>>
>> Go to View --> Header and footer. Then Insert --> Field. In the Field
>> name-list, select Ref. and select the appropriate bookmarks in the
>> list to the right.
>>
>> Do the proper adjustments if you don't want the header on page 1.
>>
>> --
>> Fredrik E. Nilsen
>


Re: capture data from a form and print it in the header of all the pages
Fredrik E. Nilsen <fenilsen.nospam[ at ]chello.no> 06.07.2006 20:48:02
On Thu, 6 Jul 2006 15:59:44 +0100, "Margaret Aldis"
<Margaret.Aldis[ at ]mvps.(SpamStopper)org.invalid> wrote:

[Quoted Text]
>The field won't update automatically, but if you go into Print Preview you
>should find the field updates, even in a protected form.
>
>Another solution is to use a StyleRef field instead of a Ref field as
>explained in section "Repeating form field data in a header/footer" of
>
>http://sbarnhill.mvps.org/WordFAQs/StyleRef.htm
>
>Or you can use a macro to update - see here for instance:
>
>http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=585

Thanks for clearing up.

--
Fredrik E. Nilsen
Re: capture data from a form and print it in the header of all the pages
"divya" <divya_sanam[ at ]yahoo.com> 07.07.2006 05:26:24
Hiii Fredrik and Margaret,
Thanks a lot for ure help ,I used the macro code an problem
solved.
Cheerz,
Divya

Fredrik E. Nilsen wrote:
[Quoted Text]
> On Thu, 6 Jul 2006 15:59:44 +0100, "Margaret Aldis"
> <Margaret.Aldis[ at ]mvps.(SpamStopper)org.invalid> wrote:
>
> >The field won't update automatically, but if you go into Print Preview you
> >should find the field updates, even in a protected form.
> >
> >Another solution is to use a StyleRef field instead of a Ref field as
> >explained in section "Repeating form field data in a header/footer" of
> >
> >http://sbarnhill.mvps.org/WordFAQs/StyleRef.htm
> >
> >Or you can use a macro to update - see here for instance:
> >
> >http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=585
>
> Thanks for clearing up.
>
> --
> Fredrik E. Nilsen

Re: capture data from a form and print it in the header of all the pages
"divya" <divya_sanam[ at ]yahoo.com> 07.07.2006 07:56:30

HI
THE FONTSIZE OF THE TEXT FIELD WHOSE BOOKMARK IS TXTNAME IN THE
FORM IS 16 ,I USED ITS REF IN THE HEADER AND A MACRO WHICH UPDATES
WHENEVR ANY CHANGE IS MADE.
IN THE HEADER I WANT THAT THE FONTSIZE SHOULD BE SMALL OF 11 ,I TRIED
CHANGING THE FONTSIZE IN THE HEADER TO 11 BUT SOMETHING LIKE THIS
HAPPENS:-
1.SUPPOSE i ENTERED abc def ghi (FONT 16) IN THE TXTNAME TEXTBOX
2.ITS REF WHICH IS IN HEADER IS COPIED BUT NOW abc IS OF SIZE 11 AND
REST def ghi IS OF FONTSIZE 16.
TELL ME WHAT DO i DO to make abc def ghi ALL OF SIZE 16.
DIVYA

divya wrote:

[Quoted Text]
> Hiii Fredrik and Margaret,
> Thanks a lot for ure help ,I used the macro code an problem
> solved.
> Cheerz,
> Divya
>
> Fredrik E. Nilsen wrote:
> > On Thu, 6 Jul 2006 15:59:44 +0100, "Margaret Aldis"
> > <Margaret.Aldis[ at ]mvps.(SpamStopper)org.invalid> wrote:
> >
> > >The field won't update automatically, but if you go into Print Preview you
> > >should find the field updates, even in a protected form.
> > >
> > >Another solution is to use a StyleRef field instead of a Ref field as
> > >explained in section "Repeating form field data in a header/footer" of
> > >
> > >http://sbarnhill.mvps.org/WordFAQs/StyleRef.htm
> > >
> > >Or you can use a macro to update - see here for instance:
> > >
> > >http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=585
> >
> > Thanks for clearing up.
> >
> > --
> > Fredrik E. Nilsen

Re: capture data from a form and print it in the header of all the pages
"divya" <divya_sanam[ at ]yahoo.com> 07.07.2006 08:48:26
HII
I USED \*CHARFORMAT ALONG WITH REF AND MY CHANGED THE FONTSIZE TO
11.
CHEERS
DIVYA
divya wrote:

[Quoted Text]
> HI
> THE FONTSIZE OF THE TEXT FIELD WHOSE BOOKMARK IS TXTNAME IN THE
> FORM IS 16 ,I USED ITS REF IN THE HEADER AND A MACRO WHICH UPDATES
> WHENEVR ANY CHANGE IS MADE.
> IN THE HEADER I WANT THAT THE FONTSIZE SHOULD BE SMALL OF 11 ,I TRIED
> CHANGING THE FONTSIZE IN THE HEADER TO 11 BUT SOMETHING LIKE THIS
> HAPPENS:-
> 1.SUPPOSE i ENTERED abc def ghi (FONT 16) IN THE TXTNAME TEXTBOX
> 2.ITS REF WHICH IS IN HEADER IS COPIED BUT NOW abc IS OF SIZE 11 AND
> REST def ghi IS OF FONTSIZE 16.
> TELL ME WHAT DO i DO to make abc def ghi ALL OF SIZE 16.
> DIVYA
>
> divya wrote:
>
> > Hiii Fredrik and Margaret,
> > Thanks a lot for ure help ,I used the macro code an problem
> > solved.
> > Cheerz,
> > Divya
> >
> > Fredrik E. Nilsen wrote:
> > > On Thu, 6 Jul 2006 15:59:44 +0100, "Margaret Aldis"
> > > <Margaret.Aldis[ at ]mvps.(SpamStopper)org.invalid> wrote:
> > >
> > > >The field won't update automatically, but if you go into Print Preview you
> > > >should find the field updates, even in a protected form.
> > > >
> > > >Another solution is to use a StyleRef field instead of a Ref field as
> > > >explained in section "Repeating form field data in a header/footer" of
> > > >
> > > >http://sbarnhill.mvps.org/WordFAQs/StyleRef.htm
> > > >
> > > >Or you can use a macro to update - see here for instance:
> > > >
> > > >http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=585
> > >
> > > Thanks for clearing up.
> > >
> > > --
> > > Fredrik E. Nilsen

Re: capture data from a form and print it in the header of all the pages
"Suzanne S. Barnhill" <sbarnhill[ at ]mvps.org> 07.07.2006 15:11:06
Please don't SHOUT. Is the font size applied as direct formatting or part of
the style? If the style for the form field specifies 16-point and the style
of the header specifies 11, both should be correct.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"divya" <divya_sanam[ at ]yahoo.com> wrote in message
news:1152258990.305686.258990[ at ]p79g2000cwp.googlegroups.com...
[Quoted Text]
>
> HI
> THE FONTSIZE OF THE TEXT FIELD WHOSE BOOKMARK IS TXTNAME IN THE
> FORM IS 16 ,I USED ITS REF IN THE HEADER AND A MACRO WHICH UPDATES
> WHENEVR ANY CHANGE IS MADE.
> IN THE HEADER I WANT THAT THE FONTSIZE SHOULD BE SMALL OF 11 ,I TRIED
> CHANGING THE FONTSIZE IN THE HEADER TO 11 BUT SOMETHING LIKE THIS
> HAPPENS:-
> 1.SUPPOSE i ENTERED abc def ghi (FONT 16) IN THE TXTNAME TEXTBOX
> 2.ITS REF WHICH IS IN HEADER IS COPIED BUT NOW abc IS OF SIZE 11 AND
> REST def ghi IS OF FONTSIZE 16.
> TELL ME WHAT DO i DO to make abc def ghi ALL OF SIZE 16.
> DIVYA
>
> divya wrote:
>
> > Hiii Fredrik and Margaret,
> > Thanks a lot for ure help ,I used the macro code an problem
> > solved.
> > Cheerz,
> > Divya
> >
> > Fredrik E. Nilsen wrote:
> > > On Thu, 6 Jul 2006 15:59:44 +0100, "Margaret Aldis"
> > > <Margaret.Aldis[ at ]mvps.(SpamStopper)org.invalid> wrote:
> > >
> > > >The field won't update automatically, but if you go into Print
Preview you
> > > >should find the field updates, even in a protected form.
> > > >
> > > >Another solution is to use a StyleRef field instead of a Ref field as
> > > >explained in section "Repeating form field data in a header/footer"
of
> > > >
> > > >http://sbarnhill.mvps.org/WordFAQs/StyleRef.htm
> > > >
> > > >Or you can use a macro to update - see here for instance:
> > > >
> > > >http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=585
> > >
> > > Thanks for clearing up.
> > >
> > > --
> > > Fredrik E. Nilsen
>

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net