1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Page.aspx.cs" Inherits="EMIS.Web.ReportViewer.Page" %>
- <%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
- <%@ Register assembly="EMIS.Web" namespace="EMIS.Web.Controls" tagprefix="cc1" %>
- <!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>
- <meta http-equiv="X-UA-Compatible" content="IE=8" />
- <script type="text/javascript" src="../Scripts/Bowin.Control.Core/jquery.min.js"></script>
- <script type="text/javascript">
- var backgroundUrl = <%= Request.Params["BackGroundImage"] == null ? "null" : ("'" + Request.Params["BackGroundImage"] + "'")%>;
- $(function () {
- Sys.Application.add_load(function () {
- var container = $("#reportViewer_fixedTable tr td div[id^=VisibleReportContentreportViewer_]").parent();
- var offset = container.offset();
- var height = $(window).height() - offset.top;
- var width = $(window).width() - offset.left;
- container.width(width);
- container.height(height);
- container.css("overflow-y", "auto");
- if (backgroundUrl) {
- container.css("background-image", "url(" + backgroundUrl + ")");
- container.css("background-repeat", "no-repeat");
- }
- });
- })
- </script>
- </head>
- <body margin="0" style="margin: 0px">
- <form id="form1" runat="server">
- <asp:ScriptManager ID="ScriptManager1" runat="server">
- </asp:ScriptManager>
- <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true" UpdateMode="Always" RenderMode="Block">
- <ContentTemplate>
- <cc1:CompatibleReportViewer ID="reportViewer" runat="server" Width="100%" Height="100%">
- </cc1:CompatibleReportViewer>
- </ContentTemplate>
- </asp:UpdatePanel>
-
- <object id="ReportViewer1_PrintObj" classid="CLSID:5554DCB0-700B-498D-9B58-4E40E5814405" codebase="/Reserved.ReportViewerWebControl.axd?Culture=2052&CultureOverrides=True&UICulture=2052&UICultureOverrides=True&ReportStack=1&ControlID=57e8d903ef7748f7a0c02a1c6bdb851d&Mode=true&OpType=PrintCab&Arch=X86#Version=2009,100,1750,0" style="display: none;"
- VIEWASTEXT=""></object>
- </form>
- </body>
- </html>
|