Page.aspx 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Page.aspx.cs" Inherits="EMIS.Web.ReportViewer.Page" %>
  2. <%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
  3. <%@ Register assembly="EMIS.Web" namespace="EMIS.Web.Controls" tagprefix="cc1" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head runat="server">
  7. <title></title>
  8. <meta http-equiv="X-UA-Compatible" content="IE=8" />
  9. <script type="text/javascript" src="../Scripts/Bowin.Control.Core/jquery-1.8.0.min.js"></script>
  10. <script type="text/javascript">
  11. var backgroundUrl = <%= Request.Params["BackGroundImage"] == null ? "null" : ("'" + Request.Params["BackGroundImage"] + "'")%>;
  12. $(function () {
  13. Sys.Application.add_load(function () {
  14. var container = $("#reportViewer_fixedTable tr td div[id^=VisibleReportContentreportViewer_]").parent();
  15. var offset = container.offset();
  16. var height = $(window).height() - offset.top;
  17. var width = $(window).width() - offset.left;
  18. container.width(width);
  19. container.height(height);
  20. container.css("overflow-y", "auto");
  21. if (backgroundUrl) {
  22. container.css("background-image", "url(" + backgroundUrl + ")");
  23. container.css("background-repeat", "no-repeat");
  24. }
  25. });
  26. })
  27. </script>
  28. </head>
  29. <body margin="0" style="margin: 0px">
  30. <form id="form1" runat="server">
  31. <asp:ScriptManager ID="ScriptManager1" runat="server">
  32. </asp:ScriptManager>
  33. <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true" UpdateMode="Always" RenderMode="Block">
  34. <ContentTemplate>
  35. <cc1:CompatibleReportViewer ID="reportViewer" runat="server" Width="100%" Height="100%">
  36. </cc1:CompatibleReportViewer>
  37. </ContentTemplate>
  38. </asp:UpdatePanel>
  39. <object id="ReportViewer1_PrintObj" classid="CLSID:5554DCB0-700B-498D-9B58-4E40E5814405" codebase="/Reserved.ReportViewerWebControl.axd?Culture=2052&amp;CultureOverrides=True&amp;UICulture=2052&amp;UICultureOverrides=True&amp;ReportStack=1&amp;ControlID=57e8d903ef7748f7a0c02a1c6bdb851d&amp;Mode=true&amp;OpType=PrintCab&amp;Arch=X86#Version=2009,100,1750,0" style="display: none;"
  40. VIEWASTEXT=""></object>
  41. </form>
  42. </body>
  43. </html>