﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - How to implement print functionality in interfoft webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Howtoimplementprintfunctionalityininterfoftwebgrid/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>How to implement print functionality in interfoft webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Howtoimplementprintfunctionalityininterfoftwebgrid/</link><pubDate>Mon, 14 Jul 2014 23:48:21 GMT</pubDate><dc:creator>Hans</dc:creator><description>&lt;p&gt;Hello,&lt;br&gt;&lt;br&gt;Basically, this printing scenario (code for printing) is beyond Intersoft control itself.&lt;br&gt;However, I will try to help you to find a work around for this printing scenario.&lt;br&gt;&lt;br&gt;I try to modify one of WebGrid Samples, EnableExporting.aspx page.&lt;br&gt;In this page, I add OnExport server side event in the WebGrid and then I add a line of code to set the ReportName property.&lt;br&gt;Here’s the example code:&lt;br&gt;&lt;/p&gt;&lt;pre&gt;protected void WebGrid1_Export(object sender, ISNet.WebUI.WebGrid.ExportEventArgs e){
    e.ReportInfo.ReportName = "EnableExportingPage";
}&lt;/pre&gt;&lt;p&gt;Next, I add OnAfterResponseProcess client side event to handle the printing scenario.&lt;br&gt;Here’s the code:&lt;br&gt;&lt;/p&gt;&lt;pre&gt;function printWindow() {
    var printWin = window.open("./TempReports/EnableExportingPage.html");
            
    if (printWin == null) {
        setTimeout(printWindow(), 500);
    }
    else {
        printWin.print();
        printWin.close();
    }
}

function WebGrid1_OnAfterResponseProcess(gridId, action, lastRequestObject, xmlResponseObject) {
    if (action == "Export") {
        printWindow();
    }
}&lt;/pre&gt;&lt;p&gt;&lt;br&gt;I attached the modify EnableExporting.aspx page as well. Please kindly add the page to the WebGrid Solution Samples, to see the result.&lt;br&gt;&lt;br&gt;Thank you.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Hans K.&lt;br&gt;&lt;/p&gt;</description></item><item><title>How to implement print functionality in interfoft webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Howtoimplementprintfunctionalityininterfoftwebgrid/</link><pubDate>Mon, 14 Jul 2014 04:55:47 GMT</pubDate><dc:creator>GaneshNayakK</dc:creator><description>Hello,&lt;br /&gt;&lt;br /&gt;Thank u for your reply...&lt;br /&gt;&lt;br /&gt;I want to open the print dialog box after Data exported in form of HTML. In current scenario print dialog box opens before exporting itself..&lt;br /&gt;&lt;br /&gt;Can u share me the javascript code for handling the print functionality...&lt;br /&gt;&lt;br /&gt;Thanks in advance&lt;br /&gt;&lt;br /&gt;Ganesh Nayak K</description></item><item><title>How to implement print functionality in interfoft webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Howtoimplementprintfunctionalityininterfoftwebgrid/</link><pubDate>Mon, 14 Jul 2014 03:23:04 GMT</pubDate><dc:creator>Hans</dc:creator><description>Hello,&lt;br&gt;&lt;br&gt;Thank you for your question.&lt;br&gt;&lt;br&gt;By basically, WebGrid doesn’t have feature to print after exporting.&lt;br&gt;Perhaps you could create your own JavaScript code to handle Print function.&lt;br&gt;&lt;br&gt;I am sorry for the inconvenience.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Hans K.</description></item><item><title>How to implement print functionality in interfoft webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Howtoimplementprintfunctionalityininterfoftwebgrid/</link><pubDate>Fri, 11 Jul 2014 03:16:14 GMT</pubDate><dc:creator>GaneshNayakK</dc:creator><description>&lt;p&gt;Hi All,&lt;/p&gt;&lt;p&gt;Please let me know how to implement print functionality.&lt;/p&gt;&lt;p&gt;I have attached the sample, in this sample i have integrated the print icon to the status bar on click of that icon, I am Exporting to HTML. After Exporting to HTML i want the print dialog box should open.&lt;/p&gt;&lt;p&gt;function PrintGridData(gridId) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var WebGrid2 = ISGetObject(gridId);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WebGrid2.ExportGrid(WebGrid2.RootTable.Id, "HTML", "PORTRAIT");&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //window.print();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Please give if any alternative way of doing.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Regards,&lt;/p&gt;&lt;p&gt;Ganesh Nayak K&lt;/p&gt;</description></item></channel></rss>