Telerik Forums
Reporting Forum
1 answer
105 views
Hi;
How can I generate a chart based on crosstab table? Like Pivot Chart from Pivot Table.

Thanks
Steve
Telerik team
 answered on 03 Mar 2010
1 answer
84 views
Hi;
I have a report using crosstab and it works perfectly.
However, I want now to have it display a list of records where total is zero (just like what a left join in SQL do when it displays zero sales for one sales person for a specific product! like in http://www.w3schools.com/sql/sql_join_left.asp)

Is they anyway to do so.

Thanks
Steve
Telerik team
 answered on 03 Mar 2010
1 answer
92 views
Hi Team

I'm currently working on a report using Telerik's reporting for silverlight. Everything works find,  ReportsParameter are being sent in RenderBegin event method and the report is being rendered the way it has to be.

If possible, how could I set programmatically the settings of the printer:
- I want to print in A5 format.
- I want to select a printer from the available printers on client side.
In other words: I want to access printer's preferences.

In the forum, I saw capabilities for asp.net, what about Silverlight?

So far, I've used ReportViewerModel to "model.PrintReportCommand.Execute(null) to execute automatically the print command when the report is displayed. The Printer's dialog is being displayed and that's what I need to avoid.

Regards
Ed




Massimiliano Bassili
Top achievements
Rank 1
 answered on 03 Mar 2010
1 answer
93 views
Tags Supported HtmlTextBox.
I am developing for the System User, the ability to create custom reports (letter), from within the html, but the HtmlTextBox not support images, you can add support for the img tag in HtmlTextoBox?
Steve
Telerik team
 answered on 03 Mar 2010
1 answer
149 views
We have a sub-report that when rendered will span multiple pages;  the render format is PDF.  For each page, we would like to render a group header and footer (separate from the page header and footer).  To do so, we have created a group within the sub-report without a grouping criteria and set the PrintOnEveryPage property of the GroupHeaderSection to true.  However, we are facing several issues.

1) When we set the PrintOnEveryPage property of both the GroupHeaderSection and the GroupFooterSection to true, the application hangs on the call to the Telerik.Reporting.Processing.ReportProcessor.Render method.  The hang always occurs if the PrintOnEveryPage property is set to true for the GroupFooterSection, regardless of the setting for the GroupHeaderSection.
2) When set the PrintOnEveryPage property of JUST the GroupHeaderSection, the Render method returns and the report is rendered and the header is rendered on every page, however, the details portion overlaps the header, partially obscuring it.

Note that the sub-report itself contains 3 sub-reports as we display 3 sets of data on the same page (for comparative reasons). 

We are using Q2 2008 version of Telerik Reporting.  Has anyone else experienced the same issue?

regards,

DS
Massimiliano Bassili
Top achievements
Rank 1
 answered on 03 Mar 2010
1 answer
439 views
Hi! I have a problem, i would like to databind a PIE in a report, my code for binding a pie chart manually is like SAMPLE A, but i would like to assign YValue from a database, like the SAMPLE B, where i databind a bar chart from a database...

SAMPLE A
private void chart1_NeedDataSource(object sender, EventArgs e)  
        {  
            chart1.Width = Unit.Pixel(300);  
            chart1.Height = Unit.Pixel(300);  
            ChartSeries s = new ChartSeries();  
            s.Name = "NameOfSerie";  
            s.Type = ChartSeriesType.Pie;  
            for (int i = 1; i < 6; i++)  
            {  
                ChartSeriesItem item = new ChartSeriesItem();  
                item.YValue =i* 3.5;  
                item.Label.TextBlock.Text = "A" + i.ToString();  
                s.Items.Add(item);               
            }  
            s.Appearance.LegendDisplayMode =ChartSeriesLegendDisplayMode.Nothing;  
            chart1.Series.Add(s);  
        } 

SAMPLE B
private void chart1_NeedDataSource(object sender, EventArgs e)  
        {  
            string sql =  @"SELECT TOP 10 Production.Product.ListPrice, Production.Product.Name, Production.Product.ProductID FROM Production.Product";  
            string connectionString ="Data Source=localhost;Initial Catalog=AdventureWorks;Integrated Security=True";  
            SqlDataAdapter adapter = new SqlDataAdapter(sql, connectionString);  
            DataSet dataSet = new DataSet();  
            adapter.Fill(dataSet);  
            ChartSeries series = new ChartSeries();  
            series.DataYColumn = "ProductID";  
            series.DataLabelsColumn = "Name";  
            chart1.SeriesOrientation=ChartSeriesOrientation.Horizontal;  
            chart1.Width =Unit.Pixel(300);  
            chart1.Height = Unit.Pixel(300);  
            chart1.Series.Add(series);  
            (sender as Telerik.Reporting.Processing.Chart).DataSource = dataSet.Tables[0].DefaultView;   
        } 


I would like to fill a pie chart from a database, instead of a bucle...I mean...Something similar to SAMPLE B, where you can assign a DataYColumn, a field from the datasource...


Thanks for your time and i hope to find some help here...
Peter
Telerik team
 answered on 03 Mar 2010
2 answers
129 views
I know this issue has been addressed a few times, but I'm having issues still with my attempt. I'm trying to avoid using the wizard for my dataset and do everything programatically.

Here's what I have in the report code-behind:
Public Sub New()  
        InitializeComponent()  
         Try  
 
            Dim connMAS As SqlConnection = New SqlConnection()  
 
            Dim cmd As SqlCommand  
            Dim commLoadPortalUserInfo As SqlCommand = connMAS.CreateCommand()  
            connMAS.ConnectionString = Convert.ToString("some connection string")  
 
            connMAS.Open()  
            cmd = connMAS.CreateCommand()  
 
            cmd.CommandText = "storedprocedurename" 
            cmd.CommandType = CommandType.StoredProcedure  
 
            cmd.Parameters.Add("@CompanyID", SqlDbType.VarChar)  
            cmd.Parameters("@CompanyID").Value = Me.ReportParameters("CompanyID").Value  
 
            Dim da As SqlDataAdapter = New SqlDataAdapter(cmd)  
            Dim ds As DataSet = New DataSet  
 
            da.Fill(ds)  
            Me.DataSource = ds 
 
            connMAS.Close()  
              
        Catch ex As System.Exception              
            System.Diagnostics.Debug.WriteLine(ex.Message)  
        End Try  
    End Sub 
And here's what I have on my ASPX page calling the report:
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  
        If (Not Page.IsPostBack) Then  
            ReportViewer1.Report = New RosterReport()  
            ReportViewer1.Report.ReportParameters(0).Value = "Value" 
              
            ReportViewer1.RefreshReport()  
        End If  
 
    End Sub  
End Class 
And the parameter value never makes it to the report, so I get a blank one. If I execute the report and statically replace the Me.Parameter.Value with a static string value, everything works perfectly.

I've also tried many other variations of the code above and even tried creating a new instantce of my RosterReport and then binding it to the reportviewer to no avail.

Edit: It seems like the initial report is getting instantiated, but a version of the report with the parameter values assigned is never created. I thought that was the purpose of "refresh report"

Any help would be greatly appreciated.

John Cobb
Top achievements
Rank 1
 answered on 02 Mar 2010
4 answers
433 views

Hi,

I've been playing around with Telerik Report for just a couple days (basically reading the documentation and watching some videos) and have some questions. They are probable really basic questions, but since I didn't find so far an answer for them in the documentation nor by searching in the forum, I post them here.

I am trying to set a telerik report without having any DataBase conexion, so I thought on using a List (e.g. List<MyClass>) as DataSource.

How should I do this?

Until now, I added the DataSource programmatically, but then how do I connect the properties of the list elements (of type MyClass) with table/list/... cells?

Should I better define somehow the list as a project dataSource? how can I do this?

Does my approach make sense?

As I said at the beginning, I know these are probably beginner's questions, but I'm blocked!

Thanks!

Marta


Steve
Telerik team
 answered on 02 Mar 2010
2 answers
153 views
Hi again,

One of the issues we are interested in is a end-user report designer. I just red in the post Known limitations of Telerik Reporting that "End-user report designer is available at the moment", but I didn't found any positive reference to it in the documentation neither in other posts. Am I missreading? Otherwise, where can I find information about it?

Thanks,
Marta

Ps. By searching in the forum, I early realised that many people ask for this question in the past, hence I would have liked to skip old messages and just read the recent ones, but I couldn't identify the post date in the search results. Maybe it would be a good idea to add this details to them?
Peter
Telerik team
 answered on 02 Mar 2010
17 answers
1.0K+ views
I have a report that returns over 30,000 rows. The SQL query takes about 5 seconds to run but the report never ends up finishing.

I get a System.OutofMemory exception after almost 5 minutes of the report running. The report is using the WebForms viewer. There is not a lot of formatting on this report.

My question is is there a way to use paging (e.g. get records 100 - 200 at a time) to populate the report "on demand"?  Is there a way to get around this limitation? What is the limitation on number of records for Telerik reports?
Iurii
Top achievements
Rank 1
 answered on 01 Mar 2010
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?