Telerik Forums
Reporting Forum
0 answers
272 views
I'm attempting to use a ReportViewer to display reports in my WPF application. My first goal is to get a report viewer working in a new project to gain experience and then implement one in my main project. I've gone through a couple tutorials and have also run the example located at Telerik/Report Q2 2014/Examples/Csharp/WpfDemo. The example ran exactly the way it should and I had no problems with it at all. However when I use the same code in my own project it doesn't work. I don't get any errors or warnings and every builds correctly, but my window never displays the report viewer control. I stripped down the window in both the example and my project so there was only a window, a grid, and the report viewer. As expected the example still worked, but my code did not. I also tried removing all of my references to all telerik assemblies and using the ones used by the example. Nothing changed. Both my project and the example are using the same version of .NET and I cannot find anything different between the two projects. I have no idea what to do!
Anthony
Top achievements
Rank 1
 asked on 24 Oct 2014
1 answer
202 views
Hi,

I am using HTML5 Report Viewer to show a report. My users want to edit a field on the report. Is there way to achieve this using Telerik Reporting?

Thanks
Nasko
Telerik team
 answered on 23 Oct 2014
4 answers
598 views
Hello, I am trying to get my first report working with .NET MVC and the Reporting Q2 2014 HTML5 viewer. I was able to create a report viewer page in my application and view the sample reports, but have been unable to pass a report parameter to my custom report. I used the standalone designer to create the .trdx file, specified a parameter (ClientID) to be passed to the datasource, which is a SQL datasource that calls a stored procedure. That stored procedure has a single parameter, @clientID, which is mapped to the report ClientID parameter. The report parameter is an integer, and will eventually be set to visible = false when I get all of this sorted out.

Using the preview feature of the standalone designer, I got the same error that I see in my web application ('Missing or invalid parameter value. Please input valid data for all parameters.') until I made the parameter visible and entered a value. Once I did that, data was correctly returned. I am passing the report parameters like so:

@{
    var reportSource = new UriReportSource() {
        Uri = Url.Content("EligibilitySummary.trdx")
    };
    reportSource.Parameters.Add(new Parameter("clientID", Clients.GetByAuthenticatedUser().ClientID));
 
    @(Html.TelerikReporting().ReportViewer()
        .Id("reportViewer1")
        .ServiceUrl(Url.Content("/api/reports/"))
        .TemplateUrl(Url.Content("/ReportViewer/templates/telerikReportViewerTemplate-8.1.14.618.html"))
        .ReportSource(reportSource)
        .ViewMode(ViewModes.INTERACTIVE)
        .ScaleMode(ScaleModes.SPECIFIC)
        .Scale(1.0)
        .PersistSession(false));
 }

When the page loads, a breakpoint on the reportSource lines shows that the parameter values are correctly set, and when the report viewer is displayed, the parameter value shows in the parameters pane on the right hand side, but clicking 'Preview' simply repeats the parameter missing message.

I'm not sure where I've gone wrong in the binding on the web side - some older posts mentioned a version of Newtonsoft.JSON being in the GAC might cause a problem - I have verified that's not the case here.

Any ideas where I've mis-stepped? 

Thanks!
Stef
Telerik team
 answered on 22 Oct 2014
1 answer
281 views
Hello
I currently have a dll built from my application which is put in the same directory as the report designer.
the dll being ShowSoft.Api.dll

In the config file for the designer "Telerik.ReportDesigner.exe.config".
I have the following reference:

 <Telerik.Reporting>
<AssemblyReferences>
<add name="ShowSoft.Api" version="1.0.0.0" />
</AssemblyReferences>
</Telerik.Reporting>

But still the "configure object data source" displays no available data source types.
Is there something i'm missing?

Thanks


Nasko
Telerik team
 answered on 22 Oct 2014
13 answers
354 views
Hi i want to print report after clicking print button, wihtout saving to pdf first... i want to use it with no-browser siverlight application to print reports... what can you advice me? could you provide code example? is it possible at all?
KS
Top achievements
Rank 1
 answered on 21 Oct 2014
1 answer
109 views
First, Is this feature finally implemented in the latest release? Second, if this is not available yet does anyone know a hack or workaround to get the desired behavior?

I basically have a report with 5 grouped rows and want the report to break on the 4th grouped row. Currently using a cross-tab.

Thanks.
Hinata
Top achievements
Rank 1
 answered on 21 Oct 2014
2 answers
174 views
We have reports that use two date parameters as a from and to date input into these reports.   When these date inputs appear on the MVC report site, we want to display as a group.  So in other words, we would like to have a common name (for example "Date Range") above the date input parameters with "From" in front of one and "To" in front of the  other.    Would there be a good way to group parameters so that our javascript can easily format the DOM, or is there a way to create a custom control that the Report designer will recognize and hence have a template within the website specific to this custom control that would style the date range as mentioned?  

Attached is a visual example of what we want to achieve. 
Randy
Top achievements
Rank 1
 answered on 17 Oct 2014
1 answer
168 views
Hi  all,
I have a CrossTab (Telerik Reporting V4.0.10.317 - 2011) with two grouping settings on "Fields.ASSET" and "Fields.PRDCT_NM" (product name) columns and a "=SUM(Fields.AMOUNT)" expression relative to the product.Basically, there are 4 types of products (generating 4 rows for every asset) : "p10", "p50", "p90" and "det", each with his subtotal amount.What I need is to access and store for every asset, to the subtotal, and use these 4 values in a logic like this:
when the subtotal for "det" product (for the current asset) is greater than "p90" sub -> use a formula to calculate ,when the subtotal for "det" product is between "p90" and "p50" subs -> use other formula
and so on ... storing the result of that formula in another cell of my crosstabI've found the "Exec(scope, expression)" Expression, but don't know how to implement the "when" logic based on the product nameCan this be done directly with an expression or I need to catch che item data bound event and search for a workaround?
Thanks in advanceMichele
KS
Top achievements
Rank 1
 answered on 17 Oct 2014
1 answer
537 views
Hi,

I need to display a list of images horizontally and once it has reached end of the page size go to the next line and so on...

Image1     Image2     Image3
Image4     Image5     Image6
Image7

Currently I have placed a picture box inside a table cell and have rotated the table layout so the report displays the images horizontally. But it displays all the images in one single line.

Any help in this regard is highly appreciated.

     
Stef
Telerik team
 answered on 17 Oct 2014
1 answer
183 views
I have a question concerning the removal of a page from a reportbook at runtime.

I have a custom reportbook class that is defined as a set of report pages.

public class MyReportBook : ReportBook
{
    public MyReportBook()
    {
        this.Reports.Add(new CoverPage());
        this.Reports.Add(new DetailPage());
        this.Reports.Add(new SummaryPage());
        this.Reports.Add(new MonthlyBreakoutPage());
    }
}


Now, for a subset of my objects, no summary page is required, so I'd like to, based on a condition in the bound data object, programatically delete it from the book. 

I've gotten the desired results by creating another reportbook class and removing the pages that I don't want, but given that the Reports for the 3 of the 4 pages are the exact same and all I want to do is remove a page, is there a way to do this?

Thanks
Stef
Telerik team
 answered on 17 Oct 2014
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?