要做一个收据打印,谁有好的解决方案?高分求救。谢谢..

解决方案 »

  1.   

    用jxl包把数据打印到excel好了,要不去买一个报表打印器,我们公司支持了一把国内的:明宇公司的报表
      

  2.   

    <%@ page contentType="text/html; charset=GBK"%>
    <%
    String url="#"
    %><style media="print">
        .noPrint { display: none }
      </style>
      <style media="screen">
         .print { display: none }
    </style>
    <html>
    <title></title><body><jsp:include page="<%=url%>" />
    <table width="100%" class="noPrint" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="60" align="center">
    <input type=button name=button_show value="打    印" onclick="print();">
    <input type=button name=button_show value="打印预览" onclick="preview();">
    <input type=button name=button_setup value="打印设置" onclick="pageSetup();">
    </td>
     </tr>
    </table></body>
    <object id="factory" style="display:none" viewastext
    classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
    codebase="/etsc/ActiveX/ScriptX.zip#Version=6,1,430,5">
    </object>
    <script language="javascript" >
    function pageSetup()
    {
    factory.printing.PageSetup();
    }
    function preview()
    {
    setPageInfo();
    factory.printing.Preview();
    }
    function print()
    {
    setPageInfo();
    factory.printing.Print(true);
    } function setPageInfo(){
    //factory.printing.header = "&b&b第&p页/共&P页"
    //factory.printing.footer = "&b&b时间:&D&T"
    factory.printing.footer = ""
    factory.printing.leftMargin = 10
    factory.printing.topMargin = 20
    factory.printing.rightMargin = 10
    factory.printing.bottomMargin = 20
    }
    </script>
    </html>
      

  3.   

    javascript 控制格式
    webex 打印就可以了
      

  4.   

    web打印: http://www.finereport.com
      

  5.   

    请参考http://www.fcsoft.com.cn/ePrint.htm
    有问题请加msn:[email protected]