Wednesday, February 8, 2012

MS Reporting

Create a new Web Application Project.

Add a new item -> Reporting -> Report.rdlc




Drag a ReportViewer control from Toolbox to a Web Page.




Make sure to include ScriptManager on the web page.

Set the datasource and design the report.

Tuesday, February 7, 2012

Ellipsis in Silverlight

Before, when we want to display a long string in a Silverlight page, we create StringConverter just to cut the string and add ... or ellipsis at the last part. Now, we just use this:

<TextBlock Text="the quick brown fox jumps over the lazy dog" TextTrimming="WordEllipsis"/>

This will let the silverlight check the width of the holder of the text then cut the text and add ... or ellipses at the end.

Nice additional feature of Silverlight.