Hello,
I have the following code compiled as an .exe file and it works just fine but when i try to compile it as an .dll file and run it from the web i get an error.
Here is the code :
Dim swApp As Object Dim Part As Object Dim boolstatus As Boolean Dim longstatus As Long Dim Annotation As Object Dim Gtol As Object Dim DatumTag As Object Dim FeatureData As Object Dim Feature As Object Dim Component As Object Dim PartTitle As String
Sub StartPrint() Set swApp = Server.CreateObject("SldWorks.Application") Set Part = swApp.OpenDoc2("D:\Skivetest.SLDPRT", 1, 0, 0, 0, longstatus) Set Part = swApp.ActiveDoc Part.PrintDirect swApp.CloseDoc "Skivetest" swApp.ExitApp End Sub
Here is the Error :
Object required
If someone has any experiance with this i will like to here from you.
I'm using Solidworks 2003 on a win 2000 server with sp4 just to let you know.
Regards, Websam