﻿<?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 - Problems when exporting to Excel</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problems-when-exporting-to-Excel/</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>Problems when exporting to Excel</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problems-when-exporting-to-Excel/</link><pubDate>Wed, 23 Sep 2009 23:33:01 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>WebGrid</category><category>export</category><category>excel</category><category>multiline column</category><description>&lt;p&gt;Based on our developer response on the first issue, the numeric data will always be formatted as numeric even tough in the WebGrid we already format it as string. This is the default bahavior in Excel.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Regarding issue #2, the \r\n will create a new line in excel, so our workaround is using &amp;lt;br/&amp;gt; to indicate new line in the WebGrid. Other character, such as ampersand, will not conflict with excel so we will not need to replace it.&lt;/p&gt;
&lt;p&gt; Franjo also asked:&lt;/p&gt;&lt;blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 5px; padding-left: 10px;"&gt;&lt;p&gt;&lt;span style="font-size: 13px; font-family: sans-serif;"&gt;Our custom aspx pages are embedded in Sharepoint. Users authenticate with their 
Active Directory login when they first visit it. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 13px; font-family: sans-serif;"&gt;When users export data from WebGrid, another Internet Explorer 
is started and they need to authenticate again. Only when they successfully 
authenticate, they can choose to open or save the file.&lt;/span&gt; &lt;br /&gt;&lt;span style="font-size: 13px; font-family: sans-serif;"&gt;How can this be disabled so the users don't need to 
authenticate?&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;We could not disable the authentication, however you could try using Windows Password Manager, accessible from Control Panel &amp;gt; User Accounts &amp;gt; Manage Your Network Password, to save the credential so when you visit the site you will not need to autheticate again&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Problems when exporting to Excel</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problems-when-exporting-to-Excel/</link><pubDate>Fri, 18 Sep 2009 04:47:37 GMT</pubDate><dc:creator>Mladen.maras@combis.hr</dc:creator><category>WebGrid</category><category>export</category><category>excel</category><category>multiline column</category><description>&lt;p&gt;Thank you for your answer.&lt;/p&gt;
&lt;p&gt;Maybe I was little vague with issue #1. The data in the column represents phases and may consist of 3 parts (major, medium and minor phase). &lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;01&lt;/p&gt;
&lt;p&gt;01.20&lt;/p&gt;
&lt;p&gt;01.100.03&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;100&lt;/p&gt;
&lt;p&gt;100.40&lt;/p&gt;
&lt;p&gt;100.40.120&lt;/p&gt;
&lt;p&gt;In database data is saved as varchar(20), in dataset DataType is string and the corresponding WebGridColumn has also DataType string.&lt;/p&gt;
&lt;p&gt;Everything is working fine in WebGrid, it can be sorted, grouped and filtered. It seems that Excel automatically recognizes numbers in the column and converts them from string. The issue won't happen when there are multiple phases in the cell divided with comma like (&lt;strong&gt;01.20.01, 01.20.30&lt;/strong&gt;).&lt;/p&gt;
&lt;p&gt;Regarding issue #2, if &amp;lt;br&amp;gt; tag solves the newline issue, does it mean that other "special" characters like ampersand should also be replaced with equivalent html tags? &lt;/p&gt;
&lt;p&gt;In what event handler does this need to be done (InitalizeDataSource, InitializeRow or Export)?&lt;/p&gt;</description></item><item><title>Problems when exporting to Excel</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problems-when-exporting-to-Excel/</link><pubDate>Thu, 17 Sep 2009 23:42:57 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>WebGrid</category><category>export</category><category>excel</category><category>multiline column</category><description>&lt;p&gt;Attached is a simple sample of the scenario you are facing. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;We could not replicate the issue #1, Column value2 has a Decimal datatype with DataFormatString &lt;em&gt;""#,##0.##"&lt;/em&gt;. The value and format in the WebGrid and exported excel will match.&lt;/p&gt;
&lt;p&gt;Regarding issue #2, the issue will be replicated using \r\n as the new line, using &amp;lt;br/&amp;gt; will not replicae the issue. Currently, our exporting feature only supports &amp;lt;br/&amp;gt; as the new line indicator, I have forwarded the \r\n issue to our developer, to let the developer look into this issue.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Problems when exporting to Excel</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problems-when-exporting-to-Excel/</link><pubDate>Thu, 17 Sep 2009 12:10:35 GMT</pubDate><dc:creator>Mladen.maras@combis.hr</dc:creator><category>WebGrid</category><category>export</category><category>excel</category><category>multiline column</category><description>&lt;p&gt;We have 2 problems when exporting data to Excel.&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;One of the columns in grid has text in format &lt;strong&gt;60.60&lt;/strong&gt;, but when data is exported to excel the text in cell is shown as &lt;strong&gt;60.600.000&lt;/strong&gt; and the real value in cell is 6060000.&lt;/li&gt;&lt;li&gt;Another column in grid&amp;nbsp;has &lt;strong&gt;multiline&lt;/strong&gt; text in it. Foreach newline character in the text, in Excel another row is created with all the columns empty except the column that is related to grid column.&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;It seems that exporting to Excel ignores DataType property of both WebGridColumn and DataTable. &lt;/p&gt;
&lt;p&gt;We are using latest WebUI Studio 2009, build 303.&lt;/p&gt;
&lt;p&gt;How can this be solved and is there a way to tell Excel not to change values or type of column / cell?&lt;/p&gt;</description></item></channel></rss>