replyrpatil
Programmer
Dose any one know how to search application name or how to add other application to CreateObject . For example the code below will open WORD and prints word document “Wordtest” from MS access , I need to do similar thing BUT for a different application ( Instead of Word I want to Open EasyLabel). I know WORD, EXCEL ,POWER POINT etc are COM application supported my MS Access.
Is there a way to add a different application to this list
Function PrintDoc()
Dim WordObj As Object
Set WordObj = CreateObject("Word.Application")
WordObj.Documents.Open "C:\Wordtest.doc"
WordObj.PrintOut Background:=False
WordObj.Quit
Set WordObj = Nothing
End Function
So I wrote this
Function Elabel()
Dim EasyLb As Object
Set EasyLb = CreateObject("EasyLabel.Application")
EasyLb.Documents.Open "C:\test.fmt"
EasyLb.PrintOut Background:=False
EasyLb.Quit
Set EasyLb = Nothing
End Function
This gives me error that ActiveX cannot create object
How do I search application names that are supported by ActiveX or how can we add other application to createobject ( why did the programmer put WORD.Application where did he come to know this .
My main aim it to print a Barcode template in EasyLabel from MS Access
The following code opens the template in easylabel but I want to print not open
'FmtPath = "C:\Program Files\Tharo\EASYLABEL Platinum\easy.exe C:\test.fmt"
'RetVal = Shell(FmtPath, vbMaximizedFocus)
CAN ANY ONE SUGGEST ME SOME SOLUTION
Thanks
Is there a way to add a different application to this list
Function PrintDoc()
Dim WordObj As Object
Set WordObj = CreateObject("Word.Application")
WordObj.Documents.Open "C:\Wordtest.doc"
WordObj.PrintOut Background:=False
WordObj.Quit
Set WordObj = Nothing
End Function
So I wrote this
Function Elabel()
Dim EasyLb As Object
Set EasyLb = CreateObject("EasyLabel.Application")
EasyLb.Documents.Open "C:\test.fmt"
EasyLb.PrintOut Background:=False
EasyLb.Quit
Set EasyLb = Nothing
End Function
This gives me error that ActiveX cannot create object
How do I search application names that are supported by ActiveX or how can we add other application to createobject ( why did the programmer put WORD.Application where did he come to know this .
My main aim it to print a Barcode template in EasyLabel from MS Access
The following code opens the template in easylabel but I want to print not open
'FmtPath = "C:\Program Files\Tharo\EASYLABEL Platinum\easy.exe C:\test.fmt"
'RetVal = Shell(FmtPath, vbMaximizedFocus)
CAN ANY ONE SUGGEST ME SOME SOLUTION
Thanks