Telerik Forums
Reporting Forum
0 answers
192 views
Telerik Reporting:
I have urgent requirement to make a automated reporting system and I am trying to create a report programmatically using telerik.
So, far I was able to create group but not able to add group footer so that I can show sum, avg etc.
My code is:
Telerik.Reporting.TextBox txtGroupHeader = new Telerik.Reporting.TextBox();
            Telerik.Reporting.TextBox txtGroupTotal;// = new Telerik.Reporting.TextBox();
            toggleVisibilityAction1 = new Telerik.Reporting.ToggleVisibilityAction();

            txtGroupHeader.Action = toggleVisibilityAction1;
            toggleVisibilityAction1.DisplayExpandedMark = false;

            // Required for telerik Reporting designer support

            InitializeComponent();

            TableGroup group = new TableGroup();
            Telerik.Reporting.TableGroup tableGroup4 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup5 = new Telerik.Reporting.TableGroup();
            group.Name = "Season";
            group.Groupings.AddRange(new Telerik.Reporting.Grouping[] {
            new Telerik.Reporting.Grouping("=Fields.Season")});
            group.Sortings.AddRange(new Telerik.Reporting.Sorting[] {
            new Telerik.Reporting.Sorting("=Fields.Season", Telerik.Reporting.SortDirection.Asc)});

            txtGroupHeader.Name = "txtGroupHeader";
            txtGroupHeader.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(3.9314577579498291D), Telerik.Reporting.Drawing.Unit.Cm(0.43585944175720215D));<br>
            txtGroupHeader.Style.BackgroundColor = System.Drawing.Color.Red;
            txtGroupHeader.Style.BorderStyle.Bottom = Telerik.Reporting.Drawing.BorderType.Solid;
            txtGroupHeader.Style.Color = System.Drawing.Color.White;
            txtGroupHeader.Style.Font.Bold = true;
            txtGroupHeader.StyleName = "";
            txtGroupHeader.Value = "=Fields.Season";
            tableGroup4.Groupings.AddRange(new Telerik.Reporting.Grouping[] {
            new Telerik.Reporting.Grouping(null)});
            group.Sortings.AddRange(new Telerik.Reporting.Sorting[] {
            new Telerik.Reporting.Sorting("=Fields.Season", Telerik.Reporting.SortDirection.Asc)});
            tableGroup4.Name = "Details";
            tableGroup5.Name = "Group1s";
            //group.ChildGroups.Add(tableGroup4);
            //group.ChildGroups.Add(tableGroup5);
            //this.table1.Body.Rows.Add(new Telerik.Reporting.TableBodyRow(Telerik.Reporting.Drawing.Unit.Cm(1)));<br>
            this.table1.Corner.SetCellContent(0, 0, txtGroupHeader);
            this.table1.Items.Add(txtGroupHeader);
            group.ReportItem = txtGroupHeader;
            //Remove the detail group
            TableGroup detailGroup = table1.RowGroups[0];
            table1.RowGroups.Clear();
            //detailGroup.Visible = false;
            toggleVisibilityAction1.Targets.AddRange(new Telerik.Reporting.IToggleVisibilityTarget[] {
            detailGroup});
            //Add the detail group as a child to the AgeGroup (nest it)
            group.ChildGroups.Add(detailGroup);
            table1.RowGroups.Add(group)
;
---------------------

I tried finding help with visual studio generated code but to no avail. Please help as it is urgent.
Ranjan
Top achievements
Rank 1
 asked on 23 Aug 2012
2 answers
98 views
I have a report that has a Table on the left and a Chart on the right.

The Table can grow to any size, which makes the report grow.

So I have tried Anchoring or Docking the Chart to the top and bottom of the report so that it grows as well.

It does grow, but the chart is stretched. It doesn't re-render/re-layout to the new size.

How can I get it to do this?

Using Telerik Reporting 2011 Q3.

Thanks.
Adrian
Top achievements
Rank 1
 answered on 23 Aug 2012
2 answers
233 views
I would like to save the report in XML format to a database and load them in to ReportViewer control at run time.
John North
Top achievements
Rank 1
 answered on 22 Aug 2012
4 answers
497 views
Hi,
I want to know if is possible to open Telerik Report Designer with specific Report as parameter from C#, is that possible?
Thank You
gezim
Top achievements
Rank 1
 answered on 22 Aug 2012
5 answers
307 views
Hi,
  I am new to telerik reporting. I want to generate a grid type layout report like that of a table. And i'm setting the data source programmatically using sql queries at run time. Also i need to hide the columns dynamically at run time and to avoid duplicate rows i'm using groups(Parent and Child groups) I used table control which is meeting almost all my requirements except the hiding property ie., visibility. If  I set the data source for the table at design time the visibility property is functioning well. But when I set the data source at run time, even after  setting the visibility property of the columns(ie., text fields) as false its only shrinking in size and not disappearing in my report. Is there any solution for this issue?
Kindly help me with a solution ASAP.
Thanks.....
Steve
Telerik team
 answered on 22 Aug 2012
1 answer
74 views
Good Day

I am trying to build my report, but the page settings are confusing me.

For instance, I have A4 setting, with margins of 1cm, 1.2cm, 1cm, 1.2 (T,R,B,L) with no padding.

In my reportheader I have a Heading and an image. The image is docked to the right. The page width is set to 12.4cm. If I set it any larger my image is displayed on the next page.

So here is what confuses me: An A4 page has a width of 21cm. Removing the margins (L,R) we have 19cm of space to play in. Why can't I set it to anything more than 12.4cm?

Is there a document or a walk thru that can provide detailed information about sizing?

Update: Using Q2 2012 SP1 6.1.12.820. Visual Studio 2010 Pro.



Thank you
Jaco Hamilton-Attwell
Top achievements
Rank 1
 answered on 22 Aug 2012
1 answer
57 views
When upgrading to the latest version.  I now get several warnings about obsolete items in the designer.vb and designer.cs files.  Is there some way to regenerate those files to get rid of the warnings?
Steve
Telerik team
 answered on 22 Aug 2012
6 answers
472 views
Hi,
I have a reportbook that contains a couple of reports.  In addition to them I want to be able to add in already generated PDFs to make one big file.  This is for a quotation system where the quote is generated by Telerik Reporting BUT I need to be able to tack on extra PDFs such as terms and conditions, custom data etc.  

I have the PDFs stored in a database so would be looking at adding them from a memory stream.

Can this be done with Telerik Reporting or will I need to generate the report and then combine all PDFs using some thrid party tool such as iTextSharp?

If Telerik Reporting cannot do it please could it be added as a feature request for the next version - I'm sure that a lot of people would find it useful.

Regards,

Jon
headPropellerHead
Top achievements
Rank 1
 answered on 21 Aug 2012
1 answer
68 views
Hi all,

i just created one report page.. when i create a new report page that time automatically one wizard il appear and i can set my needs from there .. but now its not appear.. when i try to access that from menu bar its shown an error like "An error occurred while processing this command , object reference not set to an instance of an object" why its shown like this., please help.

Regards,

Prassin  
Steve
Telerik team
 answered on 21 Aug 2012
3 answers
634 views
Hi, I want to set a TextBox auto-size.
I know it can be done by using Binding property and user function.
But I also need to serialize this report to xml.
Width.Value is readonly, so I cannot set it's width without using user function.
Is there any other way to do this?
Elian
Telerik team
 answered on 21 Aug 2012
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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?