Reply
 
Thread Tools Display Modes
  #1   Report Post  
inadmissible3
 
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
  #2   Report Post  
Jay Freedman
 
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   Report Post  
inadmissible3
 
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   Report Post  
Jay Freedman
 
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   Report Post  
inadmissible3
 
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   Report Post  
Jay Freedman
 
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





Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I lock a language? matthewshepherd Microsoft Word Help 2 February 21st 20 03:23 AM
Why can't I change language layout back to U.S. English? WriterT Microsoft Word Help 3 November 2nd 12 01:30 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 02:20 AM
Language auto-detect stuck on US English BostonJohn Microsoft Word Help 2 December 6th 04 09:54 PM


All times are GMT +1. The time now is 10:59 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"