A Microsoft Word forum. Microsoft Office Word Forum - WordBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Microsoft Office Word Forum - WordBanter forum » Microsoft Word Newsgroups » Page Layout
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

script language in header/footer



 
 
Thread Tools Display Modes
  #1  
Old May 3rd 05, 01:53 AM
inadmissible3
external usenet poster
 
Posts: n/a
Default script language in header/footer

I have inserted some script language from another software program (Amicus
Assembly) into and as a second (and subsequent) page header, but it doesn't
work...

Thank you for your patience.......

inadmissible3
Ads
  #2  
Old May 3rd 05, 04:14 AM
Jay Freedman
external usenet poster
 
Posts: n/a
Default

On Mon, 2 May 2005 17:53:01 -0700, "inadmissible3"
wrote:

I have inserted some script language from another software program (Amicus
Assembly) into and as a second (and subsequent) page header, but it doesn't
work...

Thank you for your patience.......

inadmissible3


There's no reason to believe that script language from any other
program will work in Word. A Word document's header is nothing at all
like an HTML header except for the name.

You may need to reprogram the script as a VBA macro. What is it
supposed to do? In any case, it would be best to move the discussion
to the programming newsgroup,
http://www.microsoft.com/office/comm... lang=en&cr=US.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
  #3  
Old May 3rd 05, 01:22 PM
inadmissible3
external usenet poster
 
Posts: n/a
Default

The script language from a document assembly program is like a form field
that contains case name, number, etc. so when I want to generate a document
to a particular client, and the document is more than one page in length,
this information is in the header/footer.

I have also posted the original question on the programming group as well,
but if you have any suggestions, I will listen.

Thank you.

"Jay Freedman" wrote:

On Mon, 2 May 2005 17:53:01 -0700, "inadmissible3"
wrote:

I have inserted some script language from another software program (Amicus
Assembly) into and as a second (and subsequent) page header, but it doesn't
work...

Thank you for your patience.......

inadmissible3


There's no reason to believe that script language from any other
program will work in Word. A Word document's header is nothing at all
like an HTML header except for the name.

You may need to reprogram the script as a VBA macro. What is it
supposed to do? In any case, it would be best to move the discussion
to the programming newsgroup,
http://www.microsoft.com/office/comm... lang=en&cr=US.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

  #4  
Old May 3rd 05, 03:16 PM
Jay Freedman
external usenet poster
 
Posts: n/a
Default

I suspect we're at cross purposes here about the meaning of "script
language". I understood it to mean executable code that does something, like
the VBscript or JavaScript that you can embed in an HTML page. Your later
description indicates that it's text that should appear on a (viewed or
printed) Word document. In that case it has nothing to do with macros or
programming.

If your question is how to get the text to appear on the second and
subsequent pages but not on the first page, the answer is to go to File
Page Setup, click the Layout tab, and check the box for "Different first
page". In the document, temporarily create a second page by pressing
Ctrl+Enter at the end of page 1 to insert a page break. Open the header
area. If there is text in the First Page Header, remove it. Place the text
in the header on page 2. Close the header area, and delete the page break.
Word will "remember" the header and display it on pages 2 and beyond, when
the document becomes more than one page long.

This procedure is similar to the one described at
http://sbarnhill.mvps.org/wordfaqs/Letterhead.htm. The only difference is
which header (First Page or the primary Header) you put the text into.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

inadmissible3 wrote:
The script language from a document assembly program is like a form
field that contains case name, number, etc. so when I want to
generate a document to a particular client, and the document is more
than one page in length, this information is in the header/footer.

I have also posted the original question on the programming group as
well, but if you have any suggestions, I will listen.

Thank you.

"Jay Freedman" wrote:

On Mon, 2 May 2005 17:53:01 -0700, "inadmissible3"
wrote:

I have inserted some script language from another software program
(Amicus Assembly) into and as a second (and subsequent) page
header, but it doesn't work...

Thank you for your patience.......

inadmissible3


There's no reason to believe that script language from any other
program will work in Word. A Word document's header is nothing at all
like an HTML header except for the name.

You may need to reprogram the script as a VBA macro. What is it
supposed to do? In any case, it would be best to move the discussion
to the programming newsgroup,

http://www.microsoft.com/office/comm... lang=en&cr=US.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org



  #5  
Old May 3rd 05, 06:05 PM
inadmissible3
external usenet poster
 
Posts: n/a
Default

Yes, I am using a document generating program whereby I have fields inserted
into a blank document that are populated by the information found in a client
file. What i am attempting to do is to have the case name and number as a
header on the second page and every page thereafter. The "script fields"
polulate outside the header, but do not work within a header/footer. Make
sense?

Thank you again.

"Jay Freedman" wrote:

I suspect we're at cross purposes here about the meaning of "script
language". I understood it to mean executable code that does something, like
the VBscript or JavaScript that you can embed in an HTML page. Your later
description indicates that it's text that should appear on a (viewed or
printed) Word document. In that case it has nothing to do with macros or
programming.

If your question is how to get the text to appear on the second and
subsequent pages but not on the first page, the answer is to go to File
Page Setup, click the Layout tab, and check the box for "Different first
page". In the document, temporarily create a second page by pressing
Ctrl+Enter at the end of page 1 to insert a page break. Open the header
area. If there is text in the First Page Header, remove it. Place the text
in the header on page 2. Close the header area, and delete the page break.
Word will "remember" the header and display it on pages 2 and beyond, when
the document becomes more than one page long.

This procedure is similar to the one described at
http://sbarnhill.mvps.org/wordfaqs/Letterhead.htm. The only difference is
which header (First Page or the primary Header) you put the text into.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

inadmissible3 wrote:
The script language from a document assembly program is like a form
field that contains case name, number, etc. so when I want to
generate a document to a particular client, and the document is more
than one page in length, this information is in the header/footer.

I have also posted the original question on the programming group as
well, but if you have any suggestions, I will listen.

Thank you.

"Jay Freedman" wrote:

On Mon, 2 May 2005 17:53:01 -0700, "inadmissible3"
wrote:

I have inserted some script language from another software program
(Amicus Assembly) into and as a second (and subsequent) page
header, but it doesn't work...

Thank you for your patience.......

inadmissible3

There's no reason to believe that script language from any other
program will work in Word. A Word document's header is nothing at all
like an HTML header except for the name.

You may need to reprogram the script as a VBA macro. What is it
supposed to do? In any case, it would be best to move the discussion
to the programming newsgroup,

http://www.microsoft.com/office/comm... lang=en&cr=US.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org




  #6  
Old May 3rd 05, 07:49 PM
Jay Freedman
external usenet poster
 
Posts: n/a
Default

I'm sorry, but it still isn't making much sense to me, probably
because we're using the same words with different meanings.

Word has several classes of "fields", with many specific kinds within
each class. These are the ones that seem to have the most probable
connection to what you're doing:

- Plain "fields" are the class of fields created by the Insert Field
dialog, or by pressing Ctrl+F9, or by a macro that contains an
ActiveDocument.Fields.Add statement. If you look in the Insert
Fields dialog, you'll see a couple of dozen kinds. Some that might be
used by your document creation program to display information (like
case name and number) are the Quote field, the DocProperty field, the
DocVariable field, and the Reference field. Each kind of field has a
specific purpose, as described in Word's help file, but they can often
be "bent" to other purposes. Most fields of this class operate
perfectly well in headers/footers as easily as in regular body text.

- "Form fields" are for use in a "protected form". The idea here is
that you set up a document containing both static text and changeable
fields; once the document is protected, the static text can't be
selected or edited and only the fields are available. Word prohibits
form fields in headers and footers -- so I suspect this is what you're
trying to use.

- Controls in userforms (custom dialogs) are sometimes called "fields"
although this is something of a misnomer. This isn't related at all to
your problem.

Then there are combinations of fields... If the document generating
program is inserting form fields in the body of the (protected form)
document, you can place a Reference field in the primary
(non-first-page) header to repeat that information. The form field has
a "bookmark name", which you can see in its Properties dialog; the
Reference field needs to refer to that name. See part 2 of
http://gregmaxey.mvps.org/Repeating_Data.htm for illustrated
instructions.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

On Tue, 3 May 2005 10:05:07 -0700, "inadmissible3"
wrote:

Yes, I am using a document generating program whereby I have fields inserted
into a blank document that are populated by the information found in a client
file. What i am attempting to do is to have the case name and number as a
header on the second page and every page thereafter. The "script fields"
polulate outside the header, but do not work within a header/footer. Make
sense?

Thank you again.

"Jay Freedman" wrote:

I suspect we're at cross purposes here about the meaning of "script
language". I understood it to mean executable code that does something, like
the VBscript or JavaScript that you can embed in an HTML page. Your later
description indicates that it's text that should appear on a (viewed or
printed) Word document. In that case it has nothing to do with macros or
programming.

If your question is how to get the text to appear on the second and
subsequent pages but not on the first page, the answer is to go to File
Page Setup, click the Layout tab, and check the box for "Different first
page". In the document, temporarily create a second page by pressing
Ctrl+Enter at the end of page 1 to insert a page break. Open the header
area. If there is text in the First Page Header, remove it. Place the text
in the header on page 2. Close the header area, and delete the page break.
Word will "remember" the header and display it on pages 2 and beyond, when
the document becomes more than one page long.

This procedure is similar to the one described at
http://sbarnhill.mvps.org/wordfaqs/Letterhead.htm. The only difference is
which header (First Page or the primary Header) you put the text into.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

inadmissible3 wrote:
The script language from a document assembly program is like a form
field that contains case name, number, etc. so when I want to
generate a document to a particular client, and the document is more
than one page in length, this information is in the header/footer.

I have also posted the original question on the programming group as
well, but if you have any suggestions, I will listen.

Thank you.

"Jay Freedman" wrote:

On Mon, 2 May 2005 17:53:01 -0700, "inadmissible3"
wrote:

I have inserted some script language from another software program
(Amicus Assembly) into and as a second (and subsequent) page
header, but it doesn't work...

Thank you for your patience.......

inadmissible3

There's no reason to believe that script language from any other
program will work in Word. A Word document's header is nothing at all
like an HTML header except for the name.

You may need to reprogram the script as a VBA macro. What is it
supposed to do? In any case, it would be best to move the discussion
to the programming newsgroup,

http://www.microsoft.com/office/comm... lang=en&cr=US.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org





  #7  
Old May 3rd 05, 08:11 PM
inadmissible3
external usenet poster
 
Posts: n/a
Default

Here is a sample of the script language that is from Amicus Assembly-document
assembly program-

%[Matter.CustomField("Case Name")]
%[Matter.CustomField("County")] %[Matter.CustomField("Case No.")]

When this information is filled out when setting up the case file, and I
want to generate a document, this script language translates to text and
shows to the proper case name and case number in the document. When I do
this in the body of the document, it works fine, but when i copy this script
language inside the header/footer, it will not/does not show anything but the
script language shown above.

Is there anything I can do? Thank you.
"Jay Freedman" wrote:

I'm sorry, but it still isn't making much sense to me, probably
because we're using the same words with different meanings.

Word has several classes of "fields", with many specific kinds within
each class. These are the ones that seem to have the most probable
connection to what you're doing:

- Plain "fields" are the class of fields created by the Insert Field
dialog, or by pressing Ctrl+F9, or by a macro that contains an
ActiveDocument.Fields.Add statement. If you look in the Insert
Fields dialog, you'll see a couple of dozen kinds. Some that might be
used by your document creation program to display information (like
case name and number) are the Quote field, the DocProperty field, the
DocVariable field, and the Reference field. Each kind of field has a
specific purpose, as described in Word's help file, but they can often
be "bent" to other purposes. Most fields of this class operate
perfectly well in headers/footers as easily as in regular body text.

- "Form fields" are for use in a "protected form". The idea here is
that you set up a document containing both static text and changeable
fields; once the document is protected, the static text can't be
selected or edited and only the fields are available. Word prohibits
form fields in headers and footers -- so I suspect this is what you're
trying to use.

- Controls in userforms (custom dialogs) are sometimes called "fields"
although this is something of a misnomer. This isn't related at all to
your problem.

Then there are combinations of fields... If the document generating
program is inserting form fields in the body of the (protected form)
document, you can place a Reference field in the primary
(non-first-page) header to repeat that information. The form field has
a "bookmark name", which you can see in its Properties dialog; the
Reference field needs to refer to that name. See part 2 of
http://gregmaxey.mvps.org/Repeating_Data.htm for illustrated
instructions.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

On Tue, 3 May 2005 10:05:07 -0700, "inadmissible3"
wrote:

Yes, I am using a document generating program whereby I have fields inserted
into a blank document that are populated by the information found in a client
file. What i am attempting to do is to have the case name and number as a
header on the second page and every page thereafter. The "script fields"
polulate outside the header, but do not work within a header/footer. Make
sense?

Thank you again.

"Jay Freedman" wrote:

I suspect we're at cross purposes here about the meaning of "script
language". I understood it to mean executable code that does something, like
the VBscript or JavaScript that you can embed in an HTML page. Your later
description indicates that it's text that should appear on a (viewed or
printed) Word document. In that case it has nothing to do with macros or
programming.

If your question is how to get the text to appear on the second and
subsequent pages but not on the first page, the answer is to go to File
Page Setup, click the Layout tab, and check the box for "Different first
page". In the document, temporarily create a second page by pressing
Ctrl+Enter at the end of page 1 to insert a page break. Open the header
area. If there is text in the First Page Header, remove it. Place the text
in the header on page 2. Close the header area, and delete the page break.
Word will "remember" the header and display it on pages 2 and beyond, when
the document becomes more than one page long.

This procedure is similar to the one described at
http://sbarnhill.mvps.org/wordfaqs/Letterhead.htm. The only difference is
which header (First Page or the primary Header) you put the text into.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

inadmissible3 wrote:
The script language from a document assembly program is like a form
field that contains case name, number, etc. so when I want to
generate a document to a particular client, and the document is more
than one page in length, this information is in the header/footer.

I have also posted the original question on the programming group as
well, but if you have any suggestions, I will listen.

Thank you.

"Jay Freedman" wrote:

On Mon, 2 May 2005 17:53:01 -0700, "inadmissible3"
wrote:

I have inserted some script language from another software program
(Amicus Assembly) into and as a second (and subsequent) page
header, but it doesn't work...

Thank you for your patience.......

inadmissible3

There's no reason to believe that script language from any other
program will work in Word. A Word document's header is nothing at all
like an HTML header except for the name.

You may need to reprogram the script as a VBA macro. What is it
supposed to do? In any case, it would be best to move the discussion
to the programming newsgroup,

http://www.microsoft.com/office/comm... lang=en&cr=US.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org





  #8  
Old May 3rd 05, 09:30 PM
Jay Freedman
external usenet poster
 
Posts: n/a
Default

Ah, the light is starting to dawn...

What I suspect is happening is that Amicus Assembly does a
find-and-replace operation during the generation, looking for things
surrounded by the %[ and ] markers and replacing them with data
according to the quoted name.

The problem is that headers and footers are in a separate area of the
file (Word's technical term is "story") from the main text, and a
find-and-replace operation has to do some special work to find things
in those other stories. (This is explained at
http://www.word.mvps.org/FAQs/Custom...ceAnywhere.htm.) It
seems that Amicus Assembly doesn't do that extra work.

You might try bookmarking the scripts in the body text and using
cross-references to those bookmarks in the header. There's a gotcha
there, as well, though: when Amicus Assembly replaces the scripts, it
will probably overwrite and destroy the bookmarks (extra work is
required to keep them), and then the cross-references will show error
messages to the effect that the bookmarks don't exist.

I don't think there's really anything you can do except complain to
the company (Gavel & Gown Software) that their product lacks
functionality that you need. Send them the URL cited above, and
request an update.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

On Tue, 3 May 2005 12:11:07 -0700, "inadmissible3"
wrote:

Here is a sample of the script language that is from Amicus Assembly-document
assembly program-

%[Matter.CustomField("Case Name")]
%[Matter.CustomField("County")] %[Matter.CustomField("Case No.")]

When this information is filled out when setting up the case file, and I
want to generate a document, this script language translates to text and
shows to the proper case name and case number in the document. When I do
this in the body of the document, it works fine, but when i copy this script
language inside the header/footer, it will not/does not show anything but the
script language shown above.

Is there anything I can do? Thank you.
"Jay Freedman" wrote:

I'm sorry, but it still isn't making much sense to me, probably
because we're using the same words with different meanings.

Word has several classes of "fields", with many specific kinds within
each class. These are the ones that seem to have the most probable
connection to what you're doing:

- Plain "fields" are the class of fields created by the Insert Field
dialog, or by pressing Ctrl+F9, or by a macro that contains an
ActiveDocument.Fields.Add statement. If you look in the Insert
Fields dialog, you'll see a couple of dozen kinds. Some that might be
used by your document creation program to display information (like
case name and number) are the Quote field, the DocProperty field, the
DocVariable field, and the Reference field. Each kind of field has a
specific purpose, as described in Word's help file, but they can often
be "bent" to other purposes. Most fields of this class operate
perfectly well in headers/footers as easily as in regular body text.

- "Form fields" are for use in a "protected form". The idea here is
that you set up a document containing both static text and changeable
fields; once the document is protected, the static text can't be
selected or edited and only the fields are available. Word prohibits
form fields in headers and footers -- so I suspect this is what you're
trying to use.

- Controls in userforms (custom dialogs) are sometimes called "fields"
although this is something of a misnomer. This isn't related at all to
your problem.

Then there are combinations of fields... If the document generating
program is inserting form fields in the body of the (protected form)
document, you can place a Reference field in the primary
(non-first-page) header to repeat that information. The form field has
a "bookmark name", which you can see in its Properties dialog; the
Reference field needs to refer to that name. See part 2 of
http://gregmaxey.mvps.org/Repeating_Data.htm for illustrated
instructions.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

On Tue, 3 May 2005 10:05:07 -0700, "inadmissible3"
wrote:

Yes, I am using a document generating program whereby I have fields inserted
into a blank document that are populated by the information found in a client
file. What i am attempting to do is to have the case name and number as a
header on the second page and every page thereafter. The "script fields"
polulate outside the header, but do not work within a header/footer. Make
sense?

Thank you again.

"Jay Freedman" wrote:

I suspect we're at cross purposes here about the meaning of "script
language". I understood it to mean executable code that does something, like
the VBscript or JavaScript that you can embed in an HTML page. Your later
description indicates that it's text that should appear on a (viewed or
printed) Word document. In that case it has nothing to do with macros or
programming.

If your question is how to get the text to appear on the second and
subsequent pages but not on the first page, the answer is to go to File
Page Setup, click the Layout tab, and check the box for "Different first
page". In the document, temporarily create a second page by pressing
Ctrl+Enter at the end of page 1 to insert a page break. Open the header
area. If there is text in the First Page Header, remove it. Place the text
in the header on page 2. Close the header area, and delete the page break.
Word will "remember" the header and display it on pages 2 and beyond, when
the document becomes more than one page long.

This procedure is similar to the one described at
http://sbarnhill.mvps.org/wordfaqs/Letterhead.htm. The only difference is
which header (First Page or the primary Header) you put the text into.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

inadmissible3 wrote:
The script language from a document assembly program is like a form
field that contains case name, number, etc. so when I want to
generate a document to a particular client, and the document is more
than one page in length, this information is in the header/footer.

I have also posted the original question on the programming group as
well, but if you have any suggestions, I will listen.

Thank you.

"Jay Freedman" wrote:

On Mon, 2 May 2005 17:53:01 -0700, "inadmissible3"
wrote:

I have inserted some script language from another software program
(Amicus Assembly) into and as a second (and subsequent) page
header, but it doesn't work...

Thank you for your patience.......

inadmissible3

There's no reason to believe that script language from any other
program will work in Word. A Word document's header is nothing at all
like an HTML header except for the name.

You may need to reprogram the script as a VBA macro. What is it
supposed to do? In any case, it would be best to move the discussion
to the programming newsgroup,

http://www.microsoft.com/office/comm... lang=en&cr=US.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org






  #9  
Old May 3rd 05, 10:08 PM
Suzanne S. Barnhill
external usenet poster
 
Posts: n/a
Default

Alternatively, if the desired text appears in the document itself and the
field is formatted with a unique character style (which can be identical to
the Default Paragraph Font), a StyleRef field in the header will pick up the
text as it is replaced.

--
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.

"Jay Freedman" wrote in message
...
Ah, the light is starting to dawn...

What I suspect is happening is that Amicus Assembly does a
find-and-replace operation during the generation, looking for things
surrounded by the %[ and ] markers and replacing them with data
according to the quoted name.

The problem is that headers and footers are in a separate area of the
file (Word's technical term is "story") from the main text, and a
find-and-replace operation has to do some special work to find things
in those other stories. (This is explained at
http://www.word.mvps.org/FAQs/Custom...ceAnywhere.htm.) It
seems that Amicus Assembly doesn't do that extra work.

You might try bookmarking the scripts in the body text and using
cross-references to those bookmarks in the header. There's a gotcha
there, as well, though: when Amicus Assembly replaces the scripts, it
will probably overwrite and destroy the bookmarks (extra work is
required to keep them), and then the cross-references will show error
messages to the effect that the bookmarks don't exist.

I don't think there's really anything you can do except complain to
the company (Gavel & Gown Software) that their product lacks
functionality that you need. Send them the URL cited above, and
request an update.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

On Tue, 3 May 2005 12:11:07 -0700, "inadmissible3"
wrote:

Here is a sample of the script language that is from Amicus

Assembly-document
assembly program-

%[Matter.CustomField("Case Name")]
%[Matter.CustomField("County")] %[Matter.CustomField("Case No.")]

When this information is filled out when setting up the case file, and I
want to generate a document, this script language translates to text and
shows to the proper case name and case number in the document. When I do
this in the body of the document, it works fine, but when i copy this

script
language inside the header/footer, it will not/does not show anything but

the
script language shown above.

Is there anything I can do? Thank you.
"Jay Freedman" wrote:

I'm sorry, but it still isn't making much sense to me, probably
because we're using the same words with different meanings.

Word has several classes of "fields", with many specific kinds within
each class. These are the ones that seem to have the most probable
connection to what you're doing:

- Plain "fields" are the class of fields created by the Insert Field
dialog, or by pressing Ctrl+F9, or by a macro that contains an
ActiveDocument.Fields.Add statement. If you look in the Insert
Fields dialog, you'll see a couple of dozen kinds. Some that might be
used by your document creation program to display information (like
case name and number) are the Quote field, the DocProperty field, the
DocVariable field, and the Reference field. Each kind of field has a
specific purpose, as described in Word's help file, but they can often
be "bent" to other purposes. Most fields of this class operate
perfectly well in headers/footers as easily as in regular body text.

- "Form fields" are for use in a "protected form". The idea here is
that you set up a document containing both static text and changeable
fields; once the document is protected, the static text can't be
selected or edited and only the fields are available. Word prohibits
form fields in headers and footers -- so I suspect this is what you're
trying to use.

- Controls in userforms (custom dialogs) are sometimes called "fields"
although this is something of a misnomer. This isn't related at all to
your problem.

Then there are combinations of fields... If the document generating
program is inserting form fields in the body of the (protected form)
document, you can place a Reference field in the primary
(non-first-page) header to repeat that information. The form field has
a "bookmark name", which you can see in its Properties dialog; the
Reference field needs to refer to that name. See part 2 of
http://gregmaxey.mvps.org/Repeating_Data.htm for illustrated
instructions.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

On Tue, 3 May 2005 10:05:07 -0700, "inadmissible3"
wrote:

Yes, I am using a document generating program whereby I have fields

inserted
into a blank document that are populated by the information found in a

client
file. What i am attempting to do is to have the case name and number

as a
header on the second page and every page thereafter. The "script

fields"
polulate outside the header, but do not work within a header/footer.

Make
sense?

Thank you again.

"Jay Freedman" wrote:

I suspect we're at cross purposes here about the meaning of "script
language". I understood it to mean executable code that does

something, like
the VBscript or JavaScript that you can embed in an HTML page. Your

later
description indicates that it's text that should appear on a (viewed

or
printed) Word document. In that case it has nothing to do with

macros or
programming.

If your question is how to get the text to appear on the second and
subsequent pages but not on the first page, the answer is to go to

File
Page Setup, click the Layout tab, and check the box for "Different

first
page". In the document, temporarily create a second page by pressing
Ctrl+Enter at the end of page 1 to insert a page break. Open the

header
area. If there is text in the First Page Header, remove it. Place

the text
in the header on page 2. Close the header area, and delete the page

break.
Word will "remember" the header and display it on pages 2 and

beyond, when
the document becomes more than one page long.

This procedure is similar to the one described at
http://sbarnhill.mvps.org/wordfaqs/Letterhead.htm. The only

difference is
which header (First Page or the primary Header) you put the text

into.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

inadmissible3 wrote:
The script language from a document assembly program is like a

form
field that contains case name, number, etc. so when I want to
generate a document to a particular client, and the document is

more
than one page in length, this information is in the header/footer.

I have also posted the original question on the programming group

as
well, but if you have any suggestions, I will listen.

Thank you.

"Jay Freedman" wrote:

On Mon, 2 May 2005 17:53:01 -0700, "inadmissible3"
wrote:

I have inserted some script language from another software

program
(Amicus Assembly) into and as a second (and subsequent) page
header, but it doesn't work...

Thank you for your patience.......

inadmissible3

There's no reason to believe that script language from any other
program will work in Word. A Word document's header is nothing at

all
like an HTML header except for the name.

You may need to reprogram the script as a VBA macro. What is it
supposed to do? In any case, it would be best to move the

discussion
to the programming newsgroup,


http://www.microsoft.com/office/comm... lang=en&cr=US.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org







  #10  
Old May 3rd 05, 11:14 PM
inadmissible3
external usenet poster
 
Posts: n/a
Default

Suzanne,

How do I do this StyleRef field?

Thank you.

"Suzanne S. Barnhill" wrote:

Alternatively, if the desired text appears in the document itself and the
field is formatted with a unique character style (which can be identical to
the Default Paragraph Font), a StyleRef field in the header will pick up the
text as it is replaced.

--
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.

"Jay Freedman" wrote in message
...
Ah, the light is starting to dawn...

What I suspect is happening is that Amicus Assembly does a
find-and-replace operation during the generation, looking for things
surrounded by the %[ and ] markers and replacing them with data
according to the quoted name.

The problem is that headers and footers are in a separate area of the
file (Word's technical term is "story") from the main text, and a
find-and-replace operation has to do some special work to find things
in those other stories. (This is explained at
http://www.word.mvps.org/FAQs/Custom...ceAnywhere.htm.) It
seems that Amicus Assembly doesn't do that extra work.

You might try bookmarking the scripts in the body text and using
cross-references to those bookmarks in the header. There's a gotcha
there, as well, though: when Amicus Assembly replaces the scripts, it
will probably overwrite and destroy the bookmarks (extra work is
required to keep them), and then the cross-references will show error
messages to the effect that the bookmarks don't exist.

I don't think there's really anything you can do except complain to
the company (Gavel & Gown Software) that their product lacks
functionality that you need. Send them the URL cited above, and
request an update.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

On Tue, 3 May 2005 12:11:07 -0700, "inadmissible3"
wrote:

Here is a sample of the script language that is from Amicus

Assembly-document
assembly program-

%[Matter.CustomField("Case Name")]
%[Matter.CustomField("County")] %[Matter.CustomField("Case No.")]

When this information is filled out when setting up the case file, and I
want to generate a document, this script language translates to text and
shows to the proper case name and case number in the document. When I do
this in the body of the document, it works fine, but when i copy this

script
language inside the header/footer, it will not/does not show anything but

the
script language shown above.

Is there anything I can do? Thank you.
"Jay Freedman" wrote:

I'm sorry, but it still isn't making much sense to me, probably
because we're using the same words with different meanings.

Word has several classes of "fields", with many specific kinds within
each class. These are the ones that seem to have the most probable
connection to what you're doing:

- Plain "fields" are the class of fields created by the Insert Field
dialog, or by pressing Ctrl+F9, or by a macro that contains an
ActiveDocument.Fields.Add statement. If you look in the Insert
Fields dialog, you'll see a couple of dozen kinds. Some that might be
used by your document creation program to display information (like
case name and number) are the Quote field, the DocProperty field, the
DocVariable field, and the Reference field. Each kind of field has a
specific purpose, as described in Word's help file, but they can often
be "bent" to other purposes. Most fields of this class operate
perfectly well in headers/footers as easily as in regular body text.

- "Form fields" are for use in a "protected form". The idea here is
that you set up a document containing both static text and changeable
fields; once the document is protected, the static text can't be
selected or edited and only the fields are available. Word prohibits
form fields in headers and footers -- so I suspect this is what you're
trying to use.

- Controls in userforms (custom dialogs) are sometimes called "fields"
although this is something of a misnomer. This isn't related at all to
your problem.

Then there are combinations of fields... If the document generating
program is inserting form fields in the body of the (protected form)
document, you can place a Reference field in the primary
(non-first-page) header to repeat that information. The form field has
a "bookmark name", which you can see in its Properties dialog; the
Reference field needs to refer to that name. See part 2 of
http://gregmaxey.mvps.org/Repeating_Data.htm for illustrated
instructions.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

On Tue, 3 May 2005 10:05:07 -0700, "inadmissible3"
wrote:

Yes, I am using a document generating program whereby I have fields

inserted
into a blank document that are populated by the information found in a

client
file. What i am attempting to do is to have the case name and number

as a
header on the second page and every page thereafter. The "script

fields"
polulate outside the header, but do not work within a header/footer.

Make
sense?

Thank you again.

"Jay Freedman" wrote:

I suspect we're at cross purposes here about the meaning of "script
language". I understood it to mean executable code that does

something, like
the VBscript or JavaScript that you can embed in an HTML page. Your

later
description indicates that it's text that should appear on a (viewed

or
printed) Word document. In that case it has nothing to do with

macros or
programming.

If your question is how to get the text to appear on the second and
subsequent pages but not on the first page, the answer is to go to

File
Page Setup, click the Layout tab, and check the box for "Different

first
page". In the document, temporarily create a second page by pressing
Ctrl+Enter at the end of page 1 to insert a page break. Open the

header
area. If there is text in the First Page Header, remove it. Place

the text
in the header on page 2. Close the header area, and delete the page

break.
Word will "remember" the header and display it on pages 2 and

beyond, when
the document becomes more than one page long.

This procedure is similar to the one described at
http://sbarnhill.mvps.org/wordfaqs/Letterhead.htm. The only

difference is
which header (First Page or the primary Header) you put the text

into.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

inadmissible3 wrote:
The script language from a document assembly program is like a

form
field that contains case name, number, etc. so when I want to
generate a document to a particular client, and the document is

more
than one page in length, this information is in the header/footer.

I have also posted the original question on the programming group

as
well, but if you have any suggestions, I will listen.

Thank you.

"Jay Freedman" wrote:

On Mon, 2 May 2005 17:53:01 -0700, "inadmissible3"
wrote:

I have inserted some script language from another software

program
(Amicus Assembly) into and as a second (and subsequent) page
header, but it doesn't work...

Thank you for your patience.......

inadmissible3

There's no reason to believe that script language from any other
program will work in Word. A Word document's header is nothing at

all
like an HTML header except for the name.

You may need to reprogram the script as a VBA macro. What is it
supposed to do? In any case, it would be best to move the

discussion
to the programming newsgroup,


http://www.microsoft.com/office/comm... lang=en&cr=US.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org








 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't I change language layout back to U.S. English? WriterT Microsoft Word Help 3 November 2nd 12 12:30 PM
How do I lock a language? matthewshepherd Microsoft Word Help 1 April 29th 05 06:02 PM
Chinese language setting Robyn Microsoft Word Help 1 April 27th 05 02:00 AM
Why is the header/footer sometimes missing? No Spam Please New Users 5 February 10th 05 01:20 AM
Language auto-detect stuck on US English BostonJohn Microsoft Word Help 2 December 6th 04 08:54 PM


All times are GMT +1. The time now is 08:30 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2004-2018 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.