<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PrintView.aspx.cs" Inherits="System_GrfPrinter_PrintView" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>打印</title>
    <script type="text/javascript" src="CreateControl.js"></script>
    <script type="text/javascript" src="GRUtility.js"></script>
    <style type="text/css">
        html
        {
            height:100%;
        }
        body
        {
            margin:0px;
            height:100%;
        }
    </style>
	<script type="text/javascript">
	    var Report = "<%=xview["grf_file"]%>";
	    if (Report != "")
	        Report = "../GrfFile/" + Report;

	    var Data = "MakeXmlData.aspx?sql_print_main_session_id=<%=xview["sql_print_main_session_id"]%>&sql_print_detail_session_id=<%=xview["sql_print_detail_session_id"]%>";


	    function window_onload() {
	        AjaxReportViewerStart(ReportViewer, Data);
	    }
	</script>
</head>
<body style="margin:0" onload="window_onload()">
<script type="text/javascript">



    //打印查询
    //CreateDisplayViewer(Report,Data);
    //用打印显示控件展现报表，从URL“../grf/1a.txt”获取报表膜板定义，从URL“../data/xmlCustomer.txt”获取XML形式的报表数据，
    //打印预览
    //CreatePrintViewerEx("100%", "100%", Report, Data, true, "<param name=ShowToolbar value=false>");
    CreatePrintViewerEx("100%", "100%", Report, Data, false, "");


    
    
</script>
</body>
</html>
