Hi,
I'm trying to print a document out to a specific printer and SW 2006 is having none of it.
I've followed the example here: http://help.solidworks.com/2011/English/api/sldworksapi/Print_Drawing_as_High_Quality_Example_VB.htm with my own printer but it is adamant it wants to always print to one specific printer and not the one I choose.
The code I have is:
Private Sub cmdPrintDrawings_Click()
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Dim swModelExt As SldWorks.ModelDocExtension
Dim swPageSetup As SldWorks.PageSetup
Dim lSheets(0) As Long
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
Set swPageSetup = swModel.PageSetup
swPageSetup.Orientation = 2
lSheets(0) = 0
Set swModelExt = swModel.Extension
swModelExt.PrintOut2 lSheets, 1, False, "\\\\Test\\Test Plotter", ""
End Sub
What am I doing wrong?
Thanks
SolidworksApi macros