안녕하세요.. 올만에 또 들어오네요..

1

 

(공대여자는 이쁘다 ^^;;)
저기 혹시 도트프린터기로 택배용지에 값을 찍어본적이 있거나 그런 프로그램 경험이어신가요??
택배용지에 값을 찍어야 하는데 2번째 발송장 부터 맞지가 않네요... table 노가다 해서 맞추어 놓어면
또 3번째 발송자에서 보내는사람 위치가 달라져 버리더군요... 왜 그런가 생각해본결과...
용지크기 : A4로 되어있어서 계속 A4사이즈를 찍고 그다음 그 위치(3번째 발송자중 보내는 사람의 위치) 찍기위해
다시 페이지넘기기 되어서 다시 처음부터 찍는듯 해요...  
page-break-before:always 도 당연히 먹히지 않는구나라는것을 A4 사이즈 때문이라는것을 알아내었습니다.
어제 하루종일 그것 붙들고 인쇄하고 제조정하고 꽁수도 써보고 ㅠ.ㅠ
그래서 어제 마지막으로 검색하다 프린트및 팩스 에서 오른쪽마우스 누러면 서버속성이 나오는데
양식 만들기라는것을 체크 하고 택배용지를 직접 지정하는 것을 찾아내었습니다.
로젠택배인데 30Cm 자로 재어보았는데 가로(21.80cm) * 세로(11.40cm) 이더군요.. 그래서 서버속성의 양식만들기에서
저 택배용지 사이즈를 만들어서 해보았는데... ..
일단 1장을 뽑어면 계속 물고 나가더군요 ㅠ.ㅠ (A4로 인식하는것 같음.. 인쇄할때 만들언둔 양식(택배용지양식) 선택하고 인쇄했는데???)
그리고 2장이상 뽑어면 위치가 낮았다가 높았다가 더 엉망이더군요...
세로 11.40cm 를 인식을 못하는것 같은데요...   물론 인쇄할페이지의 table 의 전체 사이즈는 11.40 cm 를 넘지 않고
table 사이에 foreach 로 루프 돌아가구요... 
scriptx 로 해서 위,아래,왼쪽,오른쪽 값 = 1 이구요.  table 로 해서 위쪽으로  td 로 공간주고(위 여백), 그리고 아래쪽으로
td로 공간주고(아래 여백)요...
어떻게 해야 할까요 ㅠ.ㅠ.. 빨리 해결해야하는데~~~
지발 도와주세요 ㅠ.ㅠ

==========================================
일부소스

<?
include "../connect.php";
include "all_pu.php";?>
<html>
<head>
<title>체크 프린트</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language=javascript>
<!--
function putSettings() {
with(factory.printing) {
header = ''; // 머릿말
footer = ''; // 꼬릿말
portrait = true; // true이면 세로 인쇄, false이면 가로 인쇄.
leftMargin = 0; // 왼쪽 여백
rightMargin = 0; // 오른쪽 여백
topMargin = 0; // 윗쪽 여백
bottomMargin = 1; // 아랫쪽 여백

}
}

function doPrint(frame) {
putSettings();
print_flag= factory.printing.Print(false, frame);
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="doPrint(window);">
<object id="factory" viewastext style="display:none"
   classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
   codebase="http://xxxxxxx.co.kr/smsx.cab#Version=6,4,438,06">
   <param name="template" value="MeadCo://IE7" />
</object>
<table width="771" border="0" cellspacing="0" cellpadding="0" height="255">
  <tr>
    <td width="168">&nbsp; </td>
    <td width="603" align="left">
      <?
    $u1 = mysql_query("select * from ttu;");
    $u2 = mysql_fetch_array($u1);

    //for($i=0; $i<sizeof($uu_uid); $i++) {
    $i = 0;
    foreach($uu_uid as $value) {
     //$q = "select * from order_go2 where uid='$u_uid[$i]'";
        $q = "select * from order_go2 where uid='$value'";
                $re1 = mysql_query($q);

                $ro1 = @mysql_fetch_array($re1);
            ?>
      <table width="323" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="62" valign="top" colspan="2">
            <table width="100" border="0" cellspacing="0" cellpadding="0" height="1">
              <tr>
                <td bgcolor="f9f9f9"></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td height="25" width="204"><font size="2" color="555555">
            <? echo $ro1[phone2]; ?>
            </font></td>
          <td height="50" rowspan="2" width="119"><font size="2" color="555555">
            <? echo $ro1[name]; ?>
            </font></td>
        </tr>
        <tr>
          <td height="25" width="204"><font size="2" color="555555">
            <? echo $ro1[phone]; ?>
            </font></td>
        </tr>
        <tr>
          <td height="4" valign="top" colspan="2"></td>
        </tr>
        <tr>
          <td height="60" valign="top" colspan="2"><font size="2" color="555555">
            <? echo $ro1[addr]; ?>
            </font></td>
        </tr>
        <tr>
          <td height="36" colspan="2">
            <table width="323" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="204" height="32"><font size="2" color="333333">055-241-5456</font></td>
                <td width="119"><font size="2" color="333333">상호명</font></td>
              </tr>
              <tr>
                <td colspan="2" height="36"><font size="2" color="333333">주소<br>
                  사이트주소</font></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <?
        $re = mysql_query("select * from ttu");
        $ro = mysql_fetch_array($re);
        ?>
          <td height="211" valign="bottom" colspan="2">
            <table width="100" border="0" cellspacing="0" cellpadding="0" height="1">
              <tr>
                <td ></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <?

    $i++;
    } // for문 끝
    ?>
    </td>
  </tr>

</table>
</body>
</html>
<?
//echo "<script>window.close()</script>"
?>

 

댓글
  • No Nickname
    No Comment
  • 권한이 없습니다.
    {{m_row.m_nick}}
    -
목록형 📅 달력형