Telerik Forums
Reporting Forum
2 answers
142 views

Hi everyone,

I'm working with Telerik Report Designer, and I have a table inside a panel. The panel represents the entire page that gets printed. The table is bound to a JSON data source.

In my JSON data, I have several objects, and some of them have a value of 0.0 If two specific objects have a value of 0.0 I want to hide the panel (and therefore the entire page) to avoid printing out a table with no meaningful values.

The data source is linked to the table, not to the panel, so I am not sure how to make this condition work. I need to hide the panel based on the values within the data.

Does anyone have any idea how I can set up conditional formatting or report parameters to achieve this?

Thanks in advance!


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Oct 2024
1 answer
44 views

We are trying to create a user interface with UI for Blazor that allows users to view and choose parameter values for their reports without having to go into the report viewer. However, the complexity of some of the expressions used for things like display value, available value filtering, and default values pose a challenge to evaluating those parameters ourselves. Is there a way to programmatically evaluate those parameters for the above using the telerik reporting library so that we can display them in our UI?

 

We are using the Telerik.Reporting.Report object to get the parameter data, and have also tried instantiating a InstanceReportSource for the object as well but both have only given the expression for display value/available values/default values rather than the evaluated values.

Todor
Telerik team
 answered on 29 Oct 2024
1 answer
48 views

Hi anyone,

I have a problem with picture box, I put a url of a png file in picture box, but it always gives 403 error every time I when try to call renderReport function of ReportProcessor class.

Everything still works fine on Report designer, does anyone know how to fix this, i am using version 16.1.22.511.

Thank you.

Son

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Oct 2024
18 answers
1.7K+ views
Hi,

I am using Telerik Reporting Controls in my application.I have a requirement where i will be having more than one table in a dataset.
i need to bind the data of first table to header and second table data to body and third table data to footer.

can it be possible to do like that.if it is then can you please let me know regarding this.

Thanks & Regards,

Rajesh
Ivet
Telerik team
 answered on 24 Oct 2024
1 answer
62 views

Has anyone tried to append a pdf page when a report is generated or printed, is there any solution to this issue?

I have project in WinUI3 and I want to append a pre-existing pdf to the report, not in the footer but at the last page, is the there a way of achieving this without 3rd party libraries?

1 answer
72 views

Hi

Using telerik report in react, showing report in Report Viewer and all fine.

Now need to get the PDF (inline, not download) of this report from Report Viewer programmatically. (Not in backend). Is there is a way to get the PDF.

I can download PDF using viewer.current.commands.export.exec("PDF"); but i need to get pdf contents. (need to upload to azure blob)

 

Also when we export PDF manually, ReportViewer calls the CreateDocument endpoint  [HttpPost("clients/{clientID}/instances/{instanceID}/documents")] 

to get the document id. and then uses clientid, instanceid and documentid to get pdf.

In react how can we get the client id and instanceid from Report Viewer.

Thanks

 

Dimitar
Telerik team
 answered on 23 Oct 2024
1 answer
58 views

Hello all!

I have what feels like a very simple example of using 2 cascading parameters in a report. The first parameter is loaded with no issue but come time for the second, I get a "Response status code does not indicate success: 400 (Bad Request)".

I notice in the REST service call that it is passing hasChildParameters as false. I don't see an option to set that as true.

I've found when I run the download in designer with matching values that are expected in the parameter it retrieves without issue. This is purely a runtime issue.

Here are a few screenshots of what I have setup. Any advice is appreciated.

Controller Method

FromBody model object

BaseReportParameter

 

1 answer
57 views

Hello,

I have an WebAssembly blazor project and I am trying to display a report in a Telerik HTML5 ReportViewer Page. I am not even sure if what i'm trying to accomplish can be done. Can u give me some example/idea to process this one to be done, how I can display report byte to web viewer?

 

Any help or tips or direction will be apreciated

Thank you

Rezus

Dimitar
Telerik team
 answered on 21 Oct 2024
1 answer
57 views

hi,

    I want to display a report book with the .trbp suffix in the ReportViewer component of Telerik UI For Blazor, but when I assign the ReportSource, it prompts that it cannot be converted from Telerik.Reporting.UriReportSource to Telerik.ReportViewer.Blazor.ReportSourceOptions. Is there any specific case reference?

 

ReportViewer.razor code::
<ReportViewer ViewerId="rv1"
              ServiceUrl="API/Reports"
              ReportSource="@BookReportSource"
              Parameters="@(new ParametersOptions { Editors = new EditorsOptions { MultiSelect = EditorType.ComboBox, SingleSelect = EditorType.ComboBox } })"
              ScaleMode="@ScaleMode"
              ViewMode="@ViewMode"
              PageMode="PageMode.SinglePage" />

public object BookReportSource { get; set; } = new Telerik.Reporting.UriReportSource()
{
    Uri = $"{ReportParameters.ReportName}.trbp"
};

protected override Task OnParametersSetAsync()
{
    switch (ReportParameters.ReportName)
    {
        case nameof(Report.StaffCapitalisationRatioReport):
            BookReportSource.Parameters.Add("StartDate", ReportParameters.StartDate);
            BookReportSource.Parameters.Add("EndDate", ReportParameters.EndDate);
            BookReportSource.Parameters.Add("BusinessUnit", ReportParameters.BusinessUnit);
            BookReportSource.Parameters.Add("FormatDate", Convert.ToDateTime(ReportParameters.EndDate).ToString("yyyy / MMMM"));
            BookReportSource.Parameters.Add("StaffNo", ReportParameters.StaffNo);
            BookReportSource.Parameters.Add("NormalWeekdayHours", ReportParameters.NormalWeekdayHours);
            BookReportSource.Parameters.Add("NormalWeekendHours", ReportParameters.NormalWeekendHours);
            break;
    }

    return base.OnParametersSetAsync();
}



Dimitar
Telerik team
 answered on 17 Oct 2024
1 answer
33 views
I use a table to display my data, there maybe 2-3 pages, and I want to achieve the effect of cross-page calculations.

For example 
The first page has 10 rows
Then the total number of the first page is 10
The second page has 20 rows
Then the total number for the second page is 30

How should I design it? I want to display this total on PageFooter
Dimitar
Telerik team
 answered on 17 Oct 2024
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?