vbs question

A

Ana Rita

Hello to all.

I'm trying to create a word document, with this code in
vbs.

Set oWord = CreateObject("Word.Application")

With oWord

.documents.add(strPathDoc), true

Then I use the

..ActiveDocument.Bookmarks("xpto").Select
..Selection.TypeText "Hello"

To populate the bookmarks in my template.dot.

When I visualize the document "oWord.visible=true", it is
not read only.

I suppose that the "oWord.document.add(strPathDoc), true"
will set the document to read only, but I was wrong.

Can anyone help me?

Thanks.

Best wishes.

Ana Rita
 
K

Kevin Spencer

This question has absolutely nothing to do with ASP.Net. You might want to
post it on an ASP newsgroup, or an Office newsgroup.

--
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

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

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top