테러보이님 계십니까?
개인적인 질문인데요..
http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=25297
여기에 나온 프린트 제어를 할려면 smartx.cab 를 따로 올려야 합니까? 조언을 주시옵소서
http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=25297
여기에 나온 프린트 제어를 할려면 smartx.cab 를 따로 올려야 합니까? 조언을 주시옵소서
댓글 7개
Terrorboys
14년 전
<div id="print">
<object id=factory viewastext style="display:none"
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
codebase="scriptX.cab#Version=6,1,431,8">
</object>
여기부분 출력할레요.
</div>
<a href="#" onclick="printArea()">인쇄하기</a>
<script type="text/javascript">
<!--
var initBody;
function beforePrint() {
prints = document.body.innerHTML;
document.body.innerHTML = document.getElementById('print').innerHTML;
}
function afterPrint() {
document.body.innerHTML = prints;
}
function printArea() {
factory.printing.header = ""
factory.printing.footer = ""
factory.printing.portrait = true // true 세로출력 , false 가로출력
factory.printing.leftMargin = 10
factory.printing.topMargin = 10
factory.printing.rightMargin = 10
factory.printing.bottomMargin = 10
window.print();
}
window.onbeforeprint = beforePrint;
window.onafterprint = afterPrint;
-->
</script>
해당 소스 그대로 했을때는 정상작동합니다만...
<object id=factory viewastext style="display:none"
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
codebase="scriptX.cab#Version=6,1,431,8">
</object>
여기부분 출력할레요.
</div>
<a href="#" onclick="printArea()">인쇄하기</a>
<script type="text/javascript">
<!--
var initBody;
function beforePrint() {
prints = document.body.innerHTML;
document.body.innerHTML = document.getElementById('print').innerHTML;
}
function afterPrint() {
document.body.innerHTML = prints;
}
function printArea() {
factory.printing.header = ""
factory.printing.footer = ""
factory.printing.portrait = true // true 세로출력 , false 가로출력
factory.printing.leftMargin = 10
factory.printing.topMargin = 10
factory.printing.rightMargin = 10
factory.printing.bottomMargin = 10
window.print();
}
window.onbeforeprint = beforePrint;
window.onafterprint = afterPrint;
-->
</script>
해당 소스 그대로 했을때는 정상작동합니다만...
Torrious
14년 전
<input type=button value='인쇄' onclick="javascript:printArea()">
이렇게 하니까 나오긴 하네요.
프린트 옵션 중에
function printArea() {
factory.printing.header = ""
factory.printing.footer = ""
factory.printing.portrait = true // true 세로출력 , false 가로출력
factory.printing.leftMargin = 10
factory.printing.topMargin = 10
factory.printing.rightMargin = 10
factory.printing.bottomMargin = 10
factory.printing.Preview();
window.print();
}
이건 다 되는데
factory.printing.printBackground = true ← 요놈이 안되네요. 백그라운드도 출력해야 하는데 말이죠 ㅠㅠ
이렇게 하니까 나오긴 하네요.
프린트 옵션 중에
function printArea() {
factory.printing.header = ""
factory.printing.footer = ""
factory.printing.portrait = true // true 세로출력 , false 가로출력
factory.printing.leftMargin = 10
factory.printing.topMargin = 10
factory.printing.rightMargin = 10
factory.printing.bottomMargin = 10
factory.printing.Preview();
window.print();
}
이건 다 되는데
factory.printing.printBackground = true ← 요놈이 안되네요. 백그라운드도 출력해야 하는데 말이죠 ㅠㅠ
Terrorboys
14년 전
데가 올린 옵션이외에는 작동이 잘안되서 빼버렸습니다. ㅠ.ㅠ;
아마 저도 잘안되서 소스상에서도 표기를 안했습니다. ^^
아마 저도 잘안되서 소스상에서도 표기를 안했습니다. ^^
eVerRock
14년 전
고급기능은 라이센스가 있어야 합니다 ㅋㅋ
http://www.meadroid.com/scriptx/clientside.asp
http://www.meadroid.com/scriptx/clientside.asp
게시판 목록
자유게시판
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 공지 |
|
2주 전 | 50 | |
| 199718 |
|
2주 전 | 31 | |
| 199717 | 1개월 전 | 29 | ||
| 199716 |
느긋한카키쿠키
|
1개월 전 | 19 | |
| 199715 |
현대적인무질서한까마귀
|
1개월 전 | 22 | |
| 199714 | 1개월 전 | 33 | ||
| 199713 | 1개월 전 | 41 | ||
| 199712 | 1개월 전 | 302 | ||
| 199711 |
안졸리니졸리니
|
1개월 전 | 150 | |
| 199710 |
|
1개월 전 | 164 | |
| 199709 |
|
1개월 전 | 96 | |
| 199708 | 1개월 전 | 110 | ||
| 199707 | 2개월 전 | 245 | ||
| 199706 | 2개월 전 | 46 | ||
| 199705 | 2개월 전 | 30 | ||
| 199704 | 2개월 전 | 55 | ||
| 199703 | 2개월 전 | 59 | ||
| 199702 | 2개월 전 | 103 | ||
| 199701 | 2개월 전 | 113 | ||
| 199700 | 2개월 전 | 85 | ||
| 199699 | 2개월 전 | 91 | ||
| 199698 | 2개월 전 | 139 | ||
| 199697 | 2개월 전 | 102 | ||
| 199696 |
|
2개월 전 | 251 | |
| 199695 | 2개월 전 | 96 | ||
| 199694 | 2개월 전 | 124 | ||
| 199693 | 2개월 전 | 191 | ||
| 199692 | 2개월 전 | 205 | ||
| 199691 |
|
2개월 전 | 178 | |
| 199690 | 2개월 전 | 265 | ||
| 199689 | 2개월 전 | 164 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기