Telerik Forums
Reporting Forum
2 answers
181 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
159 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
131 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
250 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
107 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
488 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
117 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
245 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
202 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
9 answers
256 views
Hi,

Does anyone know a link to download a Silverlight project that uses report viewer to show reports?
I need a complete working example (with client and report server), not just a tutorial explaining how to make it.

Thanks,

Nuno Pinto
Steve
Telerik team
 answered on 15 Nov 2012
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?