Telerik Forums
Reporting Forum
1 answer
123 views

Hello,

 I have a report with drillthrough actions. When these action-items are clickable (i.e. interactive mode) I want to display the items underlined, but in print mode I want no underline (since the items are no longer clickable). Does this make sense, and is it possible? This behavior exists with the drilldown-buttons, but this is not a drilldown report.

 Best regards, Anders

Katia
Telerik team
 answered on 27 Jan 2016
1 answer
258 views
Would there be a possible way to pass the initializer of the .telerik_ReportViewer a template without using an AJAX call? My situation is with a single page application using require for my module loader. This gets minified into a single file, where my report viewer template is located. I would like to be able to pass the report viewer the HTML as a string from require instead of having it use an AJAX call to find the file. Would this be possible, or would you recommend me just referencing the file from outside the bundled application?
Stef
Telerik team
 answered on 27 Jan 2016
1 answer
383 views

I would like to have 2 external style sheets ("A.xml" & "B.xml" or 1 external style sheet with different Selectors ("A.TableNormal" & "B.TableNormal")

Is there a way I can pass in a paramter (A / B) and toggle between the external style sheet or pass in "A.xml" or "B.xml" as the parameter and set it in a conditional formatting section? If not, is there a way to change the table style based on a parameter? If parameter1 = A, StyleName=A.TableNormal.

Katia
Telerik team
 answered on 26 Jan 2016
4 answers
210 views

Enviroments:

Windows 7 ultimate russian x64

Visual studio 2010, 2012, 2015

MS SQL Server 2008, 2014

Telerik Reporting Q2 2012, Q3 2012, Q1 2015, Q1 2016

 

Problem: When run Q1 2016 report designer - get error. Please see attached file

Tested also on the Windows 10 pro (russian) x64, and Windows 7 pro x64  - the same error

Andy
Top achievements
Rank 1
 answered on 26 Jan 2016
2 answers
136 views

Hi, does Telerik suppport generating Multi-Axis Line Charts report?

 

Just like attached sample

Katia
Telerik team
 answered on 25 Jan 2016
6 answers
153 views

Hello,

I have a WPF application that runs correctly... until I updated to Telerik Reporting Q1 2016.

Now, evey time I try to preview a report, I have an InvalidOperationException, with the following message:
Layout measurement override of element 'Telerik.Windows.Controls.Primitives.LayoutTransformControl' should not return NaN values as its DesiredSize.

Stef
Telerik team
 answered on 22 Jan 2016
1 answer
554 views
Hi, currently have a problem with table spacing and page breaks. I have a subreport which contains 1 table in it. I'm trying to give the table about half an inch of spacing from top on each page it breaks. Setting the padding-top property to half an inch works, but then the bottom row on each page is cut off. Is there some way to get this to work?
Katia
Telerik team
 answered on 22 Jan 2016
8 answers
3.9K+ views
I'm using telerik HTML5 report viewer with ASP.NET MVC 4 to generate telerik reports. Below are main sections of the view

@model Doc.Web.Models.Vendor.VendorCoverSheetFormModel

@using (Html.BeginForm())
{  
    <input type="submit" value="Save" id="btnSave" />
  
    var typeReportSource = new TypeReportSource() { TypeName = "Doc.Web.Reports.SquadCheck.SquadCheck, Doc.Web" };
    typeReportSource.Parameters.Add("project", "TEST");
   
    @(Html.TelerikReporting().ReportViewer()
        .Id("reportViewer1")
        .ServiceUrl("/api/reports/")
        .TemplateUrl("/Content/ReportViewer/templates/telerikReportViewerTemplate.html")
        .ReportSource(typeReportSource)
        .ViewMode(ViewModes.INTERACTIVE)
        .ScaleMode(ScaleModes.FIT_PAGE_WIDTH)
        .Scale(1.0)
        .PersistSession(false)

)

report is displaying fine and I want to save this report as a .pdf file to hard drive location, in HTTP post Action

        [HttpPost]
        public ActionResult Report(VendorCoverSheetFormModel model)
        {
          // here I need to include the code for .pdf saving
            return View();
        }

I have referred to following articles but I guess they are for asp.net web pages. How to modify this code to suit HTML5 report viewer?

http://www.telerik.com/support/kb/reporting/designing-reports/saving-a-report-into-pdf-format-programmatically.aspx

http://www.telerik.com/help/reporting/programmatic-exporting-report.html

Stef
Telerik team
 answered on 22 Jan 2016
11 answers
900 views
Hi there!

I'm using Telerik Reporting Q1 2009 in a CAB WinForms application (along with RadControls for WinForms) under Windows Vista. I need to provide a globalized version of some reports where the user can chose the language of a report from the application's UI.

As proposed in the documentation I designed the report in the default language (here: German). After this I set the Localizable property of the report to True in the report designer, changed the Language property of the report to the desired language (here: English (US)) and localized all strings used in the report form. After saving, I got two resource files as expected, one for the default language (MyReport.resx), one for the localized version (MyReport.en-US.resx), both containing the correctly localized string resources. Compiling the project also results to a proper satellite assembly for the localized culture, residing in a subfolder named by the culture:

.\MyReport.dll
.\en-US\MyReport.resources.dll


These file/folder structure is also copied to the application's bin folder, along with all other depedent assemblies etc.

As far as I see this is all correct behavior until here.

In the application I use the following code to set the report's Culture property to the desired one, lets say English US):

Report report = new MyReport(); 
report.Culture = new CultureInfo("en-US"); 
report.DataSource = someDataSet; 

The report will get rendered in another place, once as PDF and once by the WinForms ReportViewer:

string mimeType = ""
string extension = ""
Encoding encoding = null
 
Hashtable deviceSettings = new Hashtable(); 
deviceSettings["FontEmbedding"] = "Subset"
deviceSettings["DocumentTitle"] = report.DocumentName; 
deviceSettings["DocumentAuthor"] = "My Company"
 
byte[] buffer =  
    Telerik.Reporting.Processing.ReportProcessor.Render("PDF", report, deviceSettings, out mimeType, out extension, out encoding); 
 
// ... save the PDF using FileStream ... 
 

// WinForms initialization code 
private Telerik.ReportViewer.WinForms.ReportViewer mainReportViewer; 
 
// .... 
 
public void ShowReport(Report report) 
    mainReportViewer.Report = report; 
    mainReportViewer.RefreshReport(); 
 
 

As you see this code is also no rocket sience.

My Problem is that the report always keeps it's default language and will never show in English (US) as desired, regardless of the above mentioned conditions (report localized, got satellite assemblies in the right place [assumedly], report's Culture property explicitly set). I also set the current thread's CurrentUICulture property to english, as well as the whole operating system's default language - but the report still stays "unlocalized". So the problem seems to be that for some reason the satellite assembly won't get used for localization.

Does anyone has a helpful hint what the problem could be here?

Regards,
ReneMT






Stef
Telerik team
 answered on 22 Jan 2016
11 answers
258 views
Hello,

  I have a massive problem on localizing my Reports with the actual Version (Q3 2010 SP1 / 2010.3.1221). I have some reports in german and english. In my report preview window I have a dropdown to switch the report language. This works fine in VS 2010. But when I deploy my application to a Win2003 Server, the problems start. No matter, what language I set in my dropdown, the report is always in german (which is the default language). For switching between the languages I use:
Thread.CurrentThread.CurrentUICulture
and
Thread.CurrentThread.CurrentCulture

The same application deployed to Windows Azure with Telerik Reports Version Q2 2010 (2010.2.921) works perfect. Have I to change something in my application to let it work again or is there a bug in the actual report release?

In hope of help
 Thomas
Stef
Telerik team
 answered on 21 Jan 2016
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?