rturner003
Programmer
I have tried several routines, on different browsers and different machines but when I try using the webbrowser control all I get is a script error of 'object doesn't support this propert or method'.
For example this is a piece of code from a MSDN page:
this comes up with 'object doesn't support this propert or method 'wbp.DefaultPrinterName''
Has anybody any ideas, it is driving me crazy and it is probably something silly!
Robert
For example this is a piece of code from a MSDN page:
HTML:
[HEAD]
[OBJECT ID="wbp"
CLASSID="CLSID:778C58A9-81B6-11D3-BB8F-00C04FA3471C"]
[/OBJECT]
[SCRIPT LANGUAGE="VBScript"]
Sub Print()
If Len(wbp.DefaultPrinterName) = 0 Then
MsgBox "No default printer!"
Exit Sub
End If
wbp.Header = "My Header"
wbp.Orientation = 2 ' Landscape
wbp.Print
End Sub
[/SCRIPT]
[/HEAD]
[BODY]
[INPUT TYPE="BUTTON" VALUE="Print" ONCLICK="Print()"]
[/BODY]
this comes up with 'object doesn't support this propert or method 'wbp.DefaultPrinterName''
Has anybody any ideas, it is driving me crazy and it is probably something silly!
Robert