Link to home
Start Free TrialLog in
Avatar of VBBRett
VBBRett

asked on

SSRS application can't print SSRS reports

I have been tasked with upgrading from the SQL Server 2005 service to the SQL SERVER 2008 R2 Service which is really tagged as 2010.  I am attempting to print a report using the SSRS web application and I am trying to change to the new 2008 R2 framework but it is not a direct fit, some changes have to be applied in order for the report printing function to work.  At any rate, I attempt to print a report and I get a 401 error where the report does not print.  Does anybody have any experience with this?  If you would like for me to display some code, I will post it.  Thanks!
SOLUTION
Avatar of Nuno Rogado
Nuno Rogado
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of VBBRett
VBBRett

ASKER

How do you check the logs?
ASKER CERTIFIED SOLUTION
Avatar of Howard Cantrell
Howard Cantrell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of VBBRett

ASKER

Well my problem is the finditems function for SQL 2010 SSRS.  I'll post code later
OK, please post your code.
Avatar of VBBRett

ASKER

OK, so the one thing that I am attempting to do is update a function to work in the SSRS 2010 version.  The old 2005 version had the following code:

   Public Function fnListReports() As Boolean
        'Initialize a SearchCondition object to search by item name
        'using the value obtained from TextBox1
        Dim intItemCount As Integer = 0
        Dim mySearchConditions(0) As ReportingServices2005.SearchCondition
        myReportService.Url = System.Configuration.ConfigurationManager.AppSettings("ReportService")
        mySearchConditions(0) = New ReportingServices2005.SearchCondition
        mySearchConditions(0).Name = "Name"

'myCatalogItems = myReportService.FindItems("/", Nothing, mySearchConditions)

        'Clear the ListView to prepare for loading with new values.

        Try
            intItemCount = 0

            Me.cboReports.Items.Add(New ListItem("** Please Make a selection **", "*"))

            If Not (myCatalogItems Is Nothing) Then
                Dim ci As ReportingServices2005.CatalogItem
                For Each ci In myCatalogItems
                    If ci.Type = ReportingServices2005.ItemTypeEnum.Report Then
                        Me.cboReports.Items.Add(New ListItem(ci.Name, ci.Path))
                    End If
                    intItemCount = intItemCount + 1
                Next ci
            End If
        Catch ex As Exception
            'MsgBox(ex.Message)
            Me.lblError.Text = "** " & ex.Message
            Me.lblError.Visible = True
            'For a production environment, you should create
            'specific error-handling routines
            Throw New Exception("Unable to build tree view.")
        End Try
    End Function

Open in new window

Avatar of VBBRett

ASKER

The problem that I am having is that the 2010 SSRS version requires 4 parameters to complete the statement.  I got the following error when I attempted to run the program.  I need the following line of code to be fixed:

myCatalogItems = myReportService.FindItems("/", Nothing, mySearchConditions)