Telerik Forums
Reporting Forum
3 answers
190 views

Hi,

 I have created a TRDX report files using Telerik stand alone report designer. I created an asp.net web application and calling the TRDX report in the browser using telerik report viewer control. Below is the code used in the page load to call trdx report.

  var reportSource = new UriReportSource() { Uri = "EVB_002.trdx" };
this.ReportViewer1.ReportSource = reportSource;

 We need to implement support for different languages in these reports, example when user wants to see report headers in French, there must be an option for user to select the language. I have gone through following 2 links given in telerik documentation and created a resource file(.resx). 

http://www.telerik.com/help/reporting/report-viewer-localization.html
http://www.telerik.com/help/reporting/advanced-localizing-reports.html

Please let me know the next steps to associate the resource files with telerik report viewer so that reports can be viewed in other languages.

Thanks,

Daniel

Neli
Telerik team
 answered on 17 Oct 2019
1 answer
309 views

I have designed report template using standalone designer report(trdp extension).

I consumed that report template in my application and pass data to that report template to deliver complete report.

Everything works fine , but now i need to achieve localisation for those standalone report .

Please tell me the steps how I can add localisation for the culture "zh-HK" in the standalone report.

Neli
Telerik team
 answered on 17 Oct 2019
3 answers
674 views

I have a nested table in a textbox of a table and I am having trouble getting the summary of all the records in the nested table.

I can get the summary of each group in the nested table.  However, I cannot get the summary for all the records together.

I have posted the data structure with sample data below.  

The data source of the parent table is "= ReportItem.DataObject.TicketReportsDC"
I have added a row "Outside Group - Below" and I have tried "=Sum(Fields.TicketDataContract.TicketJob.TicketDetails.OrderAmount)".  This gives me an error :'OrderAmount' is not defined in the current context. 

The data source of the nested table is "= ReportItem.DataObject.TicketDataContract.TicketJob.TicketDetails"
I have added a row "Outside Group - Below" and put "=Sum(Fields.OrderAmount)" in the appropriate textbox. This gives me the Summary for the individual ticket. ($1650.00,  $1200.00, and $625.00 for the below sample data)

I have tried other possibilities and am not haveing any luck getting this.  I believe it is due to the fact that the "TicketDetails" is a list within a list (TicketReportsDC) in the Data Structure.  

Can anyone give me any ideas for referencing the "OrderAmount" at the top level?  With the sample data below I would expect  a total of $3475.00.

 

Thanks

James

-----------------Data Structure with Data ------------------
{
  "TicketReportsDC": [
    {
      "TicketID": 1212
      "TicketDataContract": {
        "TicketJob": {
          "TicketDetails": [
            {
              "Item#": 123
              "Quantity": 3
              "OrderAmount": 1500
            }
            {
              "Item#": 124
              "Quantity": 1
              "OrderAmount": 100
            }
            {
              "Item#": 125
              "Quantity": 2
              "OrderAmount": 50
            }
          ]
        }
      }
    }
    {
      "TicketID": 1240
      "TicketDataContract": {
        "TicketJob": {
          "TicketDetails": [
            {
              "Item#": 123
              "Quantity": 2
              "OrderAmount": 1000
            }
            {
              "Item#": 124
              "Quantity": 2
              "OrderAmount": 200
            }
          ]
        }
      }
    }
    {
      "TicketID": 1245
      "TicketDataContract": {
        "TicketJob": {
          "TicketDetails": [
            {
              "Item#": 123
              "Quantity": 1
              "OrderAmount": 500
            }
            {
              "Item#": 124
              "Quantity": 1
              "OrderAmount": 100
            }
            {
              "Item#": 125
              "Quantity": 1
              "OrderAmount": 25
            }
          ]
        }
      }
    }  
  ]
}

Neli
Telerik team
 answered on 17 Oct 2019
1 answer
358 views

Whatever I try, the standalone Report Designer always displays "No reports available" in the "Select Reports to Import" dialog.

I tried to keep it as simple as possible:

  • Create a new project in Visual Studio (Telerik Report Library)
  • Add a blank report
  • Add a couple of TextBoxes
  • Visual Studio report preview looks fine
  • Try to import DLL in Standalone Designer
  • "No reports available"

Screenshots attached

Peter
Telerik team
 answered on 15 Oct 2019
1 answer
154 views

hi,

I would like to display the datetime interval value from data field.
I am using the standalone report designer and my report has chart and summary data by group. I have tried out the aggregate function but my function will display the interval for inner group only. Kindly help to advise how to get this?

The report data structure would be like the following 
Name,QtyName,DateTime
DV10002,Current Phase B,2016-09-05 00:15:00
DV10002,Current Phase B,2016-09-05 00:30:00
DV10002,Current Phase B,2016-09-05 00:45:00
DV10002,Current Phase B,2016-09-05 01:00:00
DV10003,Current Phase B,2016-09-05 01:00:00
DV10003,Current Phase B,2016-09-05 01:30:00
DV10003,Current Phase A,2016-09-05 01:00:00
DV10003,Current Phase A,2016-09-05 01:30:00

e.g  DV10002 
       Current Phase B
       Interval : 15 mins
       DV10002  Summary 

       DV10003
Current Phase B
Current Phase A
       Interval : 30 mins
       DV10003 Summary 

I have also attached the sample report. 
Thank you

Todor
Telerik team
 answered on 14 Oct 2019
3 answers
239 views
We recently experienced an issue with R3 2019 (13.2.19.918) where a user would go to our report screen and the report wouldn't load.  That user was then unable to navigate or use any other part of our web application without closing their browser.  We were unable to reproduce the issue, and it happened intermittently in production.  I noticed in the release notes of today's internal build (R3 2019 SP1 13.2.19.1004), that an issue has been fixed with WebAPI and the note says "Service stops responding in specific cases".  We want to know if this is the issue we were experiencing before deploying this version.
Todor
Telerik team
 answered on 14 Oct 2019
2 answers
774 views

Error:

Method not found: 'Void System.Threading.Semaphore..ctor(Int32, Int32, System.String, Boolean ByRef, System.Security.AccessControl.SemaphoreSecurity)'.

Version:

.Net Core 3.0

Telerik Reporting R3 2019

Note:

The constructor Threading.Semaphore..ctor(Int32, Int32, System.String, Boolean ByRef, System.Security.AccessControl.SemaphoreSecurity) only available in .Net Framework 4.8

Nuget Packages:

<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="3.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.0.0" />
<PackageReference Include="sqlite-net-pcl" Version="1.6.292" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.6.0" />
<PackageReference Include="System.Data.Common" Version="4.3.0" />
<PackageReference Include="System.Data.SqlClient" Version="4.7.0" />
<PackageReference Include="System.Drawing.Common" Version="4.6.0" />
<PackageReference Include="System.IO.Packaging" Version="4.6.0" />
<PackageReference Include="System.Reflection.Emit" Version="4.6.0" />
<PackageReference Include="System.Reflection.Emit.Lightweight" Version="4.6.0" />
<PackageReference Include="System.Runtime.Loader" Version="4.3.0" />
<PackageReference Include="System.Security.Cryptography.Pkcs" Version="4.6.0" />
<PackageReference Include="System.Security.Permissions" Version="4.6.0" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.6.0" />
<PackageReference Include="System.Threading.AccessControl" Version="4.6.0" />

Assembly References:

Telerik.Reporting.dll

Telerik.Reporting.Service.dll

Telerik.Reporting.Services.AspNetCore.dll

Todor
Telerik team
 answered on 14 Oct 2019
4 answers
1.6K+ views
Hi,

Is there any way to set the size of a textbox dynamically based on length of its text in Telerik Reports?

Thanks.
Peter
Telerik team
 answered on 14 Oct 2019
1 answer
639 views

I am using Telerik reporting to produce price labels for products within our stores.

I have a VB project which produces the labels when a feed is recieved from our central servers.  The XML input contains pricing and various other characteristics which then populate various fields on the label. 

 

I need this to be rendered in Helvetica, and then the report gets pushed to a label printer.  The label printing software runs on approximately 160 Win 7 machines and runs under the Local System user.

I have installed Helvetica.ttf on our UAT machine, and whilst printing from Dev on my own machine renders the Helvetica font perfectly, I cannot get it to work on the UAT machine.

 

app.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="Telerik.Reporting" type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting, Version=12.2.18.1129, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" allowLocation="true" allowDefinition="Everywhere" />
  </configSections>
  <Telerik.Reporting>
    <privateFonts>
      <add fontFamily="Helvetica" path="C:/Windows/Fonts/Helvetica.ttf" />
    </privateFonts>
  </Telerik.Reporting>

 

label.vb

Public Sub New()
 
      Dim Functions As New GenericFunctions
      Dim ExceptionFunctions As New ExceptionFunctions
      Dim EXC As New CollatedException
       
      Try
 
          InitializeComponent()
          Dim dblXOffset As Double = CDbl(PrinterVariables.LabelPrinterSettings.Xoffset)
          Dim dblYOffset As Double = CDbl(PrinterVariables.LabelPrinterSettings.Yoffset)
 
          Dim xOffset As New Unit
          Dim yOffset As New Unit
          Me.Style.Font.Name = "Helvetica"
          xOffset = Unit.Mm(dblXOffset)
          yOffset = Unit.Mm(dblYOffset)

 

Nasko
Telerik team
 answered on 11 Oct 2019
1 answer
625 views

Hello,

I'm trying to get the ReportProcessor to work in a .Net Core class library (running as an Azure function) and attempting to load in a .trdp file (soon, it'll be multiple .trdp files) as the report source.  Upon hitting the endpoint, it almost immediately crashes with:

Telerik.Reporting: The type initializer for 'Telerik.Reporting.Processing.Common.FontContainer' threw an exception. System.Drawing.Common: System.Drawing is not supported on this platform.

I've tried installing the windows compatibility pack and system.drawing.common in futile attempts to get this working, but have not yet been able to.  Is this a limitation of Telerik reporting?  

Neli
Telerik team
 answered on 11 Oct 2019
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?