<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PorozumienieOWykorzystaniuUrlopuWydruk.aspx.cs" Inherits="KOLKaP_WEB.KOLKaP.PorozumienieOWykorzystaniuUrlopu" %>

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

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Porozumienie o wykorzystaniu urlopu</title>
    <link rel="stylesheet" href="../jquery/themes/ui-lightness/jquery-ui-1.9.2.custom.min.css" />

    <script src="../jquery/jquery-1.8.3.min.js" type="text/javascript"></script>

    <script src="../jquery/ui/jquery-ui-1.9.2.custom.min.js" type="text/javascript"></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>
    <form id="form1" runat="server">
    <div>
        <div>
            <div>
                <asp:Label ID="lblError" runat="server" EnableViewState="False"></asp:Label>
            </div>
            <br />
            <div style="clear: both">
                <dx:ASPxDocumentViewer ID="dv" runat="server" ToolbarMode="Ribbon">
                  <ClientSideEvents Init="init" />
                </dx:ASPxDocumentViewer>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
