Telerik Forums
Reporting Forum
1 answer
161 views
I have a list of about 20 reports that I need to read from. Right now, they are all Crystal Reports, but I am going to convert them to telerik reports. I have seen that I should make a class library for all the reports(is this the best thing for web applications?) but The question I have is... Is there a way I can set up the reportviewer(will be an aspx page) so it can take a value(one of the reports) depending on certain criteria. Right now, I have only seen that you set the Report property to the report you want, but I would like it to change depending on a querystring or something else. Does anyone know of a way of doing this. Thanks.
Steve
Telerik team
 answered on 04 Sep 2008
2 answers
168 views
Hi,

I've been creating some subreports, and I've got a weird problem crop up.  I've added the subreport control to the master report, but the ReportSource dropdown isn't listing one of my new subreports.  I cannot for the life of me see why this is at all.  Other subreports I created show up fine.

My machine has both Reporting Q3 2007 and Report 2008 Q2 latest build on it. 

Has anyone experienced this problem?
Paul Buxton
Top achievements
Rank 1
 answered on 03 Sep 2008
5 answers
140 views
I have a button and a reportviewer inside of an updatepanel on a page.  When the page initially loads, my report shows up fine.  When I click on the button and a partial postback is done, the report is gone and all I can see is the reportviewer toolbar.  What do I need to do to ensure that my report displays after the button click?
Fani
Telerik team
 answered on 03 Sep 2008
1 answer
90 views
We are pulling data that has been saved from teh RadEditor Control into our Report.  Unfortunately it is displaying HTML tags along with it e.g,:


<br/>


Is there a way to have the Report display as html?
Steve
Telerik team
 answered on 03 Sep 2008
0 answers
101 views
I am having a problem that the design view of the report
doesnt match the actual report, any suggestions?
Shiraaz
Top achievements
Rank 1
 asked on 03 Sep 2008
1 answer
72 views
Dear telerik team ,

i need to use the pie chart to represent the following

1- total target for user that's need to be the 100% of the chart (X)
2- the accomplished from the target  (Y)
3- the remainning from the target (Z=X-Y)

i need to do this by using sql data source biniding to the chart

i made select statment that selects the accomplished and remainng as 2 records so when i bind the chart it works but i have a proplem when the accomplished is greater than the target the chart give wrong representation

so i need to know the right way to use pie chart for this purpose
Steve
Telerik team
 answered on 02 Sep 2008
1 answer
260 views
DataTable table; // results from store procedure. 
IndicadoresDetalhado subReportDetalhado; //the sub report ReportSource. 
SubReport subReport; //the sub report. 
 
public IndicadoresBase(clsParametros pParametros) 
        { 
            InitializeComponent(); 
 
            string[] centrais = pParametros.param_central.Value.ToString().Split(','); 
 
            for (int i = 0; i < centrais.Length; i++) 
            { 
                pParametros.param_central.Value = centrais[i]; 
                table = clsRelatorio.RelatoriosIndicadoresGet(pParametros); 
                subReportDetalhado = new IndicadoresDetalhado(table); 
 
                subReport = new SubReport() 
                { 
                    Location  = new PointU(new Unit(0.0, ((UnitType)(UnitType.Cm))), new Unit(20.0 * i, ((UnitType)(UnitType.Cm)))), 
                    Name = "subReport"
                    ReportSource = subReportDetalhado, 
                    Size = new SizeU(new Unit(28.7, ((UnitType)(UnitType.Cm))), new Unit(20.0, ((UnitType)(UnitType.Cm)))), 
                }; 
 
                this.detail.Items.Add(subReport); 
            } 
 
            ExibirParametros(pParametros); 
        } 
Hello.

In my report, I'm programatically adding news sub reports as much as I have data tables from the store procedure result set. All the code stuff is in the constructor of the base report, like the code above.

I know that probably that's the not best approach when working with sub reports, but the time that I codded that, that's the way I found to achieve my objectives.

The main problem is about layout. When viewing from browser, everything works fine. But, when I export my report to PDF, I cannot display a sub report per page, unless I change the 'Size' property of my subreport. Setting it to a value that fits on PDF display, the HTML display change, putting the subreports side by side.

What I want to know is if there is a way to display each sub report created per page. I mean, each time that i add a item to the main report, it creates a new page for it.

Thanks in advice.
Hrisi
Telerik team
 answered on 01 Sep 2008
4 answers
170 views
I have a report that has two filters. One is  a string and the second one is a datetime. My expressions look like this:
=Fields.PoolType =  =Parameters.PoolType and
=Fields.PoolDate =  =Parameters.Date

I am getting the parameter information from a datasource that is pulling it from a view.
The PoolType is a string and the PoolDate is a DateTime

I am trying to use reportviewer in an aspx project and I get the following error.

Cannot perform '=' operation on System.DateTime and System.String.


I tried it as a test in the windows application and it worked just fine without an error but I really need it as a web application.

Thanks

Steve
Telerik team
 answered on 01 Sep 2008
4 answers
293 views

Hi,

I’m trying to display some master-detail data on a report. I have designed two separate reports and linking the detail report to a sub report item in the detail section of the master report. But the detail report (for any master row) is always displaying the records related to the first master row. Code I’m using is similar to below. Can you please help solving this.

Thanks and regards,

Kushan

 

MasterReport  masterReport  =  new  MasterReport();

DataTable  masterDataSource  =  getMasterDataSource();

Foreach(DataRow drM  in  masterDataSource.Rows)

{

   FormatMasterRows(drM);

   DataTable  detailDataSource  =  getDetailDataSource(drM);

   If(detailDataSource.RowCount > 0)

   {

            DetailReport  detailReport  =  new DetailReport();

            Foreach(DataRow  drD  in detailDataSource.Rows)

            {

               FormatDetailRows(drD);

            }

            detailReport.DataSource  =  detailDataSource;

            masterReport.subReportItem1.ReportSource  =  detailReport;

            masterReport.subReportItem1.ReportSource  =  true;      

   }

   Else

  {

            masterReport.subReportItem1.ReportSource  =  false;

            masterReport.detailSection.Height  =  masterReport.detailSection.Height   -  masterReport.subReportItem1.Height;

  }

}

masterReport.DataSource  =  drM;

DisplayRepotViewer(masterReport);

Ivan
Telerik team
 answered on 29 Aug 2008
1 answer
309 views
Hi, on some reports with over 3000 records and heavy grouping I'm getting out of memory exception errors (after I updated httpRuntime executionTimeout="240" in web.config to stop the timeout errors). I notice in another thread you recommend setting app pool to "A value of 300 Mb used memory and default value for virtual memory" would this still be your recommendation and is there anywhere you can point me to to optimise and reduce the memory footprint in the report design?

cheers
Martin
Chavdar
Telerik team
 answered on 29 Aug 2008
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?