Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

StyleRef in header not working

997 views
Skip to first unread message

Rick Strahl

unread,
Jan 8, 2000, 3:00:00 AM1/8/00
to
I'm trying to print a StyleRef at the top of my document. I can insert the
style ref fine and it appears to work fine while I'm in edit mode for the
header. The tag inserted is:

{ SYLEREF "Heading 1" \* MERGEFORMAT }

The problem is that I only get the first Heading 1 entry on all pages,
instead of the current one that should be showing for the active page.

Any idea what's wrong here? I have another document that has the identical
setup and it works fine. Not this one...

+++ Rick ---

--
-------------------------------------------------
Rick Strahl
West Wind Technologies
Paia, Hawaii

http://www.west-wind.com/
http://www.west-wind.com/wwThreads/
-------------------------------------------------
Making Waves on the Web
with Visual FoxPro


Suzanne S. Barnhill

unread,
Jan 8, 2000, 3:00:00 AM1/8/00
to
Presumably it's not just a problem of the field needing to be updated? And
the Heading 1s are for sure formatted with that style? (And presumably the
field you're using is actually a STYLEREF and not SYLEREF as you have it
below? <g>)

--
Suzanne S. Barnhill
Microsoft Word MVP
Words into Type
Fairhope, AL USA

Rick Strahl <rst...@west-wind.com> wrote in message
news:OfllBjjW$GA....@cppssbbsa02.microsoft.com...

Rick Strahl

unread,
Jan 9, 2000, 3:00:00 AM1/9/00
to
Hi Suzanne...

No it's neither of those - the latter is a typo since you can't cut and
paste the codes <g>...

It's not working though - I've messed with this for over an hour in
different combinations. It doesn't matter which style tag I use either. Any
one I use only shows the first instance, not the current one. Yet there are
Heading 1 et al tags in the right places.

The only thing that I can think of is that this document was imported from a
complex style sheet based HTML document. I did double check and even
reassign tags of various lines explicitly to make sure the tags match - same
result.

Any ideas would be appreciated - I'm at the end of mine <g>...

+++ Rick ---

--
-------------------------------------------------
Rick Strahl
West Wind Technologies
Paia, Hawaii

http://www.west-wind.com/
http://www.west-wind.com/wwThreads/
-------------------------------------------------
Making Waves on the Web
with Visual FoxPro

"Suzanne S. Barnhill" <sbar...@zebra.net> wrote in message
news:#o#PvmkW$GA.204@cppssbbsa04...

Suzanne S. Barnhill

unread,
Jan 10, 2000, 3:00:00 AM1/10/00
to
He meant he couldn't cut and paste the codes into a NG post (or anywhere
else outside Word, I think).

--
Suzanne S. Barnhill
Microsoft Word MVP
Words into Type
Fairhope, AL USA

Hank Roberts <ha...@netcom.com> wrote in message
news:85dvsj$e01$1...@nntp3.atl.mindspring.net...


> "Rick Strahl" <rst...@west-wind.com> writes:
>
> >Hi Suzanne...
>
> >No it's neither of those - the latter is a typo since you can't cut and
> >paste the codes <g>...
>

> Hmmm, I can cut and paste the codes; do you have Reveal Field Codes ON?
> Nothing works unless you do; if you can't see them, FIND can't see them.

Hank Roberts

unread,
Jan 11, 2000, 3:00:00 AM1/11/00
to

Pat...@steranka.com

unread,
Jan 11, 2000, 3:00:00 AM1/11/00
to
In article <OfllBjjW$GA....@cppssbbsa02.microsoft.com>, rstrahl@west-
wind.com says...

> I'm trying to print a StyleRef at the top of my document. I can insert the
> style ref fine and it appears to work fine while I'm in edit mode for the
> header. The tag inserted is:
>
> { SYLEREF "Heading 1" \* MERGEFORMAT }
>
> The problem is that I only get the first Heading 1 entry on all pages,
> instead of the current one that should be showing for the active page.
>
> Any idea what's wrong here? I have another document that has the identical
> setup and it works fine. Not this one...

I did this today just like you said, but it worked for me.
Of course, I ran into problems with DOCPROPERTY not updating
but that's a separate issue.

My suggestion is to first try this out with a simple document, so
you see that it can actually work. <g>

Note that in my document I had section breaks between each
"Heading 1" style, so perhaps that is what is different.
Note AFAIK you don't need to use section breaks to make this work.

Good Luck,
Pat...@Steranka.com

Jon Peltier

unread,
Feb 16, 2000, 3:00:00 AM2/16/00
to
But I think you need the section break to change the contents of the header.
Otherwise the header from the first page carries through.

- Jon
_______

In article <MPG.12e58b403...@msnews.microsoft.com>,
Pat...@Steranka.com said...

0 new messages