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

Error occurred during local report processing in prod, OK on test system

$
0
0

I am getting this error in production, not on test system.  Here is the information I have:

Microsoft.ReportViewer.WebForms 9/2/2015 7:34:23 PM  Exception generated on Wednesday, September 02, 2015, at 7:34 PM

 Browser: InternetExplorer-11.0

 Language: en-US

 Message: Exception of type 'System.Web.HttpUnhandledException' was thrown.

 InnerMessage: An error occurred during local report processing.

 Source: Microsoft.ReportViewer.WebForms

 Method: Void EnsureExecutionSession()

 Stack Trace:    at Microsoft.Reporting.WebForms.LocalReport.EnsureExecutionSession()   

at Microsoft.Reporting.WebForms.LocalReport.SetParameters(IEnumerable`1 parameters)   

at SecureAdmin_PrintProposal.ReportViewer1_Load(Object sender, EventArgs e)   

at System.Web.UI.Control.OnLoad(EventArgs e)   

at System.Web.UI.Control.LoadRecursive()   

at System.Web.UI.Control.LoadRecursive()   

at System.Web.UI.Control.LoadRecursive()   

at System.Web.UI.Control.LoadRecursive()   

at System.Web.UI.Control.LoadRecursive()   

at System.Web.UI.Control.LoadRecursive()   

at System.Web.UI.Control.LoadRecursive()   

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Help is most appreciated.


how to use column from different datset in lookupset against a constant in ASP.NET Report

$
0
0

Hi Team,

We have something like below scenarioin ASP.NET report..there a stored procedure which returns result like this..2 result set  with only EmpId =1 values

Empid      EmpName  HasPrimaryContact        HasSecondaryContacts

1               xyz             1                                     1

EmpId     IsPrimaryContact(Bit Column)      ContactNumber        City

1              1                                                     124                         City1    

1              0                                                     345                         City2

1              0                                                      678                         City3

1              0                                                      745                        City1

  1. We created a DataSet1.xsd in the Visual studio project and created a Table structure for the above each result set . Lets say tblEmp and tblEmpContacts
  2. We added the tables as DataSet in the Report data of the SSRS. DataSet1- for tblEmp and DataSet2 for tblEmpContacts
  3. We created a table in the SSRS and assigned the DataSet1 (ie.tblEmp)

We created a report like below

EmpId  :  1

EmpName : XYZ

PrimaryContact : City1(124)

Secondary Contacts : City2(345)

                                   City3(678)

                                   City1(745)

I created a expression for the PrimaryContact  and secondary contact like below

1)  For Primary contact

=Join(LookupSet(True,Fields!IsPrimaryContact.value,(Fields!City.Value+"("+Fields!ContactNumber.value),"DataSet2"),vbCrLF)

her I put True as first field bcoz it needs to fetch only rows where  IsPrimaryContact is True  from the DataSet2 (tblEmpContacts)

2) For Secondary Contact

=Join(LookupSet(False,Fields!IsPrimaryContact.value,(Fields!City.Value+"("+Fields!ContactNumber.value),"DataSet2"),vbCrLF)

her I put True as first field bcoz it needs to fetch only rows where  IsPrimaryContact is False from the DataSet2 (tblEmp)

The above expression's worked only once after I rebot my machine its not working instead it shows  some error

Error:

The value expressio for the text box 'textbox67' refers to the field 'IsOwner'.
Report item expression can only refer to fields within the current dataset scope or,
If inside an aggregate,the specified dataset scope.

Please help how to resolve this issue

How to put line below each and every row as the result of Join expression for Textbox in SSRS

$
0
0

Hi Team,

For a textbox we are assigning the below expression. The textbox was placed in a table whose dataset is DataSet1

=Join(LookupSet(101,Fields!CaseId.Value,(Fields!Region.Value+";"+Fields!Jursidiction.value+";"+Fields!Entity.value),"DataSet2"),vbcrLF)

this expression will return the below result set from the "DataSet2"  show in the textbox

Region1;Jursidiction1;Entity1

Region2;Jursidiction2;Entity2

Region3;Jursidiction3;Entity3

but what customer want was a line below each row like  below kind of one column multiple row table. Please help

Region1;Jursidiction1;Entity1

------------------------------------

Region2;Jursidiction2;Entity2

------------------------------------

Region3;Jursidiction3;Entity3

-----------------------------------

Plug and Play Report

$
0
0

Hello Guys,

I am plaing to some kind of app that not need to publish and upload every report on server OR may be i dont know this kind of application system already in .

We have developed a application thats need a reports like in Crystal Report we just design and upload to server *.rpt nothing other file.

now other report have same kind of system to only design report and upload on server so our application can handle the all kind of report becoz application provide the datasource to reportviewr which is crystalreportviewer or Microsoft Report viewer but microsoft report we have publich everytime when changed or new .

give me some ideas guys

Thanks

How to Format paging for RDLC reports

$
0
0

Hello:

Which would be the best approach to do paging for RDLC reports. Depending on what details to show for different report formats, page footer and details and other sections would be placed.

it is mostly data driven. 

Thankyou ,

urpalshu

Ssrs cache refresh plan is not working

$
0
0


Hello , I have cached my ssrs report. I did the below settings in reportserver.


1. Processing option is set to get the report from cache and expiring the scheduled to expire at 2:00am.
2. Cache refresh plan is set at 4:00am .
 
When the user accesses it around 7:00am , the report is not bringing from cache .

rdlc report fails in production server

$
0
0

Hi,

I developed a report that works fine in my environment. However, when moving it to another server I get the error code below.

<System_Error>An error occurred during local report processing. StackTrace: at Microsoft.Reporting.WebForms.LocalReport.EnsureExecutionSession() at Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, PageCountMode pageCountMode, CreateAndRegisterStream createStreamCallback, Warning[]& warnings) at Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, PageCountMode pageCountMode, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings) at Microsoft.Reporting.WebForms.LocalReport.Render(String format, String deviceInfo, PageCountMode pageCountMode, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings) at Microsoft.Reporting.WebForms.Report.Render(String format, String deviceInfo, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings) at GetCustomerReport(Int64 IdentificationNumber) in C:\ Leads.vb:line 124 at MarketingServices.WSReports.GetReport(String IdentificationNumber, String Password) in C:\ WSReports.asmx.vb:line 35

It fails in the line:

 Dim bytes As Byte() = rpViewer.LocalReport.Render("PDF", Nothing, mimeType, encoding, extension, streamids, warnings)

Here is my code:

  Public Function GetCustomerReport(IdentificationNumber As Int64) As Byte()
            Dim LeadsDAL As New  Leads()
            Dim CustomerDS As DataSet = LeadsDAL.GetCustomerReportDataSet(IdentificationNumber:=IdentificationNumber)
            If CustomerDS Is Nothing Then
                Throw New ApplicationException(String.Format("no data for IdentificationNumber:{0}", IdentificationNumber))
            End If

            Dim rpViewer As New ReportViewer()
            rpViewer.Reset()
            rpViewer.LocalReport.ReportPath = "Common\Reports\ReportTest.rdlc"
            rpViewer.LocalReport.DataSources.Add(New ReportDataSource("DsMemberDetails", CustomerDS.Tables(0)))
            rpViewer.LocalReport.DataSources.Add(New ReportDataSource("DsProductDetails", CustomerDS.Tables(1)))
            rpViewer.LocalReport.DataSources.Add(New ReportDataSource("DsGraphs", CustomerDS.Tables(2)))
            rpViewer.LocalReport.DataSources.Add(New ReportDataSource("DsBarChart", CustomerDS.Tables(3)))
            rpViewer.LocalReport.DisplayName = "xxxx"
            rpViewer.ProcessingMode = ProcessingMode.Local

            'Export to pdf
            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() = rpViewer.LocalReport.Render("PDF", Nothing, mimeType, encoding, extension, streamids, warnings)
            Return bytes


Build a rdlc report in vs 2015 version 12 but dll not in production server

$
0
0

Hi,

I created a report (rdlc) in vs2015. We put the files in the client's server (no deployment) but they don't have the assembly for version 12.0 only earlier versions.

Therefore they get an error:

Exception Class:                System.IO.FileNotFoundException

Message:            Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.

They don't want to install version 2012. What options do I have to make the report work for them? Can I maybe change the version in web.config to version 11?

Thanks


Count returns false value if childgroup contains elements

$
0
0

Hi,

I got the following Data-Structure:

Group1: 2 rows with the same value in all columns

Childgroup1: 3 Rows with different values. 

My Row group structure looks like this: 

Group 1:         ValueA_1

Childgroup1:         ValueB_1

                            ValueB_2

                            ValueB_3

Making a count on ValueA_1 will produce 3 in this case. I would like it to produce 2. 

New to reporting services, need help doing a report that shows PC logins by the Hour

$
0
0

Hi all,

I'm new to reporting services and i'd appreciate some help with this Reporting Services report.

Data on PC logins and logouts are captured in an SQL Table. The login date and time is in 1 field, as is other fields like IP address, Hostname etc.

I've been tasked with creating a couple of reports that allow the user to select a Start_Date and End_Date, then choose a Room, and then display a report that shows the Total number of logins by each HOUR (24 hours) in each Room.

i.e. Room A101        Number of PC logins          

00:00                       20          

01:00                       15          

......                           ......          

23:00                       1

Can anyone please help me with a step by step on how to achieve this? As a new user of reporting services, I've learn how to do a report by using the filter between the dates, but I have no idea how to get the times displays as mentioned above.

Thanks

SSRS Parent and Child Reports Change the Visibility of Header text box in first page of each sub item

$
0
0

Hi All,

I have an SSRS Report, 1 Parent and one sub report. I have a header in parent reports with a text box in it, is there a way so that I can make my report in the following way.

1. The Header text box should not be there for first page for a sub report.

2. Header Test xob should be available for all other pages.

I have 182 sub reports to be generated in the master report, so I need every first page of sub report to exclude the Text Box. Is there an expression in your mind that will help me.?

Aju

VS2013 reports on SSRS 2008 R2 server compatibility question

$
0
0

I have a reporting question. We don't have SQL server 2012 or 2012 SSRS environment as of yet and are still running SQL Server 2008 with R2.  If I develop a report in Visual Studio 2013 with the business intelligence module installed.  Will I be able to deploy and run reports on the SSRS 2008 R2 Servers or VS2013 reports only work with SSRS 2012 Servers?

Thanks

External image in report rdlc

$
0
0

Hi,

I upload images to server and store their path in a table (varchar(MAX)). 

I managed to create a report and show the records from that table but I could not bind the image to its datasource (stored path).

My path looks like this:

~/ARTSQLDATA/PTDIR/15090248/IDFTO/15090248PPID.jpg

I am using the following code to populate my dataset

 Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            RepVuerCtl.ProcessingMode = ProcessingMode.Local
            RepVuerCtl.LocalReport.ReportPath = Server.MapPath("~/Account/RepPtProf.rdlc")
            RepVuerCtl.LocalReport.EnableExternalImages = True
            Dim DsPtProf As DSPtProf = GetData()
            Dim datasource As New ReportDataSource("PatientProfile", DsPtProf.Tables(0))
            RepVuerCtl.LocalReport.DataSources.Clear()
            RepVuerCtl.LocalReport.DataSources.Add(datasource)
        End If
    End Sub
    Private Function GetData() As DSPtProf
        Dim ARTSQLCON As SqlConnection = New SqlConnection(-------())
        Dim SQLCmd As New SqlCommand()
        SQLCmd.Connection = ARTSQLCON
        Using DtaRdr As New SqlDataAdapter(SQLCmd)
            SQLCmd.CommandType = CommandType.StoredProcedure
            SQLCmd.CommandText = "RepTblRegPtProf"
            SQLCmd.Parameters.Add("@FileNum", SqlDbType.Int).Value = 15090248 
            Using DsPtProf As New DSPtProf()
                DtaRdr.Fill(DsPtProf, "RepTblRegPtProf")
                Return DsPtProf
            End Using
        End Using

    End Function

Please help!

Thanks

Sql report

Programatically Invoke Report Without ReportServer?

$
0
0

Greetings,

Is there anyway in SSRS to invoke a report programatically from a local copy?  Ideally I would like to bundle a report definition with a program and just have the report definition read in, a data source instantiated and passed to the report object, any parameters etc. and then an output saved to PDF.  I have found a few references on how to do it from a report bundled on a server, but confused why there doesn't seem to be any way to do this in a stand-alone C# application.

Thx,

Rob


Exact datatype is missing in excel when export ssrs report to excel

$
0
0

 

i have ssrs report with contains 3 fields like start date, end date, percentage value, for these fields i given date and percentage fromats in format tab of the textbox, i export this report into excel sheet, what is problem is , in the excel sheet i select the date or percentage column and select the format cells option and selected the number format,but here i did not seen any format like date or percenatge format what ever i given datatype in report and it shows general format only for all columns. here i need solution like when clicking the number format in format cells it shows defaultly appropriate dateformat like date or percentage format at the time of rendering into excel. i think it is bug in ssrs , any guy please help me

 

how it possible please help me.

Special German character handling in ssrs

$
0
0

Hi There,

I am using microsoft reporting services for report and xml as a data source.

I am facing a issue related German Special character. Like öäüß.

Currently My data source xml file contains this data and following encoding="iso-8859-1" but the some special character not come proper they appear like '?' this.

For resolution i tried encoding ='UTF-8' but my hard luck the issue is not resolved. After change of encoding i tried to run report but report shown me error like 'some in valid character not supported by UTF-8'...... :(

Please give some valuable suggestions its really urgent required for me...  

Thanks in advance. :)

Report Builder: How to display boolean fields as Yes/No instead of True/False

$
0
0

I created a Report Model in Visual Studio and deployed it to the Report Server.  When users create reports using the Report Builder the boolean columns display as True/False.  They would like them to display as Yes/No.  According to Microsoft documentation you should be able to go to the properties of the column in the Report Model and set the Format attribute to either "truefalse" or "yesno" depending on how you want boolean values to display.  I changed it to yesno (it was blank) but the values still display as True and False. 

 Has anyone any tried this or has anyone had any luck getting boolean columns to display as Yes/No in the Report Builder?

 Thank you!

Report Viewer - Export To PDF

$
0
0

Hi,

I have a rdlc report that works, which is a good start. I'm able to pass the data source and have a 1400+ page report be displayed on the screen within 30 seconds. However, when exporting this to PDF, it takes a horrendous  amount of time. Anywhere between 25 to 40 minutes to export. PDF is the preferred option, but it takes the same amount of time for Word and Excel as well.

Now, since the report is generating fairly quickly and users can navigate through 1400+ pages without a delay, I'm wondering if there is an alternative way to get this converted to PDF quickly.

Thanks!

ServerReport.Render to EMF format is very slow when accessed remotely

$
0
0

Hi,

I have a winform app, I'm also using SSRS 2008 R2, within the app I create a stream in EMF format which I then push to a selected printer..  the code below works quickly when on the local network, however when run on a remote network using vpn to access the SSRS server the report.render into emf format takes like 10 mins.  If I ask the server to render into a TIFF or other format then the Render only takes about 20 seconds,  Can someone please tell me what's up.  and how this can be resolved..

            string deviceInfo = "<DeviceInfo><OutputFormat>EMF</OutputFormat></DeviceInfo>";
            System.Collections.Specialized.NameValueCollection urlAccessParameters = new System.Collections.Specialized.NameValueCollection();
            urlAccessParameters.Add("rs:PersistStreams", "True");

            Stream reportStream =
                report.Render("Image", deviceInfo, urlAccessParameters, out mimeType, out extension);

thanks,

Viewing all 1418 articles
Browse latest View live


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