Click to See Complete Forum and Search --> : VBScript & HTML - Printing


Joe
09-12-2001, 10:22 AM
What am I doing wrong? I get an error message on 'Pinter.Orientation'. The
message States Object required: 'Printer'. I thought the Printer object was
built into VB 6.0.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>
<head><META http-equiv="Content-Script-Type" content="text/tcl"><SCRIPT
type="text/vbscript">
sub Wnd_onLoad()
Printer.Orientation = vbPRORLandscape
End Sub
</SCRIPT>
<title>
</title>
</head>
<body bgcolor="white" onLoad="VBScript:Wnd_onLoad()">

Jim
12-04-2001, 06:18 AM
Visual Basic 6.0, yes, VBScript, no. This won't work in web pages, at least
as far I know. I do know that you can affect some of the printing output
using CSS.

Sorry.

Jim

"Joe" <maui664@capital.net> wrote:
>
>What am I doing wrong? I get an error message on 'Pinter.Orientation'. The
>message States Object required: 'Printer'. I thought the Printer object
was
>built into VB 6.0.
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>
><head><META http-equiv="Content-Script-Type" content="text/tcl"><SCRIPT
>type="text/vbscript">
>sub Wnd_onLoad()
> Printer.Orientation = vbPRORLandscape
>End Sub
></SCRIPT>
><title>
></title>
></head>
><body bgcolor="white" onLoad="VBScript:Wnd_onLoad()">