반응형
<script language="javascript">
function printWindow() {
factory.printing.header = ""
factory.printing.footer = ""
factory.printing.portrait = true
factory.printing.leftMargin = 0.45
factory.printing.topMargin = 0.45
factory.printing.rightMargin = 0.45
factory.printing.bottomMargin = 0.0
factory.printing.Print(true, window);
}
</script>
</head>
<body link=blue vlink=purple onload="printWindow();" topmargine="18">
<object id=factory style="display:none" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" codebase="/smrcptroot/print/smsx.cab#Version=6,4,438,06">
</object>
.
.
.
<%
// dataPerPage : 한 페이지에 보여줄 data 갯수
// currentPage : 현재 페이지
// totalPage : 전체 페이지
int dataPerPage = 2;
int currentPage = 0;
int totalPage = data.size() / dataPerPage;
if ((data.size() % dataPerPage) > 0) totalPage += 1;
for (int i = 0; i < totalPage; i++) {
currentPage = i + 1;
%>
function printWindow() {
factory.printing.header = ""
factory.printing.footer = ""
factory.printing.portrait = true
factory.printing.leftMargin = 0.45
factory.printing.topMargin = 0.45
factory.printing.rightMargin = 0.45
factory.printing.bottomMargin = 0.0
factory.printing.Print(true, window);
}
</script>
</head>
<body link=blue vlink=purple onload="printWindow();" topmargine="18">
<object id=factory style="display:none" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" codebase="/smrcptroot/print/smsx.cab#Version=6,4,438,06">
</object>
.
.
.
<%
// dataPerPage : 한 페이지에 보여줄 data 갯수
// currentPage : 현재 페이지
// totalPage : 전체 페이지
int dataPerPage = 2;
int currentPage = 0;
int totalPage = data.size() / dataPerPage;
if ((data.size() % dataPerPage) > 0) totalPage += 1;
for (int i = 0; i < totalPage; i++) {
currentPage = i + 1;
%>