Revision history [back]

click to hide/show revision 1
initial version

answered 2015-05-10 17:49:29 +0800

lramellavotta gravatar image lramellavotta flag of Italy

Hi Darksu,

        <button label="" image="/images/Stampa.png"  width="120px" height="45px">
            <attribute name="onClick">
                Clients.evalJavaScript("cmdPrint('" +gmaps.getUuid()+ "')");
            </attribute>
        </button>

        <script type="text/javascript">
        function cmdPrint(uuid)
        {       
            var content = zk.Widget.$("$gmaps");

            var win = window.open();
            win.document.write(content);
            win.print();
            win.close();
        }
    </script>

<gmaps version="3.9" id="gmaps" width="1100px" height="470px" showSmallCtrl="true" />

If I run this code I print a page with [object Object] and nothing other......

Hi Darksu,

        <button label="" image="/images/Stampa.png"  width="120px" height="45px">
            <attribute name="onClick">
                Clients.evalJavaScript("cmdPrint('" +gmaps.getUuid()+ "')");
            </attribute>
        </button>

        <script type="text/javascript">
        function cmdPrint(uuid)
        {       
            var content = zk.Widget.$("$gmaps");

            var win = window.open();
            win.document.write(content);
            win.print();
            win.close();
        }
    </script>

<gmaps version="3.9" id="gmaps" width="1100px" height="470px" showSmallCtrl="true" />

If I run this code I print a page with [object Object] and nothing other......

p.s. uuid is for other test

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More