<%@ Page Language="c#" CodeBehind="GrupyMailowePracownicyListaWydruk.aspx.cs" AutoEventWireup="True" Inherits="KOLKaP_WEB.KOLKaP.GrupyMailowePracownicyListaWydruk" %>

<%@ Register TagPrefix="dx" Namespace="DevExpress.XtraReports.Web" Assembly="DevExpress.XtraReports.v14.2.Web, Version=14.2.10.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>GrupyMailowePracownicyListaWydruk</title>
    <link rel="stylesheet" href="../jquery/themes/ui-lightness/jquery-ui-1.11.2.min.css" />
    <script src="../jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="../jquery/ui/jquery-ui-1.11.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">

        $(function () {

            $("#btnEksportDoExcela").button({ icons: { primary: 'ui-icon-disk' } });
        })
    </script>
    <script type="text/javascript">
      function init(s) {
        var createFrameElement = s.viewer.printHelper.createFrameElement;
        s.viewer.printHelper.createFrameElement = function (name) {
          var frameElement = createFrameElement.call(this, name);
          var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
          if (isChrome) {
            frameElement.addEventListener("load", function (e) {
              if (frameElement.contentDocument && frameElement.contentDocument.contentType !== "text/html")
                frameElement.contentWindow.print();
            });
          }
          return frameElement;
        }
      }
    </script>
</head>
<body style="font-size: 8pt; font-family: Verdana, Tahoma, Arial; color: Black;">
    <form id="Form2" method="post" runat="server">
        <div>
            <asp:Label ID="lblError" runat="server"></asp:Label>
            <br />
            <asp:LinkButton ID="btnEksportDoExcela" runat="server" Text="Export do Excela" OnClick="btnEksportDoExcela_Click"></asp:LinkButton>
            <br />
            <div>
                <dx:ASPxDocumentViewer ID="dv" runat="server" ToolbarMode="Ribbon">
                  <ClientSideEvents Init="init" />
                </dx:ASPxDocumentViewer>
            </div>
        </div>
    </form>
</body>
</html>
