Telerik Forums
Reporting Forum
3 answers
546 views

Hello,

I have created a report in Telerik report designer R3 2016, and to make my report multilingual i have created a parameter named pCulture to which user is passing culture name(eg. French(fr-FR), portuguese (pt-PT), English(en-EN)) which is working fine.

How my function is working :

TelerikReportResources.MultilanguageTelerikReport.GetCultureSpecificString(Parameters.pCulture.Value,"Key") //It is User defined function

The "key" will be translated from .net side in any language which has been entered by user in pCulture parameter.

Now the problem is :

I have Pie chart in my report which is showing weekdays, so here i have to compare pCulture parameter first, either it is french, Portuguese or English and again in particular language have to compare for the weekdays.as given below:

 

if the Parameters.pCulture.Value="fr-FR" and dayNameOfweek="Monday" then Monday="Lundi"

if the Parameters.pCulture.Value="fr-FR" and dayNameOfweek="Tuesday" then Monday="Mardi"

elseif the Parameters.pCulture.Value="fr-FR" and dayNameOfweek="Wednesday" then Monday="Mercredi"

elseif the Parameters.pCulture.Value="fr-FR" and dayNameOfweek="Thursday" then Monday="Jeudi"

elseif the Parameters.pCulture.Value="fr-FR" and dayNameOfweek="Friday" then Monday="Vendredi"

elseif the Parameters.pCulture.Value="fr-FR" and dayNameOfweek="Saturday" then Monday="samedi"

elseif the Parameters.pCulture.Value="fr-FR" and dayNameOfweek="Sunday" then Monday="dimanche"

 

same for Portuguese and English.so according to my logic i will have to create 21 elseif for this.

please guide me.

 

 

Vendredi
Vendredi
Vendredi
Vendredi
Vendredi
Vendredi
Vendredi
Vendredi
Vendredi
Vendredi
Vendredi
dimanche
dimanche
dimanche
dimanche
dimanche
Stef
Telerik team
 answered on 13 Apr 2017
1 answer
664 views

Hello,

 

I have a website project that prints reports fine running locally but once loaded to a webserver it starts to throw exception "Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application."

Code I'm using to print report is:

 

    public void PrintReport(Report report, string printerName)
    {
        Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
        InstanceReportSource instanceReportSource = new InstanceReportSource();
        PrinterSettings psettings = new PrinterSettings {
            PrinterName = printerName
        };

        instanceReportSource.ReportDocument = report;
        reportProcessor.PrintReport(instanceReportSource, psettings);
    }

 

I do need to signify exact printer to print to as well as it needs to be silent.  How come this only works locally?

Stef
Telerik team
 answered on 13 Apr 2017
13 answers
312 views

I purchased DevCraft Complete and I'd like to get started with reporting. Does Telerik provide any tutorials for getting started with Reporting? I was able to find one tutorial but that was from 4 years ago. I'm sure a lot has changed since then.

Stef
Telerik team
 answered on 11 Apr 2017
7 answers
682 views
I have Visual Studio 2015.I have downloaded Telerik.ReportDesigner application file.I am able to use data source like csv data source , SQL data source. To use Entity Data Source i built an Entity Data Model (ADO.Net Entity Data Model) and i copy their connection string from web.config to the connection string which is asked when i create Entity Data Source but it doesn't show anything on Choose a Context window. would anyone please help.
Stef
Telerik team
 answered on 11 Apr 2017
1 answer
684 views

I'm really having a hard time getting Telerik Reports to do anything for me.  The latest version says it's .NET Core but the first thing you do is remove .NET Core from the project and add the full framework.

I have an existing application that is entirely .NET Core.  This includes front-end, EF, the API, and the middle-tier.  All my business models are .NET Core assembly.

We are not going to add the full framework to any of our existing projects.  Therefore Telerik Reporting must be in assembly which will have a front-end used solely for showing reports selected by the user in our main web application.  However, since all the business models are in a Core only assembly, and I have no interest in duplicating all the models just for this Telerik only project, I am hoping that I can feed the report JSON retrieved from the API.

Is this possible?  I'm looking at the datasources and I'm not clear if one of those would work, or if there is another way to provide this data.

Stef
Telerik team
 answered on 11 Apr 2017
3 answers
161 views

Can we pass html elements such as <button onclick = "dosomething()"> </button> to  htmltextbox in html5 report viewer

 

Stef
Telerik team
 answered on 11 Apr 2017
1 answer
196 views

Hello,

 

I'm trying to create new table report based on ObjectDatasource and as result I get empty table duplicates. Please see Screenshot_1.png

Could you please advise how the issue could be solved?

Stef
Telerik team
 answered on 10 Apr 2017
5 answers
815 views

Hi,

I'm using telerik report designer R3 2016, and i want to make my textbox dynamic, the textbox should increase according to the number of characters in a word.Please help.

Stef
Telerik team
 answered on 10 Apr 2017
1 answer
133 views
I tried creating simple report with table, it renders fine in x86 but not in 64. Also not rendering in VS2015, getting system out of memory (data set only 1000 rows)
Stef
Telerik team
 answered on 10 Apr 2017
1 answer
1.5K+ views

How can i load report from file and change data source?

 

For example:

I have "report1.trdp", saved in "c:\reports". 

MyRptService needs to open it, pass data as object collection (matching field names in report) and output to pdf.

In below example I can open report and output to pdf but I dont see any way to set different datasource

 Telerik.Reporting.Processing.ReportProcessor reportProcessor =
                    new Telerik.Reporting.Processing.ReportProcessor();

                // set any deviceInfo settings if necessary
                System.Collections.Hashtable deviceInfo =
                    new System.Collections.Hashtable();

                var uriReportSource = new Telerik.Reporting.UriReportSource();

                // Specifying an URL or a file path
                uriReportSource.Uri = @"C:\data\reports\Report1.trdp";

                    

                Telerik.Reporting.Processing.RenderingResult result =
                    reportProcessor.RenderReport("PDF", uriReportSource, deviceInfo);

                string fileName = result.DocumentName + "." + result.Extension;
                string path = System.IO.Path.GetTempPath();
                string filePath = System.IO.Path.Combine(path, fileName);

                using (System.IO.FileStream fs = new System.IO.FileStream(filePath, System.IO.FileMode.Create))
                {
                    fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
                }

Stef
Telerik team
 answered on 10 Apr 2017
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?