Custom Document Prporties

S

Suresh Reddy

Hi,
Please help me in resolving the problem with Custom
Document Prporties. I have developed one Dll to print the
word documents in VB5 by using AutoTexe Entries. Created
the component and deployed its working fine. Due to some
issues I need to change the same DLL, so when I am trying
to debug the same I am getting the error called Variable
not defined : msoPropertyTypeString. The following is the
code.

docWord.CustomDocumentProperties.Add _
Name:=msEUCPREF & msSTART, _
LinkToContent:=False, _
Value:=masLetters(0, iLetters), _
Type:=msoPropertyTypeString

Please help me in correcting the same.

Regards,
Suresh
 
H

Herfried K. Wagner [MVP]

Hello,

Suresh Reddy said:
Please help me in resolving the problem with Custom
Document Prporties. I have developed one Dll to print the
word documents in VB5 by using AutoTexe Entries. Created
the component and deployed its working fine. Due to some
issues I need to change the same DLL, so when I am trying
to debug the same I am getting the error called Variable
not defined : msoPropertyTypeString. The following is the
code.

This is a VB.NET language ng. Please turn to one of the
microsoft.public.vb.* groups.

Regards,
Herfried K. Wagner
 
C

Cindy Meister -WordMVP-

Hi Suresh,

I'd say you don't have a Reference to the MSOffice object
library. Either set a reference, or use the value 4 instead.
I am getting the error called Variable
not defined : msoPropertyTypeString. The following is the
code.

docWord.CustomDocumentProperties.Add _
Name:=msEUCPREF & msSTART, _
LinkToContent:=False, _
Value:=masLetters(0, iLetters), _
Type:=msoPropertyTypeString

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister
http://www.mvps.org/word
http://go.compuserve.com/MSOfficeForum

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 

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