|
 |
javascript thread: webbrowser and object doesn't support this property......
Message #1 by "Robert T Turner" <rturner003@b...> on Tue, 20 Nov 2001 14:28:17
|
|
Thank you for your response.
I take your point but I happen to pick a routine that was written in VBS
but the same happens if it was written JavaScript.
Robert T Turner
-----Original Message-----
From: johannes [mailto:johannes@p...]
Sent: 20 November 2001 15:48
To: javascript
Subject: [javascript] Re: webbrowser and object doesn't support this
property......
eeh, no offence but if you have VBS questions you may want to post them
to a
VBS list and not a JS list ?
----- Original Message -----
From: "Robert T Turner" <rturner003@b...>
To: "javascript" <javascript@p...>
Sent: Tuesday, November 20, 2001 14:28
Subject: [javascript] webbrowser and object doesn't support this
property......
> 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:
>
> [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]
> [/HTML]
>
> 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
>
$subst('Email.Unsub')
>
>
rturner003@b...
$subst('Email.Unsub')
|
|
 |