Telerik Forums
Reporting Forum
5 answers
266 views
I am currently working on Telerik Reporting with localization.i am new to telerik reports.please Can any one help me how to localize telerik reports to display in the language of a specific culture in my MVC application. For example, our report may display in both English and malay.i refered this link localizing reports in my mvc application.but i can't get exact info how to implement these concept in my aplication.
Naveena
Top achievements
Rank 1
 answered on 17 May 2018
2 answers
585 views
Hello,

I want to use resource files in my reports. I found the way that has to be done w.r.t. the culture-identification, and that is quite simple.
My problem however is that I don't know where to put the files. I found some C# code that will allow me to access a resource file but that does not work as I don't know where I have to tell it where the resourcefiles are. That code is:

public static string ReadResourceValue(string file, string key)
        {
            //value for our return value
            string resourceValue = string.Empty;
            try
            {
                // specify your resource file name
                string resourceFile = file;
                // get the path of your file
               // string filePath = System.AppDomain.CurrentDomain.BaseDirectory.ToString();
                string filePath = "";
                // create a resource manager for reading from
                //the resx file
                ResourceManager resourceManager = ResourceManager.CreateFileBasedResourceManager(resourceFile, filePath, null);
                // retrieve the value of the specified key
                resourceValue = resourceManager.GetString(key);
            }
            catch (Exception ex)
            {
                resourceValue = string.Empty;
            }
            return resourceValue;
        }

Is there a simple (simpler) way to do this?

Thank you
deepak
Top achievements
Rank 1
 answered on 17 May 2018
0 answers
97 views

want to use Korean.

 But There are cracks when export it to pdf.

I think its cause about fonts or encoding problem,
Is there any way make it works?
-I changed the font to Arial Unicode MS, already
Thanks.

yeonha
Top achievements
Rank 1
 asked on 16 May 2018
0 answers
155 views

Hi,

What would be the best approach to create the Master-Details table in Telerik report? The requirements are very basic:

row has two columns: description and price

Details table has only one column: name

The details table is optional, meaning not every master row has it.

The backing data source will be an Object from my model

An example of what I need is given in the attached image

Thanks,

Bojan

Bojan
Top achievements
Rank 1
 asked on 15 May 2018
0 answers
162 views

Hi, 

I am working on a report that include some columns of currency. I have stored the currency symbols in database and fetching the appropriate form there. 
I am not able to group numbers when I concatenate currency fields with number field.

=Fields.(DrAmount)
When I apply grouping on above field I get appropriate result i.e 15,000.

=Fields.CurrencySymbol+' '+(Fields.DrAmount)
When try this one I can't group numbers and I get the result like this. i.e Rs 15000.0000

=Fields.CurrencySymbol+' '+CDbl(Fields.DrAmount)
When try this one I get the result like this. i.e Rs 15000

 

Muhammad
Top achievements
Rank 1
 asked on 15 May 2018
1 answer
119 views

Hello,

I am having problem defining parameter value from one report to a drillthrough report.

From one item in a table report (the origin report), I wish to open a target report and supply it some information through its Parameters.  This appears to be a simple case of a drillthrough report as described in this documentation page 'How to: Add a Drillthrough Report Action'.

What puzzles me is that, when defining the Action in a TextBox of the origin report, the Edit Parameters does not suggest any parameter name , as opposed to what the documentation describes.

Here are my steps, from inside MSVS 2015:

1. Open the origin report Design view, select a textbox - Properties - Action.

2. Open 'ReportSource' menu, Select 'Type name' and select the target report type class.

3. Open the 'Edit Parameters...' dialog, hit 'New' to create a new entry and drop-down the 'Parameter Name' combobox of this entry: it is empty; it does not contain the Report Parameters defined in the target report.  

The documentation says:

Click Edit Parameters button - Edit Parameters dialog appears. Click New. In the Parameter Name column select the name of the report parameter in the drillthrough report. In the Parameter Value, type or select the value to pass to the parameter in the drillthrough report.

What I am missing ?

I am using Reporting Q3 2014 SP1 from MSVS 2015.

Thx

Silviya
Telerik team
 answered on 15 May 2018
1 answer
516 views

Hi,
I have been working on Telerik report by following this example Telerik example for reports.

Currently, I'm using Elevate Database as backend. How can use object data source for binding data to  or Telerik report file?

Please provide a demo using elevate database or Microsoft SQL server database.

My reference   report.

Rick
Telerik team
 answered on 15 May 2018
1 answer
325 views

I'm trying to display a Telerik Report Viewer on ASP.NET WEB FORM (aspx page) and keep getting this error.

My Newtonsoft.Json is the latest version 11.

Please help.

Server Error in '/' Application.

Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:

[FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)] Telerik.ReportViewer.Html5.WebForms.ReportViewer.DeserializeViewerState() +0 Telerik.ReportViewer.Html5.WebForms.ReportViewer.UpdateViewer() +31 Telerik.ReportViewer.Html5.WebForms.ReportViewer.OnInit(EventArgs e) +16 System.Web.UI.Control.InitRecursive(Control namingContainer) +139 System.Web.UI.Control.InitRecursive(Control namingContainer) +312 System.Web.UI.Control.InitRecursive(Control namingContainer) +312 System.Web.UI.Control.InitRecursive(Control namingContainer) +312 System.Web.UI.Control.InitRecursive(Control namingContainer) +312 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +408

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2633.0

John
Top achievements
Rank 1
 answered on 14 May 2018
1 answer
658 views

Hello,

I am trying to deploy the Telerik Report Viewer to the web server. I am getting the following error.

"Telerik.ReportViewer.axd?instanceID=e6204a0004c64dba8b95fdee47c0fd0e&optype=Report&PageIndex=0&RenderID=5f481db5a30340fd84ddaa1797c3c109&RenderingFormat=HTML5Interactive 500 (Internal Server Error)"

 

NOTE : It is working fine in my development machine. while deploying to the web server , I am getting this error. Please help. 

 

<system.webServer>
    <handlers>
      <remove name="Telerik.ReportViewer.axd_*"/>
      <add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=11.0.17.222, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode" />
    </handlers>
    <validation validateIntegratedModeConfiguration="false" />
    </system.webServer>

Todor
Telerik team
 answered on 14 May 2018
5 answers
184 views
I'm trying to localize the export formats by creating my own renders, that is I've not yet come to that stage :(

I've modified by web.config as follows:

<?xml version="1.0"?>  
<configuration> 
    <configSections> 
    <section name="Telerik.Reporting" type="Telerik.Reporting.Processing.Config.ReportingConfigurationSection, Telerik.Reporting.Processing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" allowLocation="true" allowDefinition="Everywhere"/>   
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">  
....  
....  
.... 

and created the section:

    </configSections> 
  <Telerik.Reporting> 
    <Extensions> 
      <Render> 
        <Extension name="TIFF_CCITT4" 
                   type="Telerik.Reporting.ImageRendering.ImageReport, Telerik.Reporting.Processing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" 
                   description="TIFF file (CCITT Group 4)">  
          <Parameters> 
            <Parameter name="TiffCompression" value="ccitt4" /> 
          </Parameters> 
        </Extension> 
      </Render> 
    </Extensions> 
  </Telerik.Reporting> 
  <system.web> 
....  
.... 

But I keep getting the error:

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: An error occurred creating the configuration section handler for Telerik.Reporting: Could not load file or assembly 'Telerik.Reporting.Processing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. Den angivne fil blev ikke fundet.

Source Error:

Line 2:  <configuration>
Line 3:   <configSections>
Line 4:      <section name="Telerik.Reporting" type="Telerik.Reporting.Processing.Config.ReportingConfigurationSection, Telerik.Reporting.Processing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" allowLocation="true" allowDefinition="Everywhere"/>
Line 5:      <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
Line 6:     <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

 
What am I doing wrong here?

Btw. does anyone know if it possible to exclude certain export formats from the webviewer?

 


Katia
Telerik team
 answered on 14 May 2018
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?