flaviooooo
Programmer
Hey,
I'm trying to open a label that was created with codesoft, from access.
I have referenced the correct reference : TK Labeling ActiveX 6.0 and my code goes as follows:
Dim MyApp As LabelManager2.Application
Dim MyDoc As LabelManager2.Document
Dim MyVars As LabelManager2.Variables
Dim var As LabelManager2.Variable
Set MyApp = New LabelManager2.Application
MyApp.Visible = True
Set MyDoc = MyApp.Documents.Open("C:/Program Files/CS6/Lab/Grondstoffen.Lab"
Set MyVars = MyDoc.Variables
...
Unfortunately i get this error 'Object variable or With block variable not set (Error 91)' when it reaches Set MyVars...
This is because the label I tried to open (Grondstoffen.Lab), didn't open in the codesoft program.
Any ideas on what could be wrong?
Thanks!
I'm trying to open a label that was created with codesoft, from access.
I have referenced the correct reference : TK Labeling ActiveX 6.0 and my code goes as follows:
Dim MyApp As LabelManager2.Application
Dim MyDoc As LabelManager2.Document
Dim MyVars As LabelManager2.Variables
Dim var As LabelManager2.Variable
Set MyApp = New LabelManager2.Application
MyApp.Visible = True
Set MyDoc = MyApp.Documents.Open("C:/Program Files/CS6/Lab/Grondstoffen.Lab"

Set MyVars = MyDoc.Variables
...
Unfortunately i get this error 'Object variable or With block variable not set (Error 91)' when it reaches Set MyVars...
This is because the label I tried to open (Grondstoffen.Lab), didn't open in the codesoft program.
Any ideas on what could be wrong?
Thanks!