且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

打印面板内容时出现问题

更新时间:2022-02-11 22:35:07

hii

试试这个解决方案

http://forums.asp.net/t/1421429.aspx [ http://coding.smashingmagazine.com/2011 /11/24/how-to-set-up-a-print-style-sheet/ [ http://msdn.microsoft.com/en-us/library/aa969429%28v = vs.85%29.aspx [ ^ ]
hii

try this solutions

http://forums.asp.net/t/1421429.aspx[^]


http://coding.smashingmagazine.com/2011/11/24/how-to-set-up-a-print-style-sheet/[^]


http://msdn.microsoft.com/en-us/library/aa969429%28v=vs.85%29.aspx[^]



检查此
Hi ,
Check this
<script language="javascript" type="text/javascript">
    function CallPrint(strid) {
        var prtContent = document.getElementById(strid);
        var WinPrint = window.open('', '', 'letf=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');
        WinPrint.document.write(prtContent.innerHTML);
        WinPrint.document.close();
        WinPrint.focus();
        WinPrint.print();
        WinPrint.close();
        prtContent.innerHTML = strOldOne;
    }
</script>





<div id ="bill">
<%-- the content will be printed --%>
</div>
<asp:button id="BtnPrint" runat="server" text="Print" onclientclick="javascript:CallPrint('bill');" xmlns:asp="#unknown" />


***的问候
M.Mitwalli


Best regards
M.Mitwalli


你好,

我认为您指的是打印页面设置.请参考以下链接


http://www.mintprintables.com/print-tips/adjust-margins-windows/ [^ ]

http://browsers.about.com/od/firef2/ss/ffpagesetup.htm [ ^ ]

http://www.reedconstructiondata.com/help/smart-project-news/setting-up-smartproject-news-project-news-web-browser-and-print-options/ [
Hello,

I think you are referring to the print page setup. Please refer to the following links


http://www.mintprintables.com/print-tips/adjust-margins-windows/[^]

http://browsers.about.com/od/firef2/ss/ffpagesetup.htm[^]

http://www.reedconstructiondata.com/help/smart-project-news/setting-up-smartproject-news-project-news-web-browser-and-print-options/[^]