JS調(diào)用打印
?1
<
script??language
=
"
javascript
"
>
????
?2
function
??printsetup()
{??
?3
//
??打印頁面設(shè)置??
?4
wb.execwb(
8
,
1
);??
?5
}
??
?6
function
??printpreview()
{??
?7
//
??打印頁面預(yù)覽??
?8
?????????????????
?9
wb.execwb(
7
,
1
);??
10
?????????????????
11
}
??
12
function
??printit()??
13
{??
14
if
??(confirm('確定打印嗎?'))
{??
15
wb.execwb(
6
,
6
)??
16
}
??
17
}
??
18
</
script
>
??
19
<
OBJECT??classid
=
"
CLSID:8856F961-340A-11D0-A96B-00C04FD705A2
"
???
height
=
0
??id
=
wb??name
=
wb??width
=
3
></
OBJECT
>
??
20
<
input??class
=
"
ipt
"
??type
=
button??name
=
??button??_print??value
=
"
打印
"
????
onclick??
=
"
??javascript??:printit();
"
>
??
21
<
input??class
=
"
ipt
"
??type
=
button????name
=
button??_setup??value
=
"
打印頁面設(shè)置
"
???
onclick??
=
"
??javascript??:??printsetup();
"
>
????
22
<
input??class
=
"
ipt
"
??type
=
button????name
=
button_show??value
=
"
打印預(yù)覽
"
?????
onclick
=
"
javascript:printpreview();
"
>
????
23
<
input??class
=
"
ipt
"
??type
=
button??name
=
??button??_fh??value
=
"
關(guān)閉
"
???
onclick??
=
"
????javascript:window.close();
"
>

?2



?3

?4

?5

?6



?7

?8

?9

10

11

12

13



14



15

16

17

18

19

20

21

22

23
