Telerik Forums
Reporting Forum
1 answer
123 views
I am having some trouble linking a sub report to my master report.  This is my first attempt and am not sure that I am doing it properly.  I tried following the example in the documentation (http://www.telerik.com/help/reporting/designing-reports-master-detail.html) but I can't seem to navigate to the sub report that I have created so that I can place it on the master report.

I have provided a screen shot with a little more detail.

Thoughts?

Doug
Peter
Telerik team
 answered on 10 Oct 2012
1 answer
276 views
hi, i got a problem with a subreport, i want to set datasource on needdatasource method, this works fine on Q1 2012 but i just migrate my report and it doesnt work my code that used to work is
Telerik.Reporting.Processing.
 
ReportItemBase item = (Telerik.Reporting.Processing.ReportItemBase)sender;
 
int idQueja = (int) item.DataObject["idQueja"];
 
  
 
cNQueja ocNQueja = new cNQueja(idQueja);
 
ocNQueja.Load();
 
denunciadosReport.ReportSource.DataSource = ocNQueja.ListaDenunciado;

i need to set the datasource on needdatasource of my subreport
thanks

Alberto
Steve
Telerik team
 answered on 10 Oct 2012
2 answers
299 views
Hello!

I upgrade a project to "Telerik Reporting Q2 2012 SP2 (6.1.12.820)" from "(4.0.10.423)". The following code dont work, after the upgrade.
<UserControl x:Class="Sta1.UI.Modules.Reports.ReportDetailView"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:telerik="clr-namespace:Telerik.ReportViewer.Wpf;assembly=Telerik.ReportViewer.Wpf" mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300" x:Name="thisWindow">
  <Grid>
    <telerik:ReportViewer Report="{Binding DataContext.Report, ElementName=thisWindow}" />
  </Grid>
</UserControl>

The exception is:
A 'Binding' cannot be set on the 'Report' property of type 'ReportViewer'. A 'Binding' can only be set on a DependencyProperty of a DependencyObject.

In the ViewModel is this code:
...
    private Report _report;
    public Report Report
    {
      get { return _report; }
      private set
      {
        _report = value;
        NotifyOfPropertyChange(() => Report);
      }
    }
 
    public void SetReport(Report reportToShow)
    {
      Report = null;
      Report = reportToShow;
    }
...

Thanks in advance
wal1
wal1
Top achievements
Rank 1
 answered on 10 Oct 2012
1 answer
87 views
Hello.
I have created 3 columns report. Each report depending on row count in datasource will have few pages. Very often the last page is not fully filled (for example frst 2 columns are filled and third one is empty). Can I somehow force columns to have similar height?

Maybe i could create a section which will be shown just on last page and have width of whole page and dynamic height? Is it possible?

I will appreciate any help
Steve
Telerik team
 answered on 09 Oct 2012
1 answer
177 views
Hello,

I need a example code (or a way to do it) for drill through action on chart.

Situation is that suppose there is a chart displaying yearly expenses as bar chart, i should be able to click on any year's bar that will navigate to new report showing detailed expenses for that particular year. Means taking the clicked bar value as input for the new report

Expecting your prompt response

Thanks in advance 
Swapnil
Sr. developer

Steve
Telerik team
 answered on 09 Oct 2012
1 answer
63 views
Hello,

Im building a simple report containing a table. the table is showing the date in the first colom but now i want the first colom of the table  only to contain the date if it is different from the previous record.

example:
current:
20-12-2012 11:45 aaa
20-12-2012 11:46 bbb
20-12-2012 11:47 sss
21-12-2012 11:48 ddd
21-12-2012 11:49 zzz

i want:
20-12-2012 11:45 aaa
11:46 bbb
11:47 sss
21-12-2012 11:48 ddd
11:49 zzz


can someone help me?
Peter
Telerik team
 answered on 09 Oct 2012
1 answer
134 views
On our GUI screens we use the Telerik.Windows.Controls.RadRichTextBox control. We save it to a PDF byte array with the PdfFormatProvider.Export() method.
The PDF byte array is passed through a WCF-service that saves it in a SQL-Server database. So far so good.
To print the content of the RadRichTextBox control on the Telerik.Reporting.Report we use the Telerik.Reporting.PictureBox control.
But this control can handle only image formats, no PDF. For Silverlight it is also limited to a few formats. Our choice was the PNG-format.
In the WCF-service the PDF byte array read from the database, is converted to a PNG byte array (using using GhostScript DLL) that is returned to the Silverlight client application.
Through a object data source the PNG byte array comes in the report and is bind to the PictureBox.
Conclusion:
As you can see this is a very long and difficult way to just print the content of a RadRichTextBox!
The content is on the report but the quality from the converted PDF is so very bad that is not acceptable. So I’m stuck.

Question
Is if there is a better Telerik way to do the job. If not I can’t use the Telerik controls an we will not buy.
Maybe I need I powerfull PDF-PNG commercial converter with a .Net API to improve the quality.

Peter
Telerik team
 answered on 09 Oct 2012
4 answers
169 views
I am using version 6.1.12.611 i have added a drill through report as described here http://www.telerik.com/help/reporting/designing-reports-interactivity-how-to-add-drillthrough-action.html

Added the linked parameters etc...

Every thing looks great but when I run the application (silverlight) main report works fine but when i click on the drill down label I get the following error ReportSource type address resolution not implemented.

Is this supposed to work ?
Andrew
Top achievements
Rank 1
 answered on 09 Oct 2012
1 answer
88 views
On our GUI screens we use the Telerik.Windows.Controls.RadGridView control. It is possible to sort, filter and group by the data.
To print this filtered, sorted and group by list what to do?
Through the object data source we now can print a list but this without any knowledge of the actual selections from the grid.
Please advice here.
Steve
Telerik team
 answered on 09 Oct 2012
1 answer
232 views
Hi friends,

I have several questions for multiple value parameters
  1. What if I want to hard code the values ? for Example Labels may read "Label 1" , "Label 2" , "Label 3" , "Label 4" But the values would be 1,2,3 and 4 res. Below is what I tried.
    //Report1.Designer.cs : Designer Code behind (to display the report parameter setup that I have)
                reportParameter2.AllowBlank = false;
                reportParameter2.AutoRefresh = true;
                reportParameter2.MultiValue = true;
                reportParameter2.Name = "Parameter2";
                reportParameter2.Text = "Checkbox List";
                reportParameter2.Type = Telerik.Reporting.ReportParameterType.Integer;
                reportParameter2.Visible = true;
                this.ReportParameters.Add(reportParameter1);
                this.ReportParameters.Add(reportParameter2);
     
    // Default.aspx.cs
        public partial class _Default : System.Web.UI.Page
        {
            protected void Page_Load(object sender, EventArgs e)
            {
                var report = new WebApplication1.Report1();
                int[] CheckBoxList = { 0, 1 };
                report.ReportParameters["Parameter2"].MultiValue = true;
                report.ReportParameters["Parameter2"].Value = CheckBoxList;
                //report.ReportParameters[1].Value = Gender;
                ReportViewer1.Report = report;
                ReportViewer1.RefreshReport();
            }
        }
  2. I can not see the check-boxes with the above scenario ?
  3.  Is there any way so that I can implement the radio button group.As we do doe gender, for example ?
Aarsh
Top achievements
Rank 1
 answered on 09 Oct 2012
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?