Telerik Forums
Reporting Forum
5 answers
450 views
Hi there,

using the standalone report Designer to create trdx report, the often
in C# described method  will not work fpr TRDX based subReports!

an error has occurred while processing subreport 'subreport2':
Bindings rror Property 'DataSource' does not exist.

everbody knows, in C# way, it works like:
this.subReport1.Bindings.Add(new Telerik.Reporting.Binding("ReportSource.DataSource""=ReportItem.DataObject.Persons"));

but using the Standlone Designer (TRDX file), for the binding, he cannot find DataSource ?
...
        <SubReport Name="subReport2">
          <ReportSource>
            <UriReportSource Uri="ReportLines.trdx">
            </UriReportSource>
          </ReportSource>
          <Bindings>
            <Binding Path="ReportSource.DataSource" Expression="=Fields.Lines" /> ----- .DataSource is not found
          </Bindings>
        </SubReport>
...
thank you for helping
Steffen

Silviya
Telerik team
 answered on 05 Jun 2019
3 answers
1.3K+ views

I have two List : 1)  ListPolicies, (Outer list, parent list)

                           2) ListBrokers (inner list, child list)

 

Class DataBind
{
public list <Policy> PolicyList {get;set;}
}

class Policy
{
public PolicyNumber {get;set;}
public PolicyName {get;set;}
public List<Broker> {get;set;}
}

class Broker
{
public Name {get;set;}
public Address {get;set;}
}​

 

bind data to parent list

ListPolicies.DataSource = defaultReportViewModel.PlanProvider.PolicyList;​

 Now i want to bind data childlist, how to achieve this thing???

 

Silviya
Telerik team
 answered on 04 Jun 2019
1 answer
318 views

How do I pass culture info from client to server? I'm using the js library to initialize the report viewer (telerik_ReportViewer).

I had a look the doc here here but I don't see how this can be passed to the server.

 

I want to pass the culture info to the reporting service so that I can set the culture of the running thread correctly.

 

Thanks

Todor
Telerik team
 answered on 31 May 2019
1 answer
570 views

Hello

I Have a column that has data in the date - HH:MM format, example "00:22", how to sum all the values in that column. 

One more thing the data is coming from a JsonDataSource that has null values in date column, using the (IsNull, ??, IIf) to check for null does not seem to work. for example: =IIF(Fields.actualWorkHrs Is NULL, "T", "F") always returns falls even when there are null values in the actualWorkHrs  field

 

thanks. 

Silviya
Telerik team
 answered on 29 May 2019
1 answer
238 views

Hello, I have these 3 classes

Public MyClass1
{
Public string Name { get; set; }
Public Class2 MyProperty { get; set; }

}

Public Class2
{
Public List<Class3> productList { get; set; }
...
}

Public Class3
{
Public int productCode { get; set; }
Public string productDescription { get; set; }
...
}

 

My Object DataSource is "MyClass1". I need to list "productList" in my DetailSection but I have some errors.

In the image below, the result expected

 

Silviya
Telerik team
 answered on 29 May 2019
7 answers
1.1K+ views

I've finished converting our existing Telerik reporting application to the HTML5 report viewer, once deployed to the server the app starts throwing a 404 error.

here's a list of what I'm using and what's installed on both the Dev machine and the Server (IIS 7.0):

  • Telerik reporting 10.0.16.204 (Feb 05, 2016)
  • Kendo UI Prof 2016.1.226 (Feb 26, 2016)
  • .Net 4.5
  • The Dev machine uses IIS Express
  • The Server runs IIS 7.0

I used Fiddler to inspect and compare the requests/responses, and here's a copy:

Dev Machine

200    HTTP    localhost:64290    /Viewer.aspx?c=ddee2936-b35f-4766-b0e8-37340e5e7df7&u=d94ae397-e4a2-46fc-b95b-1308f5c85c8e&r=5c1dea16-47ff-458c-9a79-e8fb96233a02    24,933    private    text/html; charset=utf-8    iexplore:15028            
200    HTTP    localhost:64290    /js/jquery-1.10.2.js    108,002        application/javascript    iexplore:15028            
200    HTTP    localhost:64290    /ClientThemes/Tracker/kendo.css    14,833        text/css    iexplore:15028                        
200    HTTP    localhost:64290    /WebResource.axd?d=mc-7ZkzJDFkxx81trXXMYnKRFBj8nw...    13,215    public; Expires: Tue, 21 Mar 2017 13:19:11 GMT    text/css    iexplore:15028            
200    HTTP    localhost:64290    /WebResource.axd?d=eiUm-0avedYOJt0Pnasm6tHaVdNsY_...    91,511    public; Expires: Tue, 21 Mar 2017 13:19:11 GMT    text/javascript    iexplore:15028            
200    HTTP    localhost:64290    /WebResource.axd?d=U-QtGVIjXaG-VilkbaKZwpYORbfoTy...    53,503    public; Expires: Tue, 21 Mar 2017 13:19:11 GMT    text/css    iexplore:15028                    
200    HTTP    localhost:64290    /WebResource.axd?d=DqDmbWgg4b-vCGBbWHkNnsxNjZkW7Z...    24,238    public; Expires: Tue, 21 Mar 2017 13:19:11 GMT    text/javascript    iexplore:15028            
200    HTTP    localhost:64290    /Templates/tSimple.html    1,390        text/html    iexplore:15028    

IIS Server

200    HTTPS    reportingURL    /Viewer.aspx?c=ddee2936-b35f-4766-b0e8-37340e5e7df7&u=d94ae397-e4a2-46fc-b95b-1308f5c85c8e&r=5c1dea16-47ff-458c-9a79-e8fb96233a02    46,481    private    text/html; charset=utf-8    iexplore:12336            
200    HTTPS    reportingURL    /js/jquery-1.10.2.js    273,990        application/x-javascript    iexplore:12336            
200    HTTPS    reportingURL    /ClientThemes/Tracker/kendo.css    70,577        text/css    iexplore:12336                                                
200    HTTPS    reportingURL    /WebResource.axd?d=U-QtGVIjXaG-VilkbaKZwi-WFq2bsW...    243,472    public; Expires: Tue, 21 Mar 2017 14:53:06 GMT    text/css    iexplore:12336            
200    HTTPS    reportingURL    /WebResource.axd?d=eiUm-0avedYOJt0Pnasm6rXLcuIS9X...    213,589    public; Expires: Tue, 21 Mar 2017 14:53:06 GMT    text/javascript    iexplore:12336            
200    HTTPS    reportingURL    /WebResource.axd?d=mc-7ZkzJDFkxx81trXXMYjjRyE7-m5...    59,114    public; Expires: Tue, 21 Mar 2017 14:53:06 GMT    text/css    iexplore:12336                    
200    HTTPS    reportingURL    /WebResource.axd?d=DqDmbWgg4b-vCGBbWHkNnrPy2xQHYi...    67,797    public; Expires: Tue, 21 Mar 2017 14:53:06 GMT    text/javascript    iexplore:12336            
200    HTTPS    reportingURL    /Templates/tSimple.html    5,061        text/html    iexplore:12336            
404    HTTPS    reportingURL    /api/reports/resources/font/fonticons-css    1,245        text/html    iexplore:12336            
404    HTTPS    reportingURL    /api/reports/resources/styles/telerikReportViewer-css    1,245        text/html    iexplore:12336

 

I've realized that I have 2 extra requests on my Server, and they are both returning 404 response

  • /api/reports/resources/font/fonticons-css
  • /api/reports/resources/styles/telerikReportViewer-css

and here's my questions:

  1. why I have 2 extra requests on my server? (and/or why don't I see these requests on my Dev machine)
  2. if these are legit requests, why are they returning a 404?
    these requests look like a resource requests,
    where does the API call look for resources? (i.e where does /api/reports/resources/ points to?)

Your help is much appreciated,
Ghayth Hilal

Neha
Top achievements
Rank 1
 answered on 28 May 2019
9 answers
277 views

Cannot self host telerik rest service as the ReportsController uses the HttpContext which is not available when self hosting

var appPath = HttpContext.Current.Server.MapPath("~/");             

var reportsPath = Path.Combine(appPath, "Reports");

what is the recommended work around

Thanks

Laz
Top achievements
Rank 1
 answered on 27 May 2019
4 answers
344 views

Hi,

I want to group some items in the combobox of my reports.

Please see the example( groupedCombobox.jpg ) , which I have attached.

I used horizontal lines to separate the groups.

But how can I realize that in a report parameter which is a combobox?

Have you an example project?

 

Regards

Neli
Telerik team
 answered on 27 May 2019
4 answers
740 views

Hi there

I'm trying to print a report with some data from our system on it. The report should be printer as a label. The label has a width of 102mm and a height of 102mm. I'm using this code to print the label:

01.IReportDocument repDocList = new AddrLabel();
02. 
03.// set printer settings
04.PrinterSettings printSet = new PrinterSettings();
05.printSet.Copies = 1;
06.printSet.PrinterName = LabelPrinterName;
07. 
08.// create print controller
09.PrintController printCtrl = new StandardPrintController();
10. 
11.// create report processor
12.ReportProcessor repProc = new ReportProcessor();
13.repProc.PrintController = printCtrl;
14. 
15.InstanceReportSource repSrc = new InstanceReportSource();
16.repSrc.ReportDocument = repDocList;
17. 
18.// print report
19.repProc.PrintReport(repSrc, printSet);

The report contains text and image. I attached two images. One image is the expected report how it should be printed on the label. We printed that manually on windows photo gallery application to test if our printer is able to print images properly. The second image is how the telerik report is printed. As you can see it doesn't print the image properly (only black & white). It also prints the report on two pages and moves it down and to the right.

I'm wondering if it's possible to print a report on a label and if yes: how?
We're using a TSC TC310 label printer.

Best Regards,
Roman

Roman
Top achievements
Rank 1
Iron
 answered on 27 May 2019
27 answers
2.1K+ views

Hello,

I have a solution that contains multiple .net core 2.1 projects. 

My main goal is to generate reports from within the same solution so I either need to reference a .net core 2.1 datamodel project that has all my data contexts. The problem right now is that because all the telerik reporting services and library projects are all still running .net 4.6.1 framework when I try to reference my datamodel project I'd get a bunch of reference errors.

Would someone point me in the right direction to get this working?

Thanks

Silviya
Telerik team
 answered on 27 May 2019
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?