Telerik Forums
Reporting Forum
6 answers
163 views
I have an application that integrates the web viewer into an existing web project. This web project is currently running against the .net framework 3.5.
In addition to this I have a separate project that I use for building my reports. I then load the report using the MEF framework (via reflection) when the main web application starts.
In the original version of the web application I used to load a report (source) into the webviewer using the following code:
dim source as new TestReport
me.reportviewer1.Report = Source

Once I'd upgraded I found this no longer worked. I have since modified the code as follows:
dim instance as new telerik.reporting.instancereportsource
instance.reportdocument = source
me.reportviewer1.reportsource = instance

So far so good - only its not. I'm finding that when creating a new instance of the report as shown in the first example the report loads with no issue. Loading the report via MEF as in the second example doesn't work. No data is returned and the report is empty.
I know the same type is being loaded as I can modify the report header and in both examples the header is rendered but the report loaded via MEF is never populated. I can see no errors or reason why data would not be returned. 
Is there any way I can somehow diagnose what the problem is here?
Mike
Top achievements
Rank 1
 answered on 29 Aug 2012
0 answers
117 views
Hi, I want to use the backslant shape to realize the effect like the following picture, can you give me some advices? Thanks!
Wan
Top achievements
Rank 1
 asked on 29 Aug 2012
1 answer
125 views
Hi all-
Sorry if this is a newbie question but is there a way to input a date parameter without using the date picker?
It is much faster to put in historical dates for date ranges.
Any help is greatly appreciated
Andy
Steve
Telerik team
 answered on 29 Aug 2012
32 answers
966 views
I am testing your reporting tool and it is very nice. But we need a justify property in the text box control, and we see that you still don't support it. Will it be sopported shortly?
Best Regards
Jaco Hamilton-Attwell
Top achievements
Rank 1
 answered on 29 Aug 2012
1 answer
79 views
Hi all,

    I have a telerik report file that loads to telerik report viewer. when I try to export to PDF using report viewer it doesn't give any output ( no PDF) I can see a message bellow saying waiting for localhost.. . other formats works OK. In excel format report shows a huge blank gap after first table with data. highly appreciate if you all can help. 

Shivanka
Steve
Telerik team
 answered on 29 Aug 2012
2 answers
221 views
Hi,

I've been looking everywhere, but I don't find any "Import Designer Generated Report to App Guidance".

Should they be saved on the Database or DLL?, How to set the Data Source?, Best Practices? Security?? Etc...

This info will be appreciatted.
Jaime Bula
Top achievements
Rank 2
 answered on 28 Aug 2012
1 answer
238 views
Hello All,

There is a column named "levelID", which is prepared by my DB and return to my report. The values range from 0 to 4.
Now I setup the left Padding in the cell "binding" as Style.padding.left=CStr(0.1*Fields.levelID)+'in'.which does not work.
Then i removed the "in", just setup the padding as 0.1* fields.levelID, but still not working.

Who can share some ideas on this?
Thanks in advance
Steve
Telerik team
 answered on 28 Aug 2012
1 answer
368 views
Hello All,

My report requests a simple feature of "Toggle Visibility".

My data looks like Pic1(Attached).

I setup 2 groups in my report(parent and detail)

On the parent level, i setup the toggle visibility on the first cell. When the report is browsed as initial expanding, it looks good as attachment pic2.--But i wanna archive if no children under the group item, can I hide the "+" or "-" signs.

The worse part is (See attacment Pic3.) , when i collapsed the toggle item, it automatically shows me the "total line" , which is not expected becasue the calculation is not the simple adding up by the detail items. In the data set reurned to report , i have calculated the so-called "summary" by a complex business logic. can I not display this "total line" when I collapse the toggle item.

Also, BTW, I hide the rows in detail group if the children name is equal to the parent name. That is why , initially, the "commissions" line only shows on my group header level, which is expected.
IvanY
Telerik team
 answered on 28 Aug 2012
2 answers
919 views
I have urgent requirement to make a automated reporting system and I am trying to create a report programmatically using telerik reporting.
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. 
IvanY
Telerik team
 answered on 28 Aug 2012
1 answer
215 views
Hi i have created a Telerik report, with parameters SellerID , i have incorporated it into my program and if the user selects a seller they will be able to view the report of that seller, i have also added in a bulk mailer so for all selected users the reports are mailed to the respected sellers, now i need to insert a bulk print , so if the user selects 10 or 15 sellers reports to print how would i code this into my app?

Please HELP
Steve
Telerik team
 answered on 28 Aug 2012
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?