i have this code :
VB Code:
  1. Sub Command1_Click()
  2.  
  3. Set IESource = New InternetExplorer
  4. Set IETarget = New InternetExplorer
  5. With IESource
  6.       .navigate "http://www.walla.co.il"
  7.       .Visible = True
  8. End With
  9.  
  10. End Sub
  11.  
  12. Private Sub IESource_DocumentComplete(ByVal pDisp As Object, URL As Variant)
  13. If (pDisp Is IESource) Then
  14.     Dim a As HTMLAnchorElement
  15.    
  16.     IESource.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER
  17.     For Each a In IESource.document.anchors
  18.         bolContinue = False
  19.         IETarget.navigate a.href
  20.         Do While Not bolContinue
  21.             DoEvents
  22.         Loop
  23.        
  24.     Next
  25. End If
  26.  
  27. End Sub
which prints a loaded html page into default printer!
how an i tell it to print to another printer that is installed and connected?
thnaks i nadvance
peleg