Quantcast
Viewing all 10045 articles
Browse latest View live

SSRS 2012 report colors do not export to excel correctly

Hi Guys,

can anyone share your ideas for the below query. Thanks in advance.

I am facing some issue in rendering my SSRS report(2012 version) to excel sheet with color codes. i am using conditional formatting to display the colors. so what is happening is ,take the below expression as an example, for the id  = 0, we are not getting white back ground, we are getting some other colors. But the same thing is working fine in SSRS 2008R2. 

=IIF(MAX(Fields!id.Value=0,= 0, "WHITE","BLUE")

Regards,

kiran




Exporting SSRS to XML format issues

Hi,

     I need to generate a  report in XML format . Expected XML format is 

    <?xml version="1.0" encoding="UTF-8"?>
    <ns:SPO xmlns:ns="urn:abc:SparePartOrder">
    <SPOrecset>
<SPOK>
<ZCODE>O</ZCODE>
<KNDNR>00009999</KNDNR>
<FIL93> </FIL93>
               <BSARK> </BSARK>
        </SPOK>
<SPOA>
<ZCODE>O</ZCODE>
<KNDNR>00009999</KNDNR>
<ZMCOD>ORDCL</ZMCOD>
<BSTNK>BST0199999 </BSTNK>
        </SPOA>
<SPOP>
<ZCODE>O</ZCODE>
<KNDNR>00009999</KNDNR>
<ZMCOD>ORDCL</ZMCOD>
</SPOP>
    </SPOrecset>
    </ns:SPO>

       I have tried two methods to get the above XML format.

  1. Modified  XML Nodes  -

         Created a stored procedure which returns the required informations from database. To get the XML format I have modified         XML Nodes using  DataElementName property from SSRS. I have added the following code in rsreportserver.

           <Extension Name="Custom XML"   Type="Microsoft.ReportingServices.Rendering.DataRenderer.XmlDataReport,Microsoft.ReportingServices.DataRendering">
           <OverrideNames>
                           <Name Language="en-US">Custom XML</Name>
            </OverrideNames>
           <Configuration>
           <DeviceInfo>
                    <UseFormattedValues>True</UseFormattedValues>
                    <Indented>True</Indented>
                    <OmitNamespace>True</OmitNamespace>
                    <FileExtension>xml</FileExtension>                
           </DeviceInfo>
           </Configuration>
           </Extension>

When I run the report and export it to XML , I got the XML as given below.

       <?xml version="1.0" encoding="UTF-8"?>
       <Report Name="POExportToGermany">
          <SPOrecset>
                 <SPOK_Collection>
                   <SPOK>
                        <ZCODE>O</ZCODE>
        <KNDNR>00009999</KNDNR>
        <FIL93> </FIL93>
                        <BSARK> </BSARK>

                   </SPOK>
                   </SPOK_Collection>
                    <SPOA_Collection>
                    <SPOA>
                               <ZCODE>O</ZCODE>
               <KNDNR>00009999</KNDNR>
               <ZMCOD>ORDCL</ZMCOD>
               <BSTNK>BST0199999 </BSTNK>
                     </SPOA>
                    </SPOA_Collection>
                     <SPOP_Collection>
                     <SPOP>
                                 <ZCODE>O</ZCODE>
                <KNDNR>00009999</KNDNR>
                <ZMCOD>ORDCL</ZMCOD>
                     </SPOP>
                     </SPOP_Collection>
</SPOrecset>
</Report>

Here the format is not in the expected format.

 2. Using Stored Procedure:-

          Using Stored procedure I am able to  create the expected XML format. 

Image may be NSFW.
Clik here to view.

When i click on this link I can see the data in expected XML format. But the problem is I am not able to show this data in report. Dataset is showing the above .XML as given below.

Image may be NSFW.
Clik here to view.

How can I generate report using  SSRS  with expected XML format?  

Please let me know the procedures to get the above XML format.

Thanks in advance for your help .....

Regards,

Dhanisha



Unable to create parameter, using OLE DB connection.

Hi SSRS Xprts,

I am new to MSBI, I am unable to create parameter using OLEDB please help me on this ASAP. . . 

Issue:
I am using Report Builder 3.0 and using this report tool I am executing below query, while I am running this query it display below error message.
If anyone is having any solutions pls email to palanivelunm@outlook.com

Query: SELECT * FROM EMP  WHERE EMPID =@EID

I need to pass @EID as parameter.

Error msg: (run the above query disp error msg)

Column or global variable *N not found. SQLSTATE:42703, SQLCODE:-206(Microsoft DB2 OLE DB Provider)

-Palani

SSRS 2008 Report Parameter Default Value doesnt work when deployed

Hi,

I have a parameter that chooses its available items from a query (with a label and a value column). I set the default for the parameter to the a particular value.

It works in Preview from design mode, but when I deploy it and run the report, it does not set the default.

Any ideas?

Thanks!


Rick

SSRS lookup - can I use more than one field when doing the lookup?

Say I want to lookup a value in another dataset, but there is a grouping that requires you to know what the values for each level is in order to get to the correct detail record.   Can you still use the lookup function with more than one field to compare against?

So for example

Department
\___SalesPerson
     \___Measure

I want to be able to add a new row at the Measure level, but lookup each field from another dataset.  In order to do that I will need the Department AND SalesPerson values to do the lookup, but I dont think the Lookup function will let us do that will it?  If not, what will?

How to setup a SSRS for On Demand access and a fast cache

I have a dashboard page that I would like to load fast. But I would also like the user to be able to run the report On-Demand. The report has start date and end date parameters which default to the first and last day of last month. If I use a Cache plan that loads at 6AM the report runs with the default parameters set in the report, the user has to wait until it completes before they can change the parameters. If I uncheck "use default" parameters in the report I lose the ability to set a cache refresh plan with the default parameters because the option is greyed out. So is there anyway outside of creating a second copy of the report to allow a user to open a report, change the parameters and run it, but also have a way to schedule some sort of Cached report for the default parameters so I can put that on a WebPart page that would load instantly?

Thanks,

Phil

Can a multi-value parameter be used to choose columns?

I want to use a Multi-Value Parameter in a COALESCE statement; e.g.:

SELECT COALESCE (@Selected,NULLIF((COALESCE(A,B,C,D,E,F,0) ^ 1)* COALESCE(H,I,J,0),0)) AS FOO

where @Selected is a list of column names. I suspect I will just have to use a complex case statement but I thought I'd check here to see if anyone has any better ideas.

Spatial Data in the book Microsoft SQL server 2012 Reporting services book

I have been reading the official microsoft book on reporting services 2012 by stacia misner to study for my MCSE in Business intelligence, the book is really good until i get to the chapters on spatial data and find that the sample database provided doesn't match the exercises you down load. as someone who hasn't worked with maps before this is a pretty big downside. i have submitted it as errata but they dont seem in a hurry to knowledge or correct the problem, is this something other people have encountered? if you how did they get around it?

Thanks

BI

 

SSRS 2012 intermittent report reloading in SharePoint Integrated Mode

We've been struggling with an issue where SSRS reports being executed from a report library in SharePoint intermittently are reloaded after hitting the apply button to run.  We are using SSRS 2010 and SharePoint 2013 in integrated mode. So a user clicks on the report, fills in the parameters and hits apply. Maybe 70% of the time the report runs fine.  The other 30% the report just reloads and wipes out any parameter selections. We do have a load balancer in front of the web servers.

I've ran fiddler to capture some of the error logging.

HTTP/1.1 401 Unauthorized Cache-Control: private Content-Length: 16 Content-Type: text/plain; charset=utf-8 SPRequestGuid: 3101219d-876e-60c8-a883-dcdee38b81b5 request-id: 3101219d-876e-60c8-a883-dcdee38b81b5 X-FRAME-OPTIONS: SAMEORIGIN SPRequestDuration: 3 SPIisLatency: 4 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET WWW-Authenticate: Negotiate WWW-Authenticate: NTLM X-Content-Type-Options: nosniff X-MS-InvokeApp: 1; RequireReadOnly MicrosoftSharePointTeamServices: 15.0.0.4667 Date: Wed, 05 Aug 2015 12:46:41 GMT Proxy-Support: Session-Based-Authentication 401 UNAUTHORIZED

HTTP/1.1 302 Found
Cache-Control: private, no-store
Content-Length: 611
Content-Type: text/html; charset=utf-8
Location: /_windows/default.aspx?ReturnUrl=%2fReports%2f_layouts%2f15%2fReportServer%2fRSViewerPage.aspx%

<html><head><title>Object moved</title></head><body> <h2>Object moved to <a href="%2f_windows%2fdefault.aspx%3fReturnUrl%3d%252fReports%252f_layouts%252f15%252fReportServer%252fRSViewerPage.aspx

Things we have tried.

Multiple versions of IE 8,9,10,11, Firefox, Chrome.  All browsers seem to exhibit the behavior.

We ran so more traffic monitoring and it doesn't appear on these refreshes that report actually connects to the data context so it seems to be failing prior to that. (Possibly at the SharePoint server. Logging from the server apparently didn't show much in terms of when this occurred)

It doesn't seem to matter if the report has 1 or 10 parameters. 

We did notice that when we took the load balancer out of the equation and just hit the web server directly, the refreshes "appeared" to decrease in regularity but still occur.

Also, the reports do not exhibit the refresh issue when running locally within Visual Studio 2013.

Anybody ideas of where I should be looking for the culprit?




Using the IN Operator in SSRS Expressions

Is it possible to use the IN Operator in an expression in an SSRS 2008 R2 report?  For example, to hide a textbox when the value is in a list of values, must one use nested IIFs such as:

=IIF(Fields!EYE_COLOR.Value="Blue",True,IIF(Fields!EYE_COLOR.Value="Green",True,IIF(Fields!EYE_COLOR.Value="Brown",True,False)))   ?

The following would be much more straightforward, especially if the list of values is long, but it gets an error:

=IIF(Fields!EYE_COLOR.Value IN ("Blue","Green","Brown"),True,False)

 

Safe to delete reportparts?

Hello there,

on our Report Server (2008 R2) there's a bunch of report parts that have been "accidentally" deployed by some of the users. I know that new instances of these report parts are copies of the original. Based on that I would assume it's safe to delete the deployed report parts, but I'm not sure whether the original report - from which the report part was deployed - would still be functional.

So, can I just delete them?

Thanks,

Collabri

change background color of columns depending on previous value

I have a simple report that looks like this:

                January    February   March      April

Sales        1050         800          750         1100

Units Sold  50            40            41           60

I want to change the background color to yellow if the value is less than the previous month. For example for the sales row, February sales is less than January and March sales is less than February so I would want the values (800 and 750) to have a background color of yellow. The columns is grouped by month.

I've tried experimenting with the Previous function but I run into the following error message: The BackgroundColor expression for the text box has a scope parameter that is not valid for an aggregate function.  The scope parameter must be set to a string constant that is equal to either the name of a containing group, the name of a containing data region, or the name of a dataset.

Thanks in advance for any help.

Report Preview issue

Hi

Apologies if this is the wrong forum but i have a general question regarding an issue we are having with some of our reports hopefully someone can assist or shed some light on it.

This has been happening with a number of our reports.

We have 1626 properties in our database and sold three so the total should then be 1623. The database was updated at this point to reflect that these three properties were sold.

e.g. We wrote a report yesterday on 23/09/2015 and when we run the report in query designer we get the correct total in this case 1623.

However when we look at the report in Preview mode this still shows 1626.

Today on 24/09/2015 when i went to look at the report to try and identify where the problem might be, when i run the report in Preview mode now the total is correct i.e 1623.

Can anyone shed any light on why the report was showing the wrong output one day and correct the next with no changes being made to the report. I have noticed this happening with a couple of other reports we have.

Note: This report joins tables and views from our database.

Regards

John

Print on continuous paper on SSRS

  • Paper is 21cm x 9cm
  • Printer is Epson LX-300

When I set this paper size, SSRS turns orientation to landscape and prints as if clockwise right rotated! 

I tried creating custom paper on print server options without success. 

I also tried setting the same paper size in Report Builder and Print Server but failed again.

Thanks

RDLC reports render fonts incorrectly

We have problem, can anyone please help?

- We use RDLC reports (local reports - VStudio 2010) on the web server called through WCF (we call the WCF web service that prints).
- The reports use the Arial font and some barcode font "PrecisionID C128 08.ttf" (the website msi installs the barcode fonts on the server).
- Right after the installation it prints the reports with the fonts looking squished (less space between letters or the letters are larger or like Arial goes narrow and a bit bolder and the barcode doesn't scan).
- If we reboot the server the reports print correctly and we can scan the barcode.
- Next morning after the server reboot it still prints correctly so we don't touch the server any more.
- After a while it goes back and prints squished and if we reboot the server it prints normal once again... but after 1 or 2 days... it squished again...
- Crystal Reports doesn't have this issue at all.
  
We tried many workarounds with no success:
- We used in the report text boxes with other font than Arial (present on the server).
- We installed ReportViewer.exe from Microsoft (this puts the assemblies in the GAC but still referred "Microsoft.ReportViewer.WinForms.dll" only from our website Bin).
- We also distributed the ReportViewer dll-s through our website msi in the website Bin folder.
- We restarted IIS after deployment
- We restarted the print queues after deployment
- We deleted FNTCACHE.DAT
- We played with the "Windows Presentation Foundation Font Cache 4.0.0.0" (even if we don't use WPF)
- We played with the printer drivers.
- We checked that the printer doesn't map/substitute fonts.
Only rebooting the server fixes the font / font spacing for a while.
We didn't check service packs and hotfixes yet... our DEV server is the only one that doesn't break as above but it looks pretty much the same as the others: 64bit Win Server 2003 R2 with SP2.
Thanks,
Radu

date comparison in iif expression

Hi we run std 2008 r2.   Can someone tell me what is wrong with this expression?...

...+ IIF(Today() > CDate(

"11/30/2015"),"","...

 

Sharing a Local Database & Reports Over A Domain

Hi friends,

I have a database instance named SQL01 on my local PC lets say PC01 and have been assigned a task to share the same and some SSRS reports. My PC is connected to a domain lets say Domain01. Any idea how to allow only User01, User02 & User03 to connect to the database and access the SSRS reports with Windows Authentication mode?

Thanx in advance.

a couple of defaults show in params when in vs but not production

Hi we run std 2008 r2.  I just downloaded a report from production and opened it up in vs.   When I preview in vs, a couple of params aren't checked as null in vs like they are in production.  In fact they have legitimate default account related values.  Is it possible i'm working with the wrong version of the report?  Or that production has some overriding setting somewhere?  I looked at the properties in vs of one of the params and indeed see the default.

Need to display only two values before decimal points

Hi Friends,

In my report I am having one calculation filed, in that field I want to display only two values before decimal point.

For example, if I am having calculation field value as 3456.54, I need to display as 35.54 or 34.54.

Is there any way to achieve this, if so please help me on this.

-Palani

SQL Server 2008 R2 : What is Intermediate column in the dbo.Catalog table under Reportserver database ?

Hello guys,

Can someone please assist me on - "What is the Intermediate column which is found in the dbo.Catalog table under Reportserver database?". It is required due to some analysis on the report data for one of my application and it is important to understand about it.

Thanks in advance, Please assist me on the same.

Viewing all 10045 articles
Browse latest View live


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