Telerik Forums
Reporting Forum
1 answer
232 views
Hi,

Ive been struggeling with an issue for a while now, and thought try to ask for help here.

So my scenario is:

1. Im creating a report in Visual Studio 2013, using the regular VS designer
2. I add a table to the report
3. I add a ObjectDatasource to the table - the object holds a collection, which I choose as member.
4. I then add a grouping, by using the Group Explorer, and ensure that the group has KeepTogether = false.
5. I set KeepTogether = false on the table itself.

So with this procedure I expect to get lines of data, grouped into groupings, and the groups should not pagebreak, even if they cannot fit entirely on the current page.
But this is exactly what happens - no matter what I seem to do, the groups keeps creating pagebreaks, if they cannot entirely fit the current page.

I have attached some screenshots, which showcases the issue.

Thanks in advance :)
Lars
Top achievements
Rank 1
 answered on 04 Jun 2014
2 answers
132 views
Hi, 

I'm using EntityDataSource. The context assigned to datasource is not a type class but a dbcontext instance as my application is managing the dbcontext life cycle on its own. Since the report viewer I'm using is HTML 5 viewer, I have not found a way to determine when the report has been rendered completely. 

My question is, how can the application be notified when Telerik report rendering is done with the dbcontext, so that it can safely dispose the context. 

Thank you in advance. 
Tam
Top achievements
Rank 1
 answered on 04 Jun 2014
3 answers
58 views
I'm trying to add some text to the top right corner of my report but it's causing the size of the corner to grow absurdly tall. My reports are completely dynamic but I'll narrow it down to one specific case. It has one row group and one column group that has a child. I set the corner like so

table.Corner.SetCellContent(0, 0, new TextBox
{
    //Value = "Sum",
    StyleName = "HeaderCell",
​     Height = new Unit(1),
     Width = new Unit(1),
    Style =
    {
        VerticalAlign = VerticalAlign.Top
    }

}, rIndex, cIndex);


Where rIndex and cIndex are the number of rows and columns (2 and 1 in my example). It works perfectly with the code above but if I simply uncomment the Value to try to get it to say "Sum" the Corner grows huge. Like 5 inches of blank space. I've checked in the debugger and none of my Height values have changed. Everything is set to what I specifically set it to. Please keep in mind I won't be using the designer.
Sarah
Top achievements
Rank 1
 answered on 03 Jun 2014
1 answer
184 views
I am using VS2013 to design my report which I am then using in a MVC4 app with the HTML5 Report Viewer.
I have an objectDataSource which returns a list of object which have a total, name and a colour.
I can get the graph up but I don't see how to make each bar on the graph become the colour I have set in the object.
Also the series seem to be out of order

Is there a way to do this?

Nasko
Telerik team
 answered on 03 Jun 2014
1 answer
1.0K+ views
hello,
how do I hide a column in a table, depending on the parameter value?

grateful,

Carlos Carvalho
Stef
Telerik team
 answered on 03 Jun 2014
4 answers
967 views
Hi,

is any possibility to start telerik report (in wpf) with zoom to set into "fit width"?
Stef
Telerik team
 answered on 02 Jun 2014
1 answer
56 views
I would like to be able to 'save' a report from the web backend and 'load' it in a WPF client app to print it.
I only know about the serialization and deserialization of reports using ReportXmlSerializer but this is saving \ loading report definition (without fields).

Is this possible with Telerik Reporting?

Stef
Telerik team
 answered on 02 Jun 2014
2 answers
136 views
I have been trying to get a basic report to show up on a test page using the Telerik Reports (Trial) product, but am unable to be successful.  I have retrieved the data (in various scenarios) and bound it to the ReportViewer, but nothing shows up (not even my columns).  Am I missing something?  Code Below:


01.protected void Page_Load(object sender, EventArgs e)
02.{
03.    if(!Page.IsPostBack)
04.    {
05.        string strFakeToken = "0x00C1F7F02751764B9E03D36DC1F10C2E010000004D5FE0DA32126BFFD53944A657C59323ED483AA729D6C109632DBD0A56662191094CD17AA16E5BFAFB30C557E4F7F133";
06.         
07.        System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();
08.        byte[] myByteRep = encoding.GetBytes(strFakeToken);
09. 
10.        Telerik.Reporting.SqlDataSource sdr = new Telerik.Reporting.SqlDataSource();
11.        sdr.ProviderName = "System.Data.SqlClient";
12.        sdr.ConnectionString = ConfigurationManager.ConnectionStrings["MyDBName"].ConnectionString;
13.        sdr.Parameters.Add("@settingID", System.Data.DbType.Int16, 1);
14.        sdr.Parameters.Add("@workSpaceID", System.Data.DbType.Int16, 1);
15. 
16.        sdr.Parameters.Add("@securityToken", System.Data.DbType.VarNumeric, myByteRep);
17. 
18.        sdr.SelectCommandType = Telerik.Reporting.SqlDataSourceCommandType.StoredProcedure;
19.        sdr.SelectCommand = "[SOMENAME].[ItemMasterReport]";
20. 
21. 
22.         
23.         
24.        // Access the Service to pull the Data Reader in the line below
25.        IItemMasterReportService imr = new ServiceProxy.ServiceProxy.ItemMasterReportServiceProxy();
26.        // Create Data Reader (for use below)
27.        IDataReader idr = imr.GetItemMasterReportDataReader(IdentityHelper.CurrentUser.RecentWorkspaceID,1);
28.         
29.        // Create the Data Table (to be used in the Data Source below)
30.        DataTable dt = new DataTable();
31.        dt.Load(idr);
32.        //dt.TableName = "ItemMasterReport";
33.        dt.TableName = "Budget";
34.        //dt.TableName = "Capacity";
35. 
36.        // Create the Data Source (to be used in the Report below)
37.        Telerik.Reporting.ObjectDataSource ods = new Telerik.Reporting.ObjectDataSource();
38.        ods.DataSource = dt.Rows;
39.        //ods.DataMember = dt.TableName;
40.        //ods.DataMember = "Budget";
41.        //ods.DataMember = "Capacity";
42. 
43.        // Create the Data Set (not used ??? )
44.        DataSet ds = new DataSet();
45.        ds.Load(idr,LoadOption.OverwriteChanges,string.Empty);
46. 
47.        // Build the Report (to be used in the Report Source below)
48.        Telerik.Reporting.Report report = new Telerik.Reporting.Report();
49.        //report.DataSource = ods;
50.        report.DataSource = sdr;
51. 
52.        Telerik.Reporting.InstanceReportSource irs = new Telerik.Reporting.InstanceReportSource();
53.        irs.ReportDocument = report;
54.         
55.        // Set some basic stuff for UI for diagnostic purposes
56.        usertoken.InnerText = IdentityHelper.CurrentUser.Token.ToString();
57.        workspaceID.InnerText = IdentityHelper.CurrentUser.RecentWorkspaceID.ToString();
58.        settingID.InnerText = "1";
59. 
60.        rptvwJaredTest.ReportSource = irs;
61.        rptvwJaredTest.RefreshReport(); // now that all the sub-work is done, render the report in the report viewer in the UI
62.    }
63.}
Jared
Top achievements
Rank 2
 answered on 02 Jun 2014
1 answer
136 views
Hi. I want to create a table with group rows in the second column in Designer. I made group in the first column, but cant do this in the second column. How can I do this?
Stef
Telerik team
 answered on 02 Jun 2014
1 answer
118 views
How I can create multi-level reports using telerik

Reports structure will like this

Subject 1
Sub-subject 1.1
Comment 1
Comments 2

Sub-subject 1.2
Comment 1
Comments 2


Subject 2
Sub-subject 2.1
Comment 1
Comments 2

Sub-subject 2.2
Comment 1
Comments 2

Please provide me any sample link and source code.




Stef
Telerik team
 answered on 02 Jun 2014
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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?