﻿<?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 - Decision point -- need grid export info</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Decision-point----need-grid-export-info/</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>Decision point -- need grid export info</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Decision-point----need-grid-export-info/</link><pubDate>Thu, 16 Dec 2010 01:32:29 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Unfortunately, currently our WebGrid report customization is still limited. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I could not found any method to automatically resize the cells to comfort to a paper change.&lt;/p&gt;
&lt;p&gt;You could modify the header and date in the PDF report, however there is a predefined size for the date section and setting a different format may result in clipping issue.&lt;/p&gt;
&lt;p&gt;In order to escape the HTML character and forcing quote, you could use the Export event handler to modify the exported data. Here is a Expert event handler which modify the header and date when exporting as PDF, and forcing quote in the cell &lt;em&gt;Name&lt;/em&gt; when exporting as Text:&lt;/p&gt;&lt;pre&gt;protected void wgTest_Export(object sender, ExportEventArgs e)&lt;br /&gt;{&lt;br /&gt;    if (e.ReportInfo.ReportType.ToLower() == "pdf")&lt;br /&gt;    {&lt;br /&gt;        e.ReportInfo.DynReportCaptions.DateCaption = "Date ";&lt;br /&gt;        e.ReportInfo.DynReportCaptions.DateCaptionFormat = "yyyy";&lt;br /&gt;&lt;br /&gt;        e.Table.Caption = "Custom table header";&lt;br /&gt;    }&lt;br /&gt;    else if (e.ReportInfo.ReportType.ToLower() == "text")&lt;br /&gt;    {&lt;br /&gt;        for (int i = 0; i &amp;lt; e.Table.Rows.Count; i&amp;#43;&amp;#43;)&lt;br /&gt;        {&lt;br /&gt;            WebGridCell tempCell = e.Table.Rows[i].Cells.GetNamedItem("Name");&lt;br /&gt;            tempCell.Text = "'" &amp;#43; tempCell.Text &amp;#43; "'";&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Decision point -- need grid export info</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Decision-point----need-grid-export-info/</link><pubDate>Wed, 15 Dec 2010 19:07:45 GMT</pubDate><dc:creator>artem.pushkin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I must decide shortly if my company should buy your web suite. I need some information about the way data export works in WebGrid.&lt;/p&gt;
&lt;p&gt;I have a grid with about 20 columns. When I create a PDF export report it tries to fit all columns onto a letter size paper therefore making them too thin and unreadable. Is there a way to make columns wider? Preferably they should be automatically sized so that no text would wrap around. This would require bigger page size but I was unable to change it.&lt;/p&gt;
&lt;p&gt;Is PDF report format customizable in any way? I would like to be able to set custom header and date at least.&lt;/p&gt;
&lt;p&gt;Exporting to TXT seems to make a CSV file but values are not enclosed in quotes. Is there a way to force quotes around values?&lt;/p&gt;
&lt;p&gt; I also noticed that special HTML characters are not unescaped in reports. E. g. '&amp;' is displayed as '&amp;amp;', is there a workaround?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Artem Pushkin&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>