Visual Studio 2008 and MS word Tempalte

O

olepadre

I am trying to create a letterhead template, pulling information for our
Active Directory to populate the labels. I have the "getInfo" routine setup
and it can pull information just fine. And I can easily put that information
in a label using Me.Label1.Text = ""

Here is my problem. When I attempt to put a label control in the Header of
the work document, it does not work. I can easily use Me.LabelHeader.Text =
"", but it does not render the results in the header. IF I move that Label
control out of the header it works fine.

Please help!
 
D

Doug Robbins - Word MVP

Put the information into a document variable using
ActiveDocument.Variables("varName").Value =

And display the value assigned to the variable in a document using a {
DOCVARIABLE varName } field.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top