天天看點

頁面 顯示PDF 内容,加載完頁面 列印

[b]涓?锛????伴〉??腑??淇℃??[/b] html椤甸??

<HTML>

<HEAD>

<TITLE>javascript???????伴〉?㈣?劇疆-???伴?瑙?浠g??</TITLE>

<META http-equiv=Content-Type content="text/html; charset=gb2312" />

<SCRIPT language=javascript>

????function printsetup(){

????// ???伴〉?㈣?劇疆

????wb.execwb(8,1);

????}

????function printpreview(){

????// ???伴〉?㈤?瑙?

????wb.execwb(7,1); ?????????? ????

????}

????function printit() ????{

????if (confirm('纭?瀹????闆??锛?')) {

????wb.execwb(6,6);

????}

????}

????</SCRIPT>

</HEAD>

<BODY>

<DIV align=center>

<OBJECT id=wb height=0 width=0 classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 name=wb></OBJECT>

<INPUT 慰nclick=javascript:printit() type=button value=????name=button_print />

<INPUT 慰nclick=javascript:printsetup(); type=button value=???伴〉?㈣?劇疆 name=button_setup />

<INPUT 慰nclick=javascript:printpreview(); type=button value=???伴?瑙? name=button_show />

???拌?ラ〉??俊??

</DIV>

</BODY>

</HTML>

[b]浜?锛??ㄩ〉??嬌??tml??object ??绛撅?灞?绀?df ??瀹癸?骞跺?ㄥ?堕〉?㈠??杞藉????锛?????/b] html 椤甸??

娉??object??绛撅?瀹?涔?涓?涓?宓??ョ??瀵矽薄??璇蜂嬌?ㄦ?ゅ??绱????ㄧ?? XHTML 椤甸?㈡坊??澶?濯?浣???姝ゅ??绱???璁告?ㄨ?瀹?????HTML ??妗d腑??瀵矽薄???版???????幫?浠ュ?????ㄦ?ユ?劇ず????浣??版????浠g????

<object> ??绛劇?ㄤ?????瀵矽薄锛?姣?濡??懼?????抽???瑙?棰???Java applets??ActiveX??PDF 浠ュ?? Flash??

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title></title>

<script language="JavaScript" for="window" event="onload" >

//alert(document.getElementById("pdfobj").object);

if(document.getElementById("pdfobj").object == null)

{

document.all["IfNoAdobeReader"].style.display = "block";

}else{

[b]wb.execwb(6,6);//???扮?椤?????锛? pdfobj.printWithDialog();//adobereader?????版?[/b]

}

</script>

<script src="../scripts/AC_ActiveX.js" type="text/javascript"></script>

<script src="../scripts/AC_RunActiveContent.js" type="text/javascript"></script>

</head>

<body>

<DIV id="IfNoAdobeReader" style="display:none"> <a href="http://aihdownload.adobe.com/bin/live/install_reader11_cn_gtba_chra_dy_aih.exe" target="_blank" rel="external nofollow" >Adobe Reader.</a> </DIV>

<object id=pdfobj classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="100%" height="1000" >

<param name="_Version" value="65539">

<param name="_ExtentX" value="20108">

<param name="_ExtentY" value="10866">

<param name="_StockProps" value="0">

<param name="SRC" value="3.pdf">

</object>

<OBJECT id=wb height=0 width=0 classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 name=wb></OBJECT>

</body>

</html>