Quantcast
Channel: SQL Server Reporting Services
Viewing all 1418 articles
Browse latest View live

How to convert a report in rdl format to rdlc format

$
0
0

I am trying to create reports in my asp.net application.  I using Microsoft Visual Web Developer 2008 Express.  I am trying to display the reports using the Report Viewer (local mode - no report server). 

I originally created a lot of reports using Report Builder 2 with the intent of using Report Viewer (remote mode - with a report server).  The reports that I created are in rdl format and in order to display the reports using the Report Viewer in local mode, the reports need to be in rdlc mode - (the C stands for client processing).

What is the easiest way to convert these files?

 

Bette


Convert RDL to RDLC file to run locally.

$
0
0

I have read through Microsoft Guides for conversion.

http://msdn.microsoft.com/en-us/library/ms252109(v=vs.80).aspx

I have no clue what manually replace the data source and query information in the report definition with data constructs provided in the application. I create a report sample one from VS then copy datasource and query information over the RDL. Also I rename RDL to RDLC extension and use it to run locally with reportviewer. I keep having this error:

Error 1 The report definition is not valid.  Details: The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition' which cannot be upgraded. C:\inetpub\wwwroot\ReportsWebsite\Original RDL.rdlc 1 

Please provide me a details step of which to replace.

Thank you in advance

Andy

How to filter rdlc report data using parameter

$
0
0

Hi,

I am using simple rdlc report to display student information data. I added parameters successfully tried all of the blogs sites but can't figure out what problem i am having following is my code:

private void button1_Click(object sender, EventArgs e)
{
DataSet1TableAdapters.studentTableAdapter adapter = new DataSet1TableAdapters.studentTableAdapter();
DataSet1.studentDataTable table = new DataSet1.studentDataTable();
adapter.FillBystudentname(table, textBox1.Text);

ReportDataSource mydatasource = new ReportDataSource("DataSet1.student", (DataTable)table);
this.reportViewer1.LocalReport.DataSources.Clear();
this.reportViewer1.LocalReport.DataSources.Add(mydatasource);
ReportParameter p1 = new ReportParameter(" ReportParameter1", comboBox1.SelectedValue.ToString());

this.reportViewer1.LocalReport.SetParameters(new ReportParameter[] { p1 });
this.reportViewer1.RefreshReport();

}

My parameter name is ReportParameter1

The error is coming "The ReportParameter1 is missing a value" can anyone help me out.

Saving Multiple Reports

$
0
0

Hello,

I am trying to save multiple reports at the same time using reportViewer.LocalReport.Render.   The report that is to be saved is currently determined by an id that is stored in session.  My idea is to save the first report then change the id in session, refresh the datasource and report, then print the second report and so on.  Here is an example of the code that I am trying to use:

Protected Sub Button1_Click(sender As Object, e As System.EventArgs) Handles Button1.Click

        Dim warnings As Warning() = Nothing
        Dim streamids As String() = Nothing
        Dim mimeType As String = Nothing
        Dim encoding As String = Nothing
        Dim extension As String = Nothing
        Dim bytes As Byte()
        Dim path As String = "C:\3\test.pdf"

        Session("ID") = 25
        odsRptSource.DataBind()
        reportViewer.LocalReport.Refresh()

        bytes = reportViewer.LocalReport.Render("PDF", Nothing, mimeType, encoding, extension, streamids, warnings)

        Session("ID") = 50
        odsRptSource.DataBind()
        reportViewer.LocalReport.Refresh()

        bytes += reportViewer.LocalReport.Render("PDF", Nothing, mimeType, encoding, extension, streamids, warnings)

        File.WriteAllBytes(path, bytes)
        
    End Sub

The problem that I am running into is that the report does not seem to refresh when I include:

bytes = reportViewer.LocalReport.Render("PDF", Nothing, mimeType, encoding, extension, streamids, warnings)

It just prints the same report over and over.

If I do not include:

bytes = reportViewer.LocalReport.Render("PDF", Nothing, mimeType, encoding, extension, streamids, warnings)

The report does show a new ID when I refersh.

Thanks for any help,

MxW

Embedded code didn't work

$
0
0

In the code tab of Report Properties window, I pasted the following VB code:

Public Function Divide(Numerator As Double, Denominator As Double)
 If Denominator = 0 Then
  Return 0
 Else
  Return Numerator/Denominator
 End If
End Function

But when I tried to reference the above function using "Code." in my expression, I saw an "Unrecognized Identifier" when I put my mouse onto this function in the expression edit window. Why? What I did is just copy the above function to the code tab and then start to reference it in the expression, what did I missed? Thanks for your opinion.

Steps to repeat table headers in SSRS 2008

$
0
0

1) Select the table

2) At the bottom of the screen, select a dropdown arrow beside column groups.

3) Enable "Advanced Mode" by clicking on it.

3) Then under Row Groups,select the static row and choose properties or press F4.

4) Set the following attributes for the static row or header row.
  
    RepeatOnNewPage    : True
    KeepWithGroup    : After

Thats it!

This is my first tutorial

Please give your valuable feedback that will help me to provide more information.

P.S.:

1) When we export the table report in SSRS 2008 as a word document, the table headers won't repeat when the table spans to multiple pages. The reason is the table report is exported as an inner table. So, Microsoft Word doesn't support header repetition for an inner table.

Thanks & Regards
Mahendra.

Reserved.ReportViewerWebControl.axd Missing URL parameter: Name

$
0
0

I keep getting this exception intermittently, it looks like a search engine is hitting my page even though I have a robots.txt file.  What is weird is look at the "Event" from Management Console (below).  The"Request URL" has "&" in the URL.  If you copy and paste that request URL you get the same exception (my site hides the exception of course) If you copy and paste the URL and replace "&" with just "&" then there is no exception and it returns a javascript file.  When I visit the reports page myself, everything works properly.  Like I said I am picking this up in my error logs and it throws quite a few exceptions all right in a row (like  5 of the same exceptions at the same time down to the second)

Has anyone encountered this? I am using this in my web.config:

<httpHandlers>
      <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
    </httpHandlers>


Event Type:    Warning
Event Source:    ASP.NET 2.0.50727.0
Event Category:    Web Event
Event ID:    1309
Date:        6/4/2007
Time:        4:21:36 PM
User:        N/A
Computer:    SV1803
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 6/4/2007 4:21:36 PM
Event time (UTC): 6/4/2007 11:21:36 PM
Event ID: 451314926608461980cfb5a89a038a94
Event sequence: 10588
Event occurrence: 4
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1136884830/Root-1-128254433988287500
    Trust level: Full
    Application Virtual Path: /
    Application Path: C:\Inetpub\wwwroot\alliance\
    Machine name: SV1803
 
Process information:
    Process ID: 9316
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE
 
Exception information:
    Exception type: ArgumentException
    Exception message: Missing URL parameter: Name
 
Request information:
    Request URL: http://alliance.nmrdesign.com/Reserved.ReportViewerWebControl.axd?OpType=Resource&amp;Version=8.0.50727.42&amp;Name=Scripts.ReportViewer.js
    Request path: /Reserved.ReportViewerWebControl.axd
    User host address: 69.19.14.15
    User: 
    Is authenticated: False
    Authentication Type: 
    Thread account name: NT AUTHORITY\NETWORK SERVICE
 
Thread information:
    Thread ID: 1
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: True
    Stack trace:    at Microsoft.Reporting.WebForms.EmbeddedResourceOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response)
   at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Reporting Server URL access from Mozilla and Chrome

$
0
0

I have a RS URL which can be accessed using IE 9.0 albeit with administrator's permission (Run as adminsitrator). No when I try to access the same URL with Chrome and Mozilla (again with Runs As Admin), I get these denial errors. Is there s fix for this?

rsAccessDenied in Mozilla (13.0.1) and Chrome (Version 24.0.1312.56 m) for Reporting Services.


ReportViewer doesn't export footer to Excel

$
0
0
<div class="post-text" itemprop="description">

I have a problem with exporting to Excel. In an RDLC file, I have a body and a footer. After exporting to Excel, the footer is not showing properly.

http://www.sendspace.com/file/bevi1i

The link above is the RDLC file, exported Excel and exported PDF. In the PDF, everything is ok and looks good.

Is there a known solution to this problem?

</div>

Empty Page Between 2 Pages in RDLC

$
0
0

Hi All,

Iam using RDLC Reporting, My report dispalys the output Correctly, But the Problem is when i save the report as PDF, i get an empty page between page 1 and page 3 ie; page 2, only the page header part is saved in the page 2. I want my report to be saved without any problem as mentioned above.How to remove this empty page between pages?

Thank You

SSRS Browser Compatability in Firefox

$
0
0

Generating of SSrs Reports Control template for print button and all remainings are displayed and work well,But came to Firefox the print Button is not displayed.only export option is working in firefox.please give me a suggestion to fix this problem.

Create report with Report Viewer in VS2012

$
0
0

I have used Report Viewer since VS2008 and have never had so many issues.   Trying to run a basic report

with a parameter but keep getting the same error message.  Also not able to bind objectDataSource to report using the built in task menu with reportviewer.  There must be a bug. Just doesn't make sense.   The error message I keep getting is

  • The report definition for report 'rpt' has not been specified
  • Object reference not set to an instance of an object. 
     Any information is helpful.

expression in Report view in asp.net

$
0
0

Hi 

I have problem in Report viewer.  I am using the expression to filter the value. I explain my scenario.

I want sum the amount for particular category. I have student database. I need the sum the paid amount for exam fee only.

=SUM(Fields!Amount.Value, "DataSet1") . It sums all amount. But I need to sum EXAM FEE only. Please help me how to do this

Thank  you

Maideen

ReportViewer Passing in a parameter

$
0
0

I'm having a very difficult time figuring out how to pass in a parameter to my rdlc report.

1)  On the report, I went into Report > Report Parameters and added a parameter.

2)  I tried writing some code (vb) on the page_load event to pass information to this parameter.  I have the following:

Dim p as New ReportParameter("MuniID", "TEST")
ReportViewer1.LocalReport.SetParameters(p)


When I run the report, I receive the following error:  "The 'MuniID' parameter is missing a value"

Am I on the right track?  can someone please give me some direction on what else needs to be done?


Thanks.

Subreport errors

$
0
0

I've just inherited a legacy report system (C#, Dot Net 4.0) than runs some rather complex reports in the usual report viewer.

I occasionally have problems with subreports failing.  All that shows then is 'Error: Subreport could not be shown.'

Is there anyway to generate a more informative error message?


UPDATE REPORTING SERVICES FROM VISUAL STUDIO 2010

$
0
0

Hello there upgrade for the visual RS 2010,
and perhaps would like this to export to excel 2007 maybe.

RDLC handling multiple drillthroughs

$
0
0

Hi,

I have multiple drillthroughs in my rdlc report and each of the child report has a datasource with it which needs to be initialized on click. 

How can I know which element (i.e. which graph has been clicked) in the report to run the code for the specific datasource?

In other words, if Graph 1 is clicked, I want to run Code block A in the event handler section and if Graph B is clicked in the report, I want to run Code Block B.

How do I capture from the rdlc which graph has been clicked by the user?

Your answers are most appreciated.

Best Regards,

Kayras

Using web form controls to control results from SSRS report

$
0
0

Hey guys, I'm giving this a go and it's been a while. What I'm trying to do is tie my report to my web form controls so I can configure what I want on my report. I have two parameters configured and each is tied to a drop down list. My query works fine so that isn't an issue (tested in sql debugger). Does anyone have any primers that show the right way to do this?

Sub-report failure in a massively huge report

$
0
0

I'm trying to trouble-shoot a huge SSRS RDL with over a hundred parameters.

For some reason a subreport of a subreport is failing.  

I've checked parameter values, types, and even spelling and cases.  All the necessary parameters appear to be set up correctly, from main report to subreport to sub-sub report.

Frankly I'm stumped.  

Is is remotely conceivable that order of parameters could affect anything?  (The parameter are not all in the same order in all reports.)

Are there any factors (bugs?) involving huge numbers of parameters that could cause problems?

Suggestions?

How to hide a table when datasource is empty or null in RDLC?

$
0
0

Hi,

I've multiple Table objects in my RDLC report. I show reports based on the data sources passed to Tables.

I want to hide tables when datasource is empty or null.

How to hide a table when data source is null or empty? and suppress that space in RDLC report?

Viewing all 1418 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>