Telerik Forums
Reporting Forum
3 answers
96 views
I am using the Telerik.Reporting.Map control to build some functionality in the map. What I'd like to achieve is some labels on the left top, left center and left bottom. Whenever I do that, the titles do not sit in 1 line. 

How can I align them so they are on 1 line?
Silviya
Telerik team
 answered on 08 Jun 2018
8 answers
2.0K+ views

Following these guide: 

https://www.telerik.com/blogs/telerik-reporting-and-aspnet-core

https://docs.telerik.com/reporting/html5-report-viewer-asp-net-core-2

to create a REST service for Telerik Report, but whatever I do, I have always get this error:

Am I missing something?

 

 

 

 

 

Todor
Telerik team
 answered on 08 Jun 2018
1 answer
76 views
I have a problem watermarks.
I create my project Telerik Reporting with Winform after build my project by debug or release when i run .exe file in folder bin at my computer i not have watermark but i copy to run other computer is have watermark
T
Top achievements
Rank 1
 answered on 08 Jun 2018
2 answers
127 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
312 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
467 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
107 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
85 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
439 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
137 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
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?