Telerik Forums
Reporting Forum
1 answer
183 views
Hi,

I hope there is an easy way to do this...  Basically, we have a perfectly running site which is built with many Telerik tools (love your products!)...  We just renew our annual subscription.

The Problem:  Our developed site, with extensive reporting and page richness thanks to Telerik, works super on IIS6 and IIS7.  All very nice.  We're sailing through a rebranding storm and have a new brand-related animated Gif for "Please Wait" which is now used throughout the site except for one place. That one last place to change is the Reportviewer for when it's processing data before the report displays.

So I came across a very nice thread on your site (http://www.telerik.com/community/code-library/reporting/general/applying-custom-skin-to-the-web-report-viewer.aspx) which explains: "You can do this by implementing a custom skin for the ReportViewer.".  So I did the following:

- I downloaded the Zip file in that thread and extacted the Skins folder and it's two sub-folders (Custom and Orange).

- In the "Custom" sub-folder, I replaced the Loading.Gif with my own Gif and then I copied that Skins folder to my project..

- I updated the properties in the page where the Reportviewer was happily living the past few years: SkinsPath="~/Skins" Skin="Custom"

- I hit the "Run" button and all was good in the world as it worked just as the thread said it would be.

So, then I copied the site to one of our servers (IIS7) and when you run a report at the site, it pauses a moment (new) when it's about to process the report and there's no font any more for the "Processing..." text and the animated gif is a box with a red x in it.  Then, the report processes and looks perfect, however, the toolbar is filled with those boxes with red X's in it and looks quite unhappy.

First, I thought it may be some IIS7 challenge the universe was throwing me, but I had the same results when I copied the site to a server running IIS6.

Then, I checked for the Skins folder on the servers and yes it was there with the right files in it.

Then, I removed the Reportviewer properties for SkinsPath="~/Skins" Skin="Custom" and I recompiled the site and reposted it (an automatic batch process) to both servers and both looked good again without any issue.

When the paramedics revived me, I found another thread on your site which talked about "the styles of the web report viewer's toolbar are all messed up" (http://www.telerik.com/support/kb/reporting/report-viewers/the-styles-of-the-web-report-viewer-s-toolbar-are-messed-up.aspx) and I meticulously went through every item in that solution path to no avail.

All that I need to do is to replace the animated Loading.Gif and I'm done but I've hit a wall here and hope you can bail me out like you have every time I hit walls in the past.

We're using: 

ASP.Net 4.0
VS 2010
Telerik Reports – Q3-2012
Telerik AJAX Controls – Q3-2012 

Please advise, thanks,
Steve    
Steve
Top achievements
Rank 1
 answered on 19 Nov 2012
2 answers
187 views
Is there a way to dynamically instantiate the proper report class and add it to the ReportViewer? For example I have a pre-existing DLL with a single report class in it. Now I add a second report class to that same DLL and replace it on my web server. Let's say I want to use my database to store the names of the report classes, so I can easily add an entry and have it immediately added to a dropdown list. And when I select from the list it will reload an iFrame that has my ReportViewer in it (I actually already have this reloading piece), but is there a way I can code that ReportViewer page to instantiate the class name I have passed to it?

Basically I want to be able to create a new report and just drop the updated DLL onto my server, and with a quick database change have access to the report (i.e. without having to code anything into my report selection or report viewer pages, and possible re-compile etc.)
Xorcist
Top achievements
Rank 1
 answered on 19 Nov 2012
1 answer
162 views
I have a list which contains one textbox in it.

Basically what it does is get some results and display them one above the other.
The problem occures when I have a result that is multiline. The result then tends to "overflow" over everything under it.

The structure of the portion is

Group 1
    Question 1
         Result 1
         Result 2
         ...
         Result N

Group 2
     Question 1
          Result 1
          Result 2
          ...
          Result N

If for example Result 1 is multiline it will overflow onver Result 2/3/4 or even over the next group...
How can I make the list which contains Results expand as the textbox for the results expand as well (TextBox.CanGrow = true for textboxes holding results. I can't find anything similar for lists)

Edit: I have solved the problem by using "Regex.Replace(string,"\r", " ") and having it all in one line and wrapping but I would really like to keep the formating if possible
Peter
Telerik team
 answered on 19 Nov 2012
0 answers
138 views
I have report with several parameters, all of them are optional, but if all parameters are null the report runs very long time. On the page report viewer starts automatically an it takes a lot, before user  can select values for the parameters. 
This question already was asked at the forum, but there is no solution (the solution provided by Telerik team does not work)
Lily
Top achievements
Rank 1
 asked on 16 Nov 2012
2 answers
254 views
I tried to convert my code to the recommended "ElementTreeHelper.GetChildElements method, however the Report Processing GroupSection does not have this object.  What is the correct way to do this?  I have searched forums but no satisfactory answer.  Here is my code.
Imports Processing = Telerik.Reporting.Processing
 
Dim section As Processing.GroupSection = DirectCast(sender, Processing.GroupSection)
Dim dataobject As Processing.IDataObject = DirectCast(section.DataObject, Processing.IDataObject)
 Dim txtbxSumV48 = DirectCast(section.ChildElements.Find("txtSumV48", True)(0), Telerik.Reporting.Processing.TextBox)
Chuck Harrington
Top achievements
Rank 1
 answered on 16 Nov 2012
1 answer
112 views
I have created a pie chart that binds to a SqlDataSource object.
I have created (in design time) a single series that binds the DataYColumn property to a Units column in the datasource and the DataLabelsColumn to a Status.
So far so good.
The problem I am having is that I would like to be able to change the colour of the pie slices. For example, The Completed slice should be Green, The In Progress slice should be Orange and the Errors slice should be Red.
I can't seem to figure out how to set these either at design time or programatically?
One thing to note is that I can't bind the datasource at runtime via the needdatasource due to restrictions in the application.
Steve
Telerik team
 answered on 16 Nov 2012
1 answer
492 views
Hi .. 
I am Generating Data Report Using Telerik Report Viewer with out datasource .Instead of DataSource I am using Query To get the data .that data is assign to report . But The report is nothing displaying,  the code is like

  private void TeletikReport_Load(object sender, EventArgs e)
        {
              //// Creating and configuring the ObjectDataSource component:
          var objectDataSource = GetData();
            // Creating a new report
            Telerik.Reporting.Report report = new Telerik.Reporting.Report();
            report.DataSource = objectDataSource;                        
            // Use the InstanceReportSource to pass the report to the viewer for displaying
            Telerik.Reporting.InstanceReportSource reportSource = new Telerik.Reporting.InstanceReportSource();        
            reportSource.ReportDocument = report;
            // Assigning the report to the report viewer.
            reportViewer1.ReportSource = reportSource;
            //// Calling the RefreshReport method in case this is a WinForms application.
            reportViewer1.RefreshReport();
        }

        static DataView GetData()
        {
            const string connectionString = "Data Source=EMp;Initial Catalog=Emp;Integrated Security=True";
            string selectCommandText = "SELECT * FROM Emp;";
            SqlDataAdapter dataAdapter = new SqlDataAdapter(selectCommandText, connectionString);
            DataTable dataTable = new DataTable();
            dataAdapter.Fill(dataTable);
            DataView dataView = dataTable.DefaultView;
            return dataView;
        }

Please , Help  Where is the problem 


Steve
Telerik team
 answered on 16 Nov 2012
1 answer
122 views
Hi,
I 'm facing the problem of the main and sub report are not together mean Sub report is displayed in next page.Let me know how to fix it.I use telerik reporting Q3 2012.

kind Regards,
Msyma.
Steve
Telerik team
 answered on 16 Nov 2012
2 answers
248 views
Hello,

I'm thinking of migrating my Reports from Crystal Reports to Telerik Reporting, but I would first like to know if your system could support resource translation on each of the report objects.

This is how I was able to achieve the same functionality in Crystal Reports:
System.Collections.IEnumerator ie = myReport.ReportDefinition.Sections[i].ReportObjects.GetEnumerator();

I would then get a reference to the report's TextObjects and change their .Text property to the desired language.

How would I achieve the same functionality using Telerik Reporting?
Themos
Top achievements
Rank 1
 answered on 16 Nov 2012
4 answers
206 views
We have a chart in a report that uses datagroupcolumn to break the data into different series.

Is it possible to remove the series labels? How?
Derek
Top achievements
Rank 1
 answered on 15 Nov 2012
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?