Telerik Forums
Reporting Forum
2 answers
133 views

I've followed the instructions in the documentation for setting up a the MVC Report Viewer in my ASP.NET MVC web application. The app path maps to "~/Reports", and in the root of my project I have a folder named 'Reports' which contains the SampleReport.trdp. I believe I have all the other configuration in place (Global.asax, web.config etc.). 

How do I view this sample report? What is the URL for viewing any reports? The documentation is very minimal, are there any tutorials for setting up Telerik reporting in an MVC app?

Ciaran
Top achievements
Rank 1
 answered on 07 Jun 2018
1 answer
335 views

Hi,

I use the asp.net webforms viewer and set the report by setting

    reportViewer1.ReportSource.Identifier = reportFile;

I have a controller which uses a custom resolver

    public class ReportsController : ReportsControllerBase

 

Apparently this page uses the REST service to load the report but how does it know what url to use for the service? I haven't configured this explicitly as far as I can see so it seems to be hardcoded/defaulted?

Rick
Telerik team
 answered on 06 Jun 2018
1 answer
479 views

Hi,

Currently, we have 4 options (Header, Query, Inline, Cookies)  for setting parameters in Http request of web serviced data source. Using these options we are able to set report parameter as the parameters for the Http request of web serviced data source. Instead of that how can we pass parameter inside the body of Http request? Current we are able to send parameter inside the body statically. Is have any other way to bind the value of the parameter inside the body from report parameter.

Peter
Telerik team
 answered on 06 Jun 2018
2 answers
112 views

I'm trying to achieve the result in the attached file.

I have gone through the documentation and I cannot see anything which can help me. The only things I could find were for RadChart.

I'm using Q1 2016 SP1 (with no option to currently update)

Is this possible in the Telerik Reporting framework?

 

 

Todor
Telerik team
 answered on 06 Jun 2018
1 answer
91 views

Hello!

Could i configure the same multiple grouping and blue dash line on Graph? If yes, how i can do this?

Please look at attached image

Thanks!

Rick
Telerik team
 answered on 05 Jun 2018
6 answers
451 views
Within the Report.ItemDataBinding event I'm adjusting the Textbox positions within the PageHeader inorder to collapse the height.

ItemDataBindingEvent
 - Loop Items
   - If (Empty) Visibility = False
   -  Loop each items that crosses vertical plane below this item
        - BelowItem.Top = BelowItem.Top.Subtract(hiddenItemHeightUnit);

lowest = pageSection.Items.OrderByDescending(x => x.Bottom.Value).FirstOrDefault();

if (lowest.Bottom.Value + threashold > pageHeader.Height.Value)
    pageHeader.Height = new Telerik.Reporting.Drawing.Unit.Inch(lowest.Bottom.Value + paddingBottom);


This works great except if I have a textbox that is flush to the right border (textAlign.Right).   Within the ReportHeaderSection ItemDataBound event I can verify that the LEFT position is correctly set within the Processing Textbox and the ItemDefinition Textbox, but when rendered its the same as float left.

If I have a textbox in the center and not even the same horzontal row then this does not happend

This is my page header
-----------------------------------------------
[                       Sup Title                    ]
[                          Title                        ]
[ Value1   ]      [Sub Title]                   ]
[ Value2   ]                                         ]
[ Value3   ]                         [    Value4]
-----------------------------------------------

If I set any of the textbox visiblity to false, then all of the textboxes render as float left (SubTitle and Value4)
If I set their height to Zero then re-positioning is possible.




/// <summary>
/// Can only shrink content within the Report.ItemDataBinding Event
/// </summary>
/// <param name="pageHeader"></param>
/// <param name="debug"></param>
public static void ShrinkToContent(this Telerik.Reporting.PageHeaderSection pageHeader, double paddingBottom=0.02D, bool debug=false)
{
    var items = pageHeader.Items.OfType<Telerik.Reporting.TextBox>().Where(x => x.Visible).OrderBy(x => x.Top.Value).ToList();
    double threashold = 0.02;
 
 
    foreach (Telerik.Reporting.TextBox tx in items)
    {
        tx.CanGrow = false;
 
        if (string.IsNullOrEmpty(tx.Value))
        {
            
            // shuffle items beneth this textbox
            foreach (Telerik.Reporting.TextBox item in items.Where(x => x.Visible && x.Top.Value > tx.Top.Value && tx.Left.Value < x.Right.Value && x.Left.Value < tx.Right.Value))
            {
                // item.Location = new Telerik.Reporting.Drawing.PointU(item.Left, item.Top.Subtract(tx.Height));
                item.Top = item.Top.Subtract(tx.Height);
                if (debug)
                {
                    // blue means shiffted
                    item.Style.BackgroundColor = System.Drawing.Color.Blue;
                }
            }
 
            tx.Height = Telerik.Reporting.Drawing.Unit.Zero;
            tx.CanShrink = true;
            // tx.Style.BackgroundColor = System.Drawing.Color.Black;
        }
    }
 
    var stacked = items.OrderByDescending(x => (x.Height.Value <= threashold) ? 0 : x.Bottom.Value).ToList();
    var lowest = stacked.FirstOrDefault();
 
    // TODO
    // If we have a bottom alignment ensure that its bumped up and still on the bottom
    // Colapse between lowest and next above in vertical stack
             
 
    double oldHeight = pageHeader.Height.Value;
    double newHeight = lowest.Bottom.Value;
    if (newHeight < (oldHeight + threashold))
    {
        if (debug)
        {
            pageHeader.Style.BackgroundColor = System.Drawing.Color.Yellow;
        }
                 
        pageHeader.Height = Telerik.Reporting.Drawing.Unit.Inch(newHeight + paddingBottom);
    }
}
Todor
Telerik team
 answered on 04 Jun 2018
1 answer
149 views

I am working on Telerik Reports which are migrated from Silverlight. 
I am now using HTML 5 Report Viewer. 
There is one report that gives this error : "Internal Server Error. Child doesn't implement ITableCell."
The report is compiled and generated correctly in the HTML Preview Pane in the Visual Studio. 

Also, what actually happens is that the sometimes (as I have noticed) the report data does come and populates and then vanishes in a blink giving this Error. 
I have attached a screen shot of the error view. 

I am expecting some quick response.
Thanks. 

Ivan Hristov
Telerik team
 answered on 04 Jun 2018
4 answers
323 views
Hi,

In our client-server based application we use the stand-alone Telerik Report Designer tool to create the reports. We store the report definitions as XML (*.trxd) and distribute them to the client apps. This offers great flexibility in creating new on-the-fly reports which have no binary dependency with our application. Also it bypasses the need to compile reports so non-developers are able to create new or change existing reports.

We now need to provide globalization support. The help documentation states an approach to add globalization support to the reports but this seems to work only for code-based reports, not for XML. The Report Designer tool does not offer a "Localizable" property that can be used when creating code-based report definitions.

The best I can think of is to add specific tags in the report definition (e.g. %USERNAME%) and have custom language files. Since I will distribute the reports from the server we can preprocess the reports e.g. to replace text tags. Resx files are a bit restrictive in my scenario because this would create a binary dependency.

Would this be a good approach in my scenario? Or what alternatives would I have?

Regards,
Daniël
Nasko
Telerik team
 answered on 01 Jun 2018
2 answers
132 views
How can we implement WebServiceddatasource in standalone Telerik report? 

Also, I have gone through WebServiceDataSource Component I wasn't able to the Telerik.Reporting.WebServiceDataSource DLL or the corresponding NuGet package inside the application.
Nithin
Top achievements
Rank 1
 answered on 01 Jun 2018
1 answer
322 views
Under the topic 'How To: Create a Custom Parameter Editor' my understanding is that you can change the default editor into a dropdown. When I try the example given the report parameters section is not displayed on the report. What can be the reason for this?
Silviya
Telerik team
 answered on 01 Jun 2018
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?