Telerik Forums
Reporting Forum
1 answer
95 views

Any help or suggestion highly appreciated as I am stuck on something that should be simple to fix.

 

My application in summary has a person with properties (Name, Age, height, etc...). Also arrays of ushort or double that represent pressure waveforms. I wish to put this data onto a report for printing to PDFs.

 

I can successfully create a custom assembly and load it in the standalone ReportDesiger and it successfully fetches the data for the report for a single person. I can put the properties for the Name, Age, Height etc. on the report.

 

What I have not been able to do is present the array data in a form that can be consumed successfully by the report Graph.

 

Can someone please point me to an existing sample or suggestions on what classes I should copy the graph data into for it to then be usable in the Report Graph. I was expecting to use a scatter line graph as the Y axis doubles representing values in the range 0 to 300. The x axis is time. Some graphs are short duration (0.3 seconds), some are longer at around 10 seconds (2048 sample points).

 

A simplified model for testing purposes though might be as follows. You can see I have tried two different ways to represent the X & Y coordinates on the graph. In the final solution would only need one way, whatever that may be that makes report Graph work. 

 

public class ReportModel
    {
        public string Fullname { get; set; }

        public double[] X { get; set; }
        public double[] Y { get; set; }

        public List<Point> GraphPoints { get; set; }

        public ReportModel()
        {
            Fullname = "John Doe";
            X = new double[] { 1, 2, 3, 4, 5, 6, 7 };
            Y = new double[] { 2, 4, 6, 8, 10, 12, 14 };

            GraphPoints = new List<Point>();
            for(int i = 0; i<X.Length; i++)
            {
                Point p = new Point();
                p.X = X[i];
                p.Y = Y[i];            }
        }
    }

    public class Point
    {
        double x;
        double y;

        public double X
        {
            get
            {
                return x;
            }

            set
            {
                x = value;
            }
        }

        public double Y
        {
            get
            {
                return y;
            }

            set
            {
                y = value;
            }
        }
    }
    

 

Katia
Telerik team
 answered on 27 Jun 2016
1 answer
89 views

Hi, Team

    I export the report to PDF, the PDF support the bookmarks with Document Map Text,

   but I export to MS word, I can not find bookmarks in navigation panel,

   does support bookmarks in MS word navigation panel?

 

Thanks

Katia
Telerik team
 answered on 27 Jun 2016
4 answers
1.5K+ views
Hi,

I need the reports to pass through layers of security which has already been set up in our own BaseController and therefore I need to set the DataSource of the report programmatically.

How can I do this with your MVC report tool as well as being able to pass through parameters? Alternatively, can I change the WebAPI url so it points to our own WebAPI functions?

Thanks.
Stef
Telerik team
 answered on 27 Jun 2016
3 answers
362 views
Hello there,

I have a small issue, in that I would like to create a CSS file for my report.
I made an invoice, which will be displayed on a website and also exported and sent by the seller to his customers. Unfortunately there are some issues here:

1. since it's made out to be print-ready, the invoice itself is only about 600px wide...i would like to modify that so it will actually look good on the screen
2. i would like (seeing as I'm a web developer, very much used to working with CSS) to just apply some simple CSS rules to my invoice (i.e. fonts, colors, width, height, etc) but everytime I try to do that, nothing happens (this is the first time I've had to work with Telerik Reports...not really fammiliar with it yet)
3. if I actually manage to apply CSS to it, do I need to create some media querries for printing and exporting? or is that handled by the application itself?
Stef
Telerik team
 answered on 24 Jun 2016
1 answer
169 views

Requirements

Telerik Product and Version

Telerik Report Desinger 2016

Supported Browsers and Platforms

IE, Motzilla

Components/Widgets used (JS frameworks, etc.)

.NET Framework 4

Thank you in advance for any feedback!

I am passing a datasource that contains two datasets. On my report under Bindings on the initial report I am using the following expression to set up the datasource of the table =ReportItem.DataObject.RawData.GetValue("states",true), this recognizes dataset(0) without any problem.  Now I need to set another table to dataset(1) =ReportItem.DataObject.RawData.GetValue("snapshotObj",true), but this is not being recognized, so I am thinking that I my code is not looking at dataset(1).  How can I do this?

Stef
Telerik team
 answered on 24 Jun 2016
46 answers
621 views
Hi,

I am trying to port my web application into Mono(Linux).
My database will be MySQL / SQLServer 2005.
Please let me know does telerik reporting supports this requirement or not?.

Thanks in Advance
Viny


Stef
Telerik team
 answered on 24 Jun 2016
1 answer
407 views

Hello,

I have added a Table in my report and data source is added to that table. I have added Row Group in the table and also added group row below the Row that shows actual data and in the new row i am displaying count of particular fields. i have added group on Company field and for every unique company i am showing Total using count function.

Ex. i have two companies with fields as shown below:

Company          PO       PO1       PO2

aaa                   1                           2

                         2             3            1

Total(count fn)  2             1            2  

 

bbb                   2             1            4

                         1             7            2

Total(count fn)  2             2            2 

 

Grand Total     4              3            4

In my case Grand total is showing 0 instead of actual count value, in fact when i click on report footer then data explorer is not showing Data source i have added.

The reason why i have opted for Table in the report is that i want to display Report Header and Page Header both in this report and because of design of the Telerik reports Page Header always gets displayed at the top, when i look to find a way which will allow me to display Report header above Page header, i found that it is not possible but found alternative solution where i can add table and then set ColumnHeaderPrintonEveryPage property to True.

 

Regards,

Savan Parmar

Nasko
Telerik team
 answered on 24 Jun 2016
5 answers
626 views

hi,I.m trying to create a Report for My application . i'm using telerik Reporting R2 2016.

Actually i add the New item telerik reporting R2 2016(blank) in  my  project . After i create an object data source and i choose the data Source member as a class Constructor. And i add a Table Wizard in detail section (report) and i Choose the Field also . The probelm is preview of report is not showing the table ( i mean it 's empty ) .Why ???

 

Nasko
Telerik team
 answered on 24 Jun 2016
4 answers
790 views

I am trying to create a simple Master Details report in a Winform application with a Master Table, Detail Table in a dataset.  I have followed the instructions for setting up a Master Details report.  My SubReport (CheckItemsSRPT) has a Parameter called "IDNum"  defined as an integer (as is the field idnum) which allows nulls.  , and a filter =fields.IDNum = =Parameters.IDNum.Value.

The Master Reports is grouped by the IDNum field.  It has a subreport in the details section whose ReportSource  is defined to the type CheckItemsSRPT with Parameter.IDNum, and a filter {=Fields.IDNum = =Parameter.IDNum.Value}

When I Preview the report in design time the data in the details section shows up as expected.

During runtime a dataset is filled with data and transferred  to the report. (See Code Below) 

The data in the Master table appears in the report as expected, but the subreport only renders the data of the default value of the Parameter.IDNum  (Also the report only renders after a manual refresh). 

I have set a breakpoint both at the SubReport1.Itemdatabinding event in the ChecksReport, and in the itemdatabinding event of the CheckItemsSRPT and the parameter.IDNum does not change its value.  What am I missing?

 

'Master report datasource      
    ObjectDataSource()
        mydsItems.DataSource = BudgetsDS1
        mydsItems.DataMember = "CheckItems"
'Master Report
        Dim myrpt As new CheckRpt()
        myrpt.DataSource = myds
'Detail Report
        dim mysubrpt as new CheckItemsSRPT()
        mysubrpt.DataSource = mydsItems
        Dim rssub as new InstanceReportSource
        rssub.ReportDocument = mysubrpt
'Assign Details to SubReport Control
        Dim myctrl As SubReport =TryCast( myrpt.Items.Find("SubReport1",True)(0),SubReport)
        myctrl.ReportSource= rssub
'Assign ReportSource to Viewer Control in form      
        Dim ms as new InstanceReportSource
        ms.ReportDocument = myrpt
        Dim myfrm as new CheckViewervb()
        myfrm.ReportViewer1.ReportSource = ms
        myfrm.Show()

 

Nasko
Telerik team
 answered on 24 Jun 2016
1 answer
284 views

Hi there,

I am facing design issues when I try to show some "content" alogn with its "heading". Actualy heading is set in one html-text-box while content is set to another html-text-box, I am keeping both of them in one panel. But heading box is at bottom of one page and its content is showing on starting point of next page.

Please provide solution.

Thanks & Regards

Yashad

Stef
Telerik team
 answered on 23 Jun 2016
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?