<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Reporting Services</title>
        <link>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/category/49.aspx</link>
        <description>Reporting Services</description>
        <language>en-US</language>
        <copyright>Shawn Weisfeld</copyright>
        <generator>Subtext Version 2.1.2.2</generator>
        <item>
            <title>Cannot export Local Reporting Services Reports to excel or pdf?</title>
            <link>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2010/04/21/cannot-export-local-reporting-services-reports-to-excel-or-pdf.aspx</link>
            <description>&lt;p&gt;If you get the following error when trying to export a Local Reporting services report to excel or pdf: &lt;/p&gt;  &lt;p&gt;Internet Explorer cannot download … ReportViewerWebControl.axd from &amp;lt;server name&amp;gt;   &lt;br /&gt;Internet explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later. &lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.drowningintechnicaldebt.com/images/www_drowningintechnicaldebt_com/ShawnWeisfeld/WindowsLiveWriter/CannotexportLocalReportingServicesReport_14687/clip_image001_2.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image001" border="0" alt="clip_image001" src="http://www.drowningintechnicaldebt.com/images/www_drowningintechnicaldebt_com/ShawnWeisfeld/WindowsLiveWriter/CannotexportLocalReportingServicesReport_14687/clip_image001_thumb.jpg" width="896" height="164" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;You might want to check the properties on your virtual directory. Here is mine before I made the change. As you can see it is set to “no-cache”. What I think is happening is that IE downloads the excel/pdf file (confirmed this via fiddler) then deletes it, then tries to open it. &lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.drowningintechnicaldebt.com/images/www_drowningintechnicaldebt_com/ShawnWeisfeld/WindowsLiveWriter/CannotexportLocalReportingServicesReport_14687/clip_image002_2.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://www.drowningintechnicaldebt.com/images/www_drowningintechnicaldebt_com/ShawnWeisfeld/WindowsLiveWriter/CannotexportLocalReportingServicesReport_14687/clip_image002_thumb.jpg" width="565" height="539" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;To fix the issue I removed the three lines in the middle:   &lt;br /&gt;Cache-Control: no-cache    &lt;br /&gt;Pragma: no-cache    &lt;br /&gt;Expires: 0 &lt;/p&gt;  &lt;p&gt;Hope this helps you out. . . . &lt;/p&gt;&lt;img src="http://www.drowningintechnicaldebt.com/ShawnWeisfeld/aggbug/703.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Shawn Weisfeld</dc:creator>
            <guid>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2010/04/21/cannot-export-local-reporting-services-reports-to-excel-or-pdf.aspx</guid>
            <pubDate>Thu, 22 Apr 2010 04:15:47 GMT</pubDate>
            <wfw:comment>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/comments/703.aspx</wfw:comment>
            <comments>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2010/04/21/cannot-export-local-reporting-services-reports-to-excel-or-pdf.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/comments/commentRss/703.aspx</wfw:commentRss>
            <trackback:ping>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/services/trackbacks/703.aspx</trackback:ping>
        </item>
        <item>
            <title>Reporting Services 2008 is still using the XLS (BIFF) file format</title>
            <link>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2010/03/09/reporting-services-2008-is-still-using-the-xls-biff-file.aspx</link>
            <description>Rant start . . . .&lt;br /&gt;
&lt;br /&gt;
I was in a meeting and we were talking about SSRS and I have heard yet again that Excel 2007 is great because it breaks the 65k record limit. That is wonderful, but IMHO, Microsoft has dropped the ball with SSRS 2008 since it is still using the BIFF file format. &lt;br /&gt;
&lt;br /&gt;
From my read of Books Online (&lt;a href="javascript:void(0);/*1268167090863*/"&gt;http://msdn.microsoft.com/en-us/library/ms159836.aspx&lt;/a&gt;), “Excel places limitations on exported reports due to the BIFF's format capabilities” but why are we still using BIFF and XLS? Why are we not using XLSX and the newer (heck it is 3 years old now) file format?&lt;br /&gt;
&lt;br /&gt;
Ok, rant over. . . . thanks for listening.&lt;img src="http://www.drowningintechnicaldebt.com/ShawnWeisfeld/aggbug/685.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Shawn Weisfeld</dc:creator>
            <guid>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2010/03/09/reporting-services-2008-is-still-using-the-xls-biff-file.aspx</guid>
            <pubDate>Tue, 09 Mar 2010 20:41:16 GMT</pubDate>
            <wfw:comment>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/comments/685.aspx</wfw:comment>
            <comments>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2010/03/09/reporting-services-2008-is-still-using-the-xls-biff-file.aspx#feedback</comments>
            <wfw:commentRss>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/comments/commentRss/685.aspx</wfw:commentRss>
            <trackback:ping>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/services/trackbacks/685.aspx</trackback:ping>
        </item>
        <item>
            <title>Creating a Green-Bar (Zebra Stripe) Report on Groups in Reporting Services</title>
            <link>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2007/10/16/creating-a-green-bar-zebra-stripe-report-on-groups-in.aspx</link>
            <description>&lt;p mce_keep="true"&gt;Question: How do you create a green-bar (zebra stripe) report using groups in reporting services?&lt;/p&gt;
&lt;p mce_keep="true"&gt;Answer: I have seen many examples of creating green-bar reports where each record alternated colors. All one has to do is add a row_number field to their query and use the following expression in the Background color property of the Table Row. &lt;/p&gt;
&lt;p mce_keep="true"&gt;=iif(Fields!row.Value Mod 2 = 0,"Green","White")&lt;/p&gt;
&lt;p mce_keep="true"&gt;But when doing groups and you want each group to alternate colors it is a little more complex, but the trick is still the same. Following the same principal I needed a way to get row numbers for each Group of data. In my example I am pulling Employee data from the AdventureWorks database. To add the group row numbers I first use a Common Table Expression to pull a list of distinct states. Then join that list back to the view adding in the row numbers. &lt;/p&gt;
&lt;p mce_keep="true"&gt;WITH States AS&lt;br /&gt;(&lt;br /&gt; SELECT DISTINCT [StateProvinceName]&lt;br /&gt; FROM [AdventureWorks].[HumanResources].[vEmployee] &lt;br /&gt;)&lt;br /&gt;SELECT V.[EmployeeID]&lt;br /&gt;      ,V.[Title]&lt;br /&gt;      ,V.[FirstName]&lt;br /&gt;      ,V.[MiddleName]&lt;br /&gt;      ,V.[LastName]&lt;br /&gt;      ,V.[Suffix]&lt;br /&gt;      ,V.[JobTitle]&lt;br /&gt;      ,V.[Phone]&lt;br /&gt;      ,V.[EmailAddress]&lt;br /&gt;      ,V.[EmailPromotion]&lt;br /&gt;      ,V.[AddressLine1]&lt;br /&gt;      ,V.[AddressLine2]&lt;br /&gt;      ,V.[City]&lt;br /&gt;      ,V.[StateProvinceName]&lt;br /&gt;      ,V.[PostalCode]&lt;br /&gt;      ,V.[CountryRegionName]&lt;br /&gt;      ,V.[AdditionalContactInfo]&lt;br /&gt;      ,S.row&lt;br /&gt;FROM [AdventureWorks].[HumanResources].[vEmployee]  AS V&lt;br /&gt; JOIN (SELECT [StateProvinceName], ROW_NUMBER() OVER (ORDER BY [StateProvinceName]) AS row FROM States) AS S&lt;br /&gt; ON V.[StateProvinceName] = S.[StateProvinceName]&lt;br /&gt;ORDER BY V.[StateProvinceName]&lt;/p&gt;
&lt;p mce_keep="true"&gt;Resources:&lt;br /&gt;Chris Hays's Reporting Services Sleazy Hacks Weblog&lt;br /&gt;Green-Bar Matrix&lt;br /&gt;&lt;a href="http://blogs.msdn.com/chrishays/archive/2004/08/30/GreenBarMatrix.aspx"&gt;http://blogs.msdn.com/chrishays/archive/2004/08/30/GreenBarMatrix.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p mce_keep="true"&gt;SQL Server 2005 Books Online (September 2007)&lt;br /&gt;ROW_NUMBER (Transact-SQL)&lt;br /&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/ms186734.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms186734.aspx&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;img src="http://www.drowningintechnicaldebt.com/ShawnWeisfeld/aggbug/214.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>sweisfeld</dc:creator>
            <guid>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2007/10/16/creating-a-green-bar-zebra-stripe-report-on-groups-in.aspx</guid>
            <pubDate>Tue, 16 Oct 2007 15:34:00 GMT</pubDate>
            <wfw:comment>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/comments/214.aspx</wfw:comment>
            <comments>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2007/10/16/creating-a-green-bar-zebra-stripe-report-on-groups-in.aspx#feedback</comments>
            <wfw:commentRss>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/comments/commentRss/214.aspx</wfw:commentRss>
            <trackback:ping>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/services/trackbacks/214.aspx</trackback:ping>
        </item>
        <item>
            <title>SSRS Web Services</title>
            <link>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2007/01/03/ssrs-web-services.aspx</link>
            <description>&lt;p&gt;The other day I was talking to another local developer that was interested in using reporting services, but while the “Report Viewer” control provided by Microsoft is fast and easy it doesn’t necessarily fit into the business requirements that his users have outlined. To that end it is a good thing that Microsoft provided Web Service access to all of the report servers functionality. Since a high level of customization is needed to the UI and the Report Server already provides much if not all of the data you need to build it my recommendation is to build the UI dynamically by queering the report server for information. &lt;/p&gt;
&lt;p&gt;I would start by reviewing this article by Marian Dumitrascu. While his implementation is using RS 2000 and looks like the report viewer it should spark the seed to show you what is possible. SQL Reporting Services Viewer Page Using SOAP API (&lt;a href="http://www.codeproject.com/sqlrs/SQLRSViewer.asp"&gt;http://www.codeproject.com/sqlrs/SQLRSViewer.asp&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Some general information about the Report Server Web Service can be found here: SQL Server 2005 Books Online - Building Applications Using the Web Service and the .NET Framework (&lt;a href="http://msdn2.microsoft.com/en-us/library/ms154699.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms154699.aspx&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Finally if you want to render the report and return it to the user as a file take a look at this article: How to create a sample application that uses the Reporting Services SOAP APIs to render a report to a selected file format on a Web page (&lt;a href="http://support.microsoft.com/kb/875447"&gt;http://support.microsoft.com/kb/875447&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://www.drowningintechnicaldebt.com/ShawnWeisfeld/aggbug/164.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>sweisfeld</dc:creator>
            <guid>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2007/01/03/ssrs-web-services.aspx</guid>
            <pubDate>Thu, 04 Jan 2007 00:58:00 GMT</pubDate>
            <wfw:comment>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/comments/164.aspx</wfw:comment>
            <comments>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2007/01/03/ssrs-web-services.aspx#feedback</comments>
            <wfw:commentRss>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/comments/commentRss/164.aspx</wfw:commentRss>
            <trackback:ping>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/services/trackbacks/164.aspx</trackback:ping>
        </item>
    </channel>
</rss>
