日期:2014-05-17  浏览次数:20645 次

Jsp页面打印
jsp分页打印,每个页面都设置页眉页脚,并且页眉页脚是图片,知道的高手指导下。

4Fang在线的就别说了,不现实。。

------解决方案--------------------
GZ .........
 帮顶
------解决方案--------------------
<center class="noprint">
<OBJECT id="WebBrowser" height="0" width="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" VIEWASTEXT> </OBJECT>
<input type="button" class="small_bt_bg1" onclick="document.all.WebBrowser.ExecWB(6,6)" value="打印">
<input type="button" class="small_bt_bg1" onclick="document.all.WebBrowser.ExecWB(8,1)" value="设置">
<input type="button" class="small_bt_bg1" onclick="document.all.WebBrowser.ExecWB(7,1)" value="预览">
<input type="button" class="small_bt_bg1" onclick="document.all.WebBrowser.ExecWB(45,1)" value="关闭">
&nbsp;&nbsp;
<a href="#" onclick="history.back(-1)" >中心表格模式</a>&nbsp;&nbsp;
<a href="#">总站表格模式</a>
</center>
------解决方案--------------------
如果你想要直接將網頁(HTML+CSS)做成分頁然後列印,那勸你放棄比較好,
因為變數太多,例如字型大小,瀏覽器不同,行內資訊太多造成換行等等,
都會讓結果無法剛好符合一個頁面。

所以報表式列印都會朝server端處理來做,通常都是先將資料轉成PDF,然後讓使用者下載列印。
------解决方案--------------------
你这图片跟页数有关系吗?

没关系的话就是个单纯的分页问题 ??