Custom Document Prporties

  • Thread starter Thread starter Suresh Reddy
  • Start date Start date
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
 
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
 
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
:-)
 
Back
Top