Telerik Forums
Reporting Forum
4 answers
426 views
Hello,

I have to create a report which contains multiple subreports. These subreports are added dynamically at runtime. Everything was going ok till the render time. For some reasons the subreport which is not fit in the current page is displayed on the next page but it is not completed displayed. I understand the fact that if it cannot be displayed in the current page it is displayed on the next one but I cannot understand why it is partially displayed.

For example if a want to display the same report 10 times and on the first page we cand display only 3 of them, the forth one is displayed on the second page but with the same size. Actually the size of the first subreport + the size of free space on the first page get the normal size of the fourth report.
 

This is a code snipped for what I want to do(If you want I can send you a sample application but I can't attach files):
  Color[] srColors = new Color[]
                { Color.Red,
                Color.Orange,
                Color.Yellow,
                Color.Green,
                Color.Blue,
                Color.Indigo,
                Color.Violet } ;
            for (int i = 0; i < 27; i++)
            {
                SubReport sr = new SubReport();               
                sr.ReportSource = new ColorReport(srColors[i%7]);
                sr.Dock = DockStyle.Top;
                this.detail.Items.Add(sr);              
            }

Thanks in advance,
Steve
Telerik team
 answered on 08 Sep 2009
1 answer
355 views

I am getting the error message "An error has occured while processing htmltextbox"  when the report is rendered.  I checked and the data contains only the supported tags and I have the code in place to convert the data to lower case html tags. 
Find below a sample html mark up contained in that field.

<p>.</p><br><br><p><strong>TORQUE MAKEUP</strong><br>Witnessed Make-Up of the Following:<br><br><b>Assembly Description:</b> &nbsp; <br><b>ID Nos.: P/N:, S/O:, S/N: </b>&nbsp; <br><b>Technician and Certification: </b>&nbsp; <br><b>Licensed Thread Representative:</b> &nbsp; <br><b>Vendor:</b> &nbsp; <br><b>Equipment:</b> &nbsp; <br><b>Load Cell Calibration Date:</b> &nbsp; <br><b>Procedure: </b>&nbsp; <br><b>Thread Form:</b> &nbsp; <br><b>Dope type:</b> &nbsp; <br><b>Torque Range</b> </p>  <ul>  <li>Minimum torque: </li>  <li>Optimum torque: </li>  <li>Maximum torque: </li>  <li>Shoulder torque:</li></ul><b>Actual Values </b>&nbsp; <br><b>Actual torque: </b>&nbsp; <br><b>Actual Shoulder: </b>&nbsp; <br><b>Torque stripe: </b>&nbsp; <br><b>Results: </b>&nbsp; <br><b>Remarks: </b>&nbsp; <br><br><br /> 

What am i doing wrong. Any help would be appreciated.

Thanks,

Steve
Telerik team
 answered on 07 Sep 2009
2 answers
310 views
Hello,
i'm evaluating telerik reporting. I have made some simple report and i found telerik very simply but i cant find a way to insert the same page header and footer on different reports. With other reporting tools i create a report for the header and one for the footer. Than, on every header and footer i place a subreport and as a source of the report the header or footer. The problem with telerik reporting is that  the subreport item cannot be inserted on a header or footer so i dont know how to do that.
Any idea?

Best regards,
evald80
Top achievements
Rank 1
 answered on 07 Sep 2009
1 answer
168 views
Dear Sir ,
                i am Suriya again , i have a doubt in sum () , i wanna to display the sum of a group in the detail band, Is it possible or not ?
 If it is possible what is the syntax..    

For Exaple :

Group 1 :
1 (count --> field name)
1
1
total

Group 2 :
2
2
2
total
-------------
From above format i wanna to display as follows :
Group 1 :
3 (sum(count) --> field name)
3
3
total

Group 2 :
6
6
6
total

But now i have rendering as follows :

Group 1 :
9 (sum(count) --> field name)
9
9
total

Group 2 :
9
9
9
total

Please reply as soon as possible..

Thanking you
Suriya Narayanan S
Steve
Telerik team
 answered on 07 Sep 2009
1 answer
125 views
Hi All,
I have a  probem and its urgent I am trying to generate a report tht has 4 sections and two of them r are tables the other sections work fine.
For the tables I am using datasets and in the datadapter I can see the data its returning but for some reason I cannot see it on the report.I am using a reportviewer. am attaching the code for report.cs

public partial class Report1 : Telerik.Reporting.Report
    {
        public Report1()
        {
            /// <summary>
            /// Required for telerik Reporting designer support
            /// </summary>
            InitializeComponent();
            

            this.DataSource = null;
          
            // TODO: Add any constructor code after InitializeComponent call
            //
        }

        private void Report1_NeedDataSource(object sender, EventArgs e)
        {
            this.oracleDataAdapter1.SelectCommand.Parameters["@Account_number"].Value = this.ReportParameters["Account_number"].Value;
            Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)sender;
            report.DataSource = this.oracleDataAdapter1;

        }

and aspx.cs code is
protected void Page_Load(object sender, EventArgs e)
        {
            string strAccountNumber = "000000000000";
            //string strAccountNumber = SQLStatic.Sessions.GetSessionValue(Request.Cookies["Session_ID"].Value.ToString(), "account_number");
          
              Section6.Report1 report = new Section6.Report1();
         
            ReportViewer1.Report = report;
}
please help its urgent.
Steve
Telerik team
 answered on 07 Sep 2009
2 answers
186 views
Hi,

I'm having problems getting my data fields to display in a table. I create all the neccesary columns and rows and all the fields are assigned to static groups. I dont really need the fields to be grouped. I dont use a dataset as a datasource. When the report gets instantiated, it gets a collection as a datasource during runtime. This collection is of type: observablecollection<ITenderLineItem>. ITenderLineItem is an interface that contains a set amount of named properties. The property names are set in the table fields as: =Fields.["Property Name Here"]. This collection is generated in the program beforehand. The report's table generates the correct amount of lines in the detail section when i run it but none of my fields display any values. Its just blank. Is there maybe a tutorial that explains in detail how to create a table and bind it to data? I'm sure that I'm just missing a tiny detail somewhere. Unfortunately I need to use a table because each cell has a border and certain fields are multiline. If i just use textboxes then I don't get a consistent height on all of them per row when one textbox is multilined. Help please. 
Hrisi
Telerik team
 answered on 04 Sep 2009
1 answer
1.3K+ views
I need to check out if two fields are null in dataset Then, if two fields are null, then i wantto set the visible property of layout of detail section( of corresponding records) to false. O do following check:

Expression     Operator           Value
=Fields.X           =                      = Null


And finally how filter of detail section of report looks:
=Fields.X = = Null

However nothing happens. Help pls.
Thanks...


Hrisi
Telerik team
 answered on 04 Sep 2009
1 answer
540 views
Hi I am stuck on a problem. I have 2 tables which are nested on a single report. Both datasources are being set in their needdatasource method respectively.

My problem lies in retrieving a value from the parent table which will populate the child tables based on whatever values which are retrieved from the parent. I just need to retrieve one variable from the parent table once it is populated so that I can populate the child table accordingly.

Basically, I want a master-details / master-child relationship

Thanks
Svetoslav
Telerik team
 answered on 04 Sep 2009
1 answer
98 views
Hi,

I have Created a InvoiceMaster Report, Its working fine.
and a InvoiceDetail report, which have a stored procedure (with parameters) as datasource and this InvoiceDetail report working file separataly (providing report parameters correaponding to each stored procedure parameter).

Now I am using InvoiceDetail report in detail section of InvoiceMaster.

the problem is, how to send report parameters from each item of  InvoiceMaster  to InvoiceDetail.

Thanks in advance....

Svetoslav
Telerik team
 answered on 04 Sep 2009
1 answer
297 views
Hi,

is there a way for me to do this? I've tried doing it but the FormattingRule class does not expose a property that allows me to change the Expression. I'm passing parameters to the report constuctor and based on those parameters the formating conditions need to be set up.

Thanx
Svetoslav
Telerik team
 answered on 04 Sep 2009
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?