<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2436358089885736303</id><updated>2011-08-13T03:18:45.446-07:00</updated><category term='ethereal'/><category term='Useful links'/><category term='wireshark'/><category term='Java'/><category term='Binding'/><category term='Reporting Services'/><category term='JavaZone'/><category term='Network analyzer'/><category term='Silverlight'/><category term='.Net'/><title type='text'>.be coder</title><subtitle type='html'>Discoveries of a Belgian .Net developer with a broad interest in programming</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://be-coder.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2436358089885736303/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://be-coder.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>.be coder</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2436358089885736303.post-9061997431782702623</id><published>2011-06-10T09:49:00.000-07:00</published><updated>2011-06-10T09:50:41.308-07:00</updated><title type='text'>Dutch development community</title><content type='html'>just a small link post this time. If you are a dutch developer, don't forget to check out &lt;a href="http://ep2.nl"&gt;http://ep2.nl&lt;/a&gt; !&lt;br /&gt;An overview of all the active topics can be found &lt;a href="http://ep2.nl/search.php?action=getdaily"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2436358089885736303-9061997431782702623?l=be-coder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://be-coder.blogspot.com/feeds/9061997431782702623/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://be-coder.blogspot.com/2011/06/dutch-development-community.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2436358089885736303/posts/default/9061997431782702623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2436358089885736303/posts/default/9061997431782702623'/><link rel='alternate' type='text/html' href='http://be-coder.blogspot.com/2011/06/dutch-development-community.html' title='Dutch development community'/><author><name>.be coder</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2436358089885736303.post-7072982483319462476</id><published>2010-11-15T05:27:00.001-08:00</published><updated>2010-11-15T05:27:07.177-08:00</updated><title type='text'>Windows CE change screen orientation</title><content type='html'>&lt;p&gt;You can use&lt;/p&gt;  &lt;p&gt;Microsoft.WindowsCE.Forms.SystemSettings.ScreenOrientation = Microsoft.WindowsCE.Forms.ScreenOrientation.Angle180;&lt;/p&gt;  &lt;p&gt;to turn the screen 180 degrees.&lt;/p&gt;  &lt;p&gt;Using &lt;/p&gt;  &lt;p&gt;Microsoft.WindowsCE.Forms.SystemSettings.ScreenOrientation = Microsoft.WindowsCE.Forms.ScreenOrientation.Angle0;&lt;/p&gt;  &lt;p&gt;you can restore the default orientation&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2436358089885736303-7072982483319462476?l=be-coder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://be-coder.blogspot.com/feeds/7072982483319462476/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://be-coder.blogspot.com/2010/11/windows-ce-change-screen-orientation.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2436358089885736303/posts/default/7072982483319462476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2436358089885736303/posts/default/7072982483319462476'/><link rel='alternate' type='text/html' href='http://be-coder.blogspot.com/2010/11/windows-ce-change-screen-orientation.html' title='Windows CE change screen orientation'/><author><name>.be coder</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2436358089885736303.post-231773828603354592</id><published>2010-08-27T04:45:00.001-07:00</published><updated>2010-08-27T04:45:47.297-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Useful links'/><title type='text'>Detect .Net framework version with your browser</title><content type='html'>&lt;p&gt;Internet explorer sends out information about what .Net version is installed on your machine.    &lt;br /&gt;Scott Hanselman created a nice website that extracts this information, displays it and presents available updates for your machine (if needed): &lt;a href="http://www.smallestdotnet.com"&gt;www.smallestdotnet.com&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2436358089885736303-231773828603354592?l=be-coder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://be-coder.blogspot.com/feeds/231773828603354592/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://be-coder.blogspot.com/2010/08/detect-net-framework-version-with-your.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2436358089885736303/posts/default/231773828603354592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2436358089885736303/posts/default/231773828603354592'/><link rel='alternate' type='text/html' href='http://be-coder.blogspot.com/2010/08/detect-net-framework-version-with-your.html' title='Detect .Net framework version with your browser'/><author><name>.be coder</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2436358089885736303.post-4325510653782367084</id><published>2010-08-24T03:41:00.001-07:00</published><updated>2010-08-24T03:41:37.136-07:00</updated><title type='text'>Upgrading a Sql Server Compact database file</title><content type='html'>&lt;p&gt;Recently I upgraded my project from Sql Server Compact 3.0x to Sql Server Compact 3.5 (I was already using VS 2008, but with SQL Server Compact 3.0x that comes with VS 2005). You can do this easily by changing the System.Data.SqlServerCe reference in your project to the new 3.5 dll.&lt;/p&gt;  &lt;p&gt;But when you try to run the project using an existing Compact database, you get the following exception:&amp;#160; &lt;br /&gt;&amp;quot;The database file has been created by an earlier version of SQL Server Compact. Please upgrade using SqlCeEngine.Upgrade() method.&amp;quot;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_oYMfAm_TzTI/THOh1TPYpYI/AAAAAAAAACI/pxrBFvSZx2g/s1600-h/image%5B3%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_oYMfAm_TzTI/THOh2P95DsI/AAAAAAAAACM/ZqEqjz-EOKs/image_thumb%5B1%5D.png?imgmax=800" width="568" height="320" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;You can indeed upgrade the file using the code as indicated in the exception message (SqlCeEngine.Upgrade()). But because I’m always deploying the application with a ‘ready-to-start’ sdf file, I only need to do the upgrade once. Therefore I decided to use Sql Server Management Studio 2008 to upgrade the file for me.&lt;/p&gt;  &lt;p&gt;You can use following steps to upgrade:   &lt;br /&gt;1) Open Sql Server Management Studio 2008 and choose ‘Sql Server Compact Edition’    &lt;br /&gt;&lt;a href="http://lh3.ggpht.com/_oYMfAm_TzTI/THOh2sGN0vI/AAAAAAAAACQ/YjwwNhsIX0E/s1600-h/image%5B10%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_oYMfAm_TzTI/THOh3PAxe6I/AAAAAAAAACU/1KA_HOnBFNI/image_thumb%5B4%5D.png?imgmax=800" width="429" height="322" /&gt;&lt;/a&gt;&amp;#160; &lt;br /&gt;2) Choose ‘Browse for more’ in the ‘database file’ combo box; an explorer window will open and you can browse to your sdf file.    &lt;br /&gt;3) Management Studio will detect that the file was created in a previous Sql Server Compact version and displays a warning message (which basically says the same as the .net exception):    &lt;br /&gt;&lt;a href="http://lh6.ggpht.com/_oYMfAm_TzTI/THOh3VNp1EI/AAAAAAAAACY/C3AH0GxnCvw/s1600-h/image%5B14%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_oYMfAm_TzTI/THOh35_gyII/AAAAAAAAACc/Gtoim1TJ6tA/image_thumb%5B6%5D.png?imgmax=800" width="335" height="267" /&gt;&lt;/a&gt;     &lt;br /&gt;4) When you press OK here, Management Studio converts the file for you. You can now run your program again, using the upgraded sdf file.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2436358089885736303-4325510653782367084?l=be-coder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://be-coder.blogspot.com/feeds/4325510653782367084/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://be-coder.blogspot.com/2010/08/upgrading-sql-server-compact-database.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2436358089885736303/posts/default/4325510653782367084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2436358089885736303/posts/default/4325510653782367084'/><link rel='alternate' type='text/html' href='http://be-coder.blogspot.com/2010/08/upgrading-sql-server-compact-database.html' title='Upgrading a Sql Server Compact database file'/><author><name>.be coder</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_oYMfAm_TzTI/THOh2P95DsI/AAAAAAAAACM/ZqEqjz-EOKs/s72-c/image_thumb%5B1%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2436358089885736303.post-2521889357033499781</id><published>2010-08-23T07:47:00.001-07:00</published><updated>2010-08-23T07:47:02.691-07:00</updated><title type='text'>Entity Framework: ‘does not support datatype datetime2’</title><content type='html'>&lt;p&gt;While testing on my local development machine, I use a SQL Server 2008 instance. I generated the EF model using that same local database and everything works fine. After the testing period, I wanted to run the same tests on a production server.    &lt;br /&gt;The moment I tried to update an entity containing a datetime field, I received the following exception message:&lt;/p&gt;  &lt;p&gt;“The version of SQL Server in use does not support datatype 'datetime2'.”&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_oYMfAm_TzTI/THKJ4TFIvSI/AAAAAAAAAB4/MPSfITefGkE/s1600-h/image%5B4%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_oYMfAm_TzTI/THKJ4hSbyOI/AAAAAAAAAB8/BNDR3CN9yDw/image_thumb%5B2%5D.png?imgmax=800" width="644" height="278" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;After checking the ddl of the tables on both test and production database, I found no differences.   &lt;br /&gt;What was the problem (and solution)?&lt;/p&gt;  &lt;p&gt;It turns out that the model generator puts some database targeting information in the generated model (the edmx file). Since my production database was still a SQL Server 2005 instance, using the model on that database gives runtime errors, because statements are generated that the SQL Server database doesn’t understand. The problem is here (in the edmx file):&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_oYMfAm_TzTI/THKJ5JtMqYI/AAAAAAAAACA/Oet6HVaIiTQ/s1600-h/image%5B8%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_oYMfAm_TzTI/THKJ5TGzxKI/AAAAAAAAACE/s135epAA8yA/image_thumb%5B4%5D.png?imgmax=800" width="644" height="118" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;The ‘ProviderManifestToken’ attribute indicates that a SQL Server 2008 database was targeted. When you change this to ‘2005’ everything works fine again (even when you are connecting to the SQL Server 2008 database).&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2436358089885736303-2521889357033499781?l=be-coder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://be-coder.blogspot.com/feeds/2521889357033499781/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://be-coder.blogspot.com/2010/08/entity-framework-does-not-support.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2436358089885736303/posts/default/2521889357033499781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2436358089885736303/posts/default/2521889357033499781'/><link rel='alternate' type='text/html' href='http://be-coder.blogspot.com/2010/08/entity-framework-does-not-support.html' title='Entity Framework: ‘does not support datatype datetime2’'/><author><name>.be coder</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_oYMfAm_TzTI/THKJ4hSbyOI/AAAAAAAAAB8/BNDR3CN9yDw/s72-c/image_thumb%5B2%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2436358089885736303.post-2652503457127033731</id><published>2010-08-02T01:10:00.001-07:00</published><updated>2010-08-02T01:37:20.056-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Silverlight'/><category scheme='http://www.blogger.com/atom/ns#' term='Binding'/><title type='text'>Binding a Brush property to a Color</title><content type='html'>&lt;p&gt;When you try to bind a Color directly to a Brush property, you get the following error in your Visual Studio output window:&lt;/p&gt;  &lt;p&gt;System.Windows.Data Error: 'MS.Internal.Data.DynamicValueConverter' converter failed to convert value '#FFFF00FF' (type 'System.Windows.Media.Color'); BindingExpression: Path='LineColor' DataItem=LineVector' (HashCode=38524289); target element is 'System.Windows.Shapes.Line' (Name=''); target property is 'Stroke' (type 'System.Windows.Media.Brush').. System.InvalidOperationException: Can't convert type System.Windows.Media.Color to type System.Windows.Media.Brush.    &lt;br /&gt;&amp;#160;&amp;#160; at MS.Internal.Data.DefaultValueConverter.Create(Type sourceType, Type targetType, Boolean targetToSource)     &lt;br /&gt;&amp;#160;&amp;#160; at MS.Internal.Data.DynamicValueConverter.EnsureConverter(Type sourceType, Type targetType)     &lt;br /&gt;&amp;#160;&amp;#160; at MS.Internal.Data.DynamicValueConverter.Convert(Object value, Type targetType, Object parameter, CultureInfo culture)     &lt;br /&gt;&amp;#160;&amp;#160; at System.Windows.Data.BindingExpression.ConvertToTarget(Object value). &lt;/p&gt;  &lt;p&gt;The solution is to first wrap the Color in a Brush:&lt;/p&gt;  &lt;p&gt;&amp;lt;Line.Stroke&amp;gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;SolidColorBrush Color=&amp;quot;{Binding LineColor}&amp;quot;/&amp;gt;     &lt;br /&gt;&amp;lt;/Line.Stroke&amp;gt;     &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2436358089885736303-2652503457127033731?l=be-coder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://be-coder.blogspot.com/feeds/2652503457127033731/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://be-coder.blogspot.com/2010/08/binding-brush-property-to-color.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2436358089885736303/posts/default/2652503457127033731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2436358089885736303/posts/default/2652503457127033731'/><link rel='alternate' type='text/html' href='http://be-coder.blogspot.com/2010/08/binding-brush-property-to-color.html' title='Binding a Brush property to a Color'/><author><name>.be coder</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2436358089885736303.post-603981586073194267</id><published>2010-07-12T02:10:00.001-07:00</published><updated>2010-07-12T02:12:06.508-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Network analyzer'/><category scheme='http://www.blogger.com/atom/ns#' term='ethereal'/><category scheme='http://www.blogger.com/atom/ns#' term='wireshark'/><title type='text'>Network analyzer</title><content type='html'>&lt;p&gt;To do some tracing of WCF messages I was planning to use Ethereal, a network sniffing tool. I used this tool successfully a couple of years ago. While searching for the download, I discovered it’s now known under the name ‘Wireshark’: &lt;a title="http://www.wireshark.org/" href="http://www.wireshark.org/"&gt;http://www.wireshark.org/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;More details on the name change can be found here: &lt;a title="http://www.wireshark.org/faq.html#q1.2" href="http://www.wireshark.org/faq.html#q1.2"&gt;http://www.wireshark.org/faq.html#q1.2&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2436358089885736303-603981586073194267?l=be-coder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://be-coder.blogspot.com/feeds/603981586073194267/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://be-coder.blogspot.com/2010/07/network-analyzer.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2436358089885736303/posts/default/603981586073194267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2436358089885736303/posts/default/603981586073194267'/><link rel='alternate' type='text/html' href='http://be-coder.blogspot.com/2010/07/network-analyzer.html' title='Network analyzer'/><author><name>.be coder</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2436358089885736303.post-2900085637754927443</id><published>2010-06-27T04:02:00.000-07:00</published><updated>2010-07-23T06:11:40.717-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='JavaZone'/><title type='text'>JavaZone 2010 Trailer</title><content type='html'>Although I'm a .Net developer, Java was my first love and I still love the Java community and what they stand for. I try to keep up with everything Java so I read quite a lot of Java blogs.&lt;br /&gt;While reading the &lt;a href="http://nighthacks.com/roller/jag/"&gt;James Gosling blog&lt;/a&gt; I found this really nice video I wanted to share with you. It was created by the JavaZone people to promote this years JavaZone conference.&lt;br /&gt;&lt;br /&gt;The JavaZone 2010 edition takes place in Norway on the 8th and 9th of September (More info on the event can be found &lt;a href="http://jz10.java.no/"&gt;here&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;EDIT: The original movie was removed from Youtube, but can still be watched here: &lt;a href="http://jz10.java.no/java-4-ever-trailer.html"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2436358089885736303-2900085637754927443?l=be-coder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://be-coder.blogspot.com/feeds/2900085637754927443/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://be-coder.blogspot.com/2010/06/javazone-2010-trailer.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2436358089885736303/posts/default/2900085637754927443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2436358089885736303/posts/default/2900085637754927443'/><link rel='alternate' type='text/html' href='http://be-coder.blogspot.com/2010/06/javazone-2010-trailer.html' title='JavaZone 2010 Trailer'/><author><name>.be coder</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2436358089885736303.post-2912323407322225819</id><published>2010-06-10T23:15:00.001-07:00</published><updated>2010-06-10T23:15:24.392-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Reporting Services'/><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Render html in a reportviewer textbox</title><content type='html'>&lt;p&gt;Starting with Visual Studio 2010, the included Microsoft ReportViewer control (ReportViewer v10) supports the rendering of HTML inside a textbox. With this functionality, you can use multiple styles inside one textbox.&lt;/p&gt;  &lt;p&gt;The supported text format tags you can use are the following: &amp;lt;B&amp;gt;, &amp;lt;I&amp;gt;, &amp;lt;U&amp;gt;, &amp;lt;S&amp;gt;.&lt;/p&gt;  &lt;p&gt;The default behaviour the textbox uses is to render plain text, but it’s very easy to activate the html rendering on a specific textbox containing a placeholder:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Starting situation: a textbox with placeholder      &lt;br /&gt;&lt;a href="http://lh5.ggpht.com/_oYMfAm_TzTI/TBHUbOC__kI/AAAAAAAAABM/3aXKojPhZTQ/s1600-h/clip_image0013.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Textbox with placeholder" border="0" alt="Textbox with placeholder" src="http://lh5.ggpht.com/_oYMfAm_TzTI/TBHUbQNeCSI/AAAAAAAAABQ/eVIBKbJNUR0/clip_image001_thumb.jpg?imgmax=800" width="244" height="47" /&gt;&lt;/a&gt;       &lt;br /&gt;(You can easily add a placeholder by dragging it from the datasource window to a specific textbox) &lt;/li&gt;    &lt;li&gt;Select the placeholder by clicking on it      &lt;br /&gt;&lt;a href="http://lh6.ggpht.com/_oYMfAm_TzTI/TBHUbuumnXI/AAAAAAAAABU/7mnH63-wzY8/s1600-h/clip_image0026.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Selected placeholder" border="0" alt="Selected placeholder" src="http://lh4.ggpht.com/_oYMfAm_TzTI/TBHUcDOi8dI/AAAAAAAAABY/Qcj65v_cojI/clip_image002_thumb9.jpg?imgmax=800" width="244" height="43" /&gt;&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;Right click the selected placeholder and select ‘Placeholder properties’.      &lt;br /&gt;&lt;a href="http://lh4.ggpht.com/_oYMfAm_TzTI/TBHUcop86dI/AAAAAAAAABc/php-OaRZFJY/s1600-h/clip_image00311.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Rightclick placeholder" border="0" alt="Rightclick placeholder" src="http://lh3.ggpht.com/_oYMfAm_TzTI/TBHUc_8GdEI/AAAAAAAAABg/OTFggKSI2zU/clip_image003_thumb13.jpg?imgmax=800" width="209" height="174" /&gt;&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;A property window opens:      &lt;br /&gt;&lt;a href="http://lh4.ggpht.com/_oYMfAm_TzTI/TBHUdWd9yjI/AAAAAAAAABk/pfe5jQBcU1U/s1600-h/clip_image00243.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Placeholder properties window" border="0" alt="Placeholder properties window" src="http://lh6.ggpht.com/_oYMfAm_TzTI/TBHUdhbKELI/AAAAAAAAABo/i4q2PkhSe14/clip_image0024_thumb1.jpg?imgmax=800" width="405" height="371" /&gt;&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;In the general tab, switch the rendering to HTML:      &lt;br /&gt;&lt;a href="http://lh3.ggpht.com/_oYMfAm_TzTI/TBHUeI0tKmI/AAAAAAAAABs/cNmA7mFQtmw/s1600-h/clip_image00344.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Render html" border="0" alt="Render html" src="http://lh4.ggpht.com/_oYMfAm_TzTI/TBHUe80fUkI/AAAAAAAAABw/VWXfRpEQ4Hw/clip_image0034_thumb2.jpg?imgmax=800" width="344" height="72" /&gt;&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;Now save your report and the HTML text you pass to the placeholder will be rendered correctly. &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;More information on the supported html tags you can use and useful guidelines (and limitations of the html rendering inside a reporting services report) can be found here: &lt;a href="http://msdn.microsoft.com/en-us/library/cc645967.aspx"&gt;http://msdn.microsoft.com/en-us/library/cc645967.aspx&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2436358089885736303-2912323407322225819?l=be-coder.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://be-coder.blogspot.com/feeds/2912323407322225819/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://be-coder.blogspot.com/2010/06/render-html-in-reportviewer-textbox.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2436358089885736303/posts/default/2912323407322225819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2436358089885736303/posts/default/2912323407322225819'/><link rel='alternate' type='text/html' href='http://be-coder.blogspot.com/2010/06/render-html-in-reportviewer-textbox.html' title='Render html in a reportviewer textbox'/><author><name>.be coder</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_oYMfAm_TzTI/TBHUbQNeCSI/AAAAAAAAABQ/eVIBKbJNUR0/s72-c/clip_image001_thumb.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
