我试过这个
<script type="text/javascript">
function PrintPage() {
window.print("~/images/Dowload%20Re.JPG");
}
</script>
<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/images/Print.JPG" Style="margin-top: 14px" Height="90px" Width="89px" OnClientClick="javascript:PrintPage();" />
从文件夹中获取PDF文件,然后在按钮上单击应打印的文件
答案 0 :(得分:0)
$("#generateprint").click(function(){
window.location.href ="your link path here===just like http:8080//google.com;
});
Bootstrap按钮
<a href="#" id="generateprint" class="btn btn-default actions-icons"
role="button" data-original-title="print"><span class="glyphicon glyphicon-print" aria-hidden="true" alt="print"
style="color: #0099ff;"></span> </a>