Telerik Forums
Reporting Forum
33 answers
1.0K+ views
Hello

I am trying to create an Invoice with columns for quantity, price and amount. It should also have a summary at the bottom of the page. The columns should have a border and stretch all the way down to the summary (see attached picture). Is there any way to say that a section should fill out the remaining space of a page?
So far I solved this by summarize the height of each section and calculate the remaining space on the page and setting the result to the height of a group footer (see the green area on the report). But this solution does not work when a textbox can grow since there seems to be no way to get the rendered height of a textbox.
Frank
Top achievements
Rank 1
Iron
 updated answer on 20 Mar 2024
1 answer
139 views

Hello Community,

On the Native Blazor Report Viewer Overview page, it is written that the current release of the Native Blazor Report Viewer component is missing the Event Binding functionality. We have software depending on events, specifically ClientEvents. Therefore, we haven't upgraded from the Blazor Report Viewer.

In Blazor Report Viewer we were able use ClientEvents to trigger javascript / typescript:

 <ReportViewer @ref="reportViewer"
               ViewerId="rv"
               ServiceUrl="/api/reports"
               ReportSource="@ReportSourceOptions()"
               ClientEvents="@(new ClientEventsOptions()
                 {
                     RenderingEnd = "reportViewerRenderingEnd" // JS Function
                 })"
 />
ClientEvents made it possible for us to synchronize scrolling in our GUI:



In our GUI, we have two sides. Left side contains of multiple rows of textboxes, and right side contains the report. We then use the JS "reportViewerRenderingEnd" function to synchronize both sides, using the bookmark-id. 

Anyone who knows if it is possible to synchronize the location of textboxes with the location in report viewer without using the ClientEvents on Native Blazor Report Viewer?

Thank you!
Momchil
Telerik team
 answered on 18 Mar 2024
1 answer
123 views

Compare between non-delete and delete two textbox, just have value difference.

------------original report code

<TextBox Width="1in" Height="0.7cm" Left="0cm" Top="0cm" Value="=AVG(Fields.Actual_downtime_50_last)/AVG(Fields.Actual_runtime_50_last)" Format="{0:P0}" Name="textBox36" StyleName="">

<TextBox Width="1in" Height="0.609cm" Left="0cm" Top="0cm" Value="=(Fields.Actual_downtime_50_last)/&#xD;&#xA;(Fields.Actual_runtime_50_last)" Format="{0:P0}" Name="textBox37" StyleName="">

-----------after deleting value

<TextBox Width="1in" Height="0.7cm" Left="0cm" Top="0cm" Format="{0:P0}" Name="textBox36" StyleName="">

<TextBox Width="1in" Height="0.7cm" Left="0cm" Top="0cm" Format="{0:P0}" Name="textBox36" StyleName="">

-----------------------------------

I want to know how to fix this, because the final value isn't long

 

Momchil
Telerik team
 answered on 15 Mar 2024
1 answer
118 views

In my PageHeader I can use the PageNumber function to display the PageNumber grouped by any staff like "= PageNumber('headerGroup', Fields.MyField)".
But when I try to use this Expression to Bind the Height of the PageHeaderSection, I got Null with the above Expression insteat of the expected PageNumber.

The Binding Code is like that:

Bindings.Add(new Binding("Height", "= IIF(PageNumber('headerGroup', Fields.MyField) = 1, '10cm', '4cm')"));
 

What am I doing wrong?

A Binding like

Bindings.Add(new Binding("Height", "= IIF(PageNumber = 1, '10cm', '4cm')"));

works well.

Thanks for your support.

Dimitar
Telerik team
 answered on 14 Mar 2024
1 answer
239 views

Hi,

I've created the REST reporting service and that is running. I'm trying to add Web Report Designer to Blazor WASM project but running into errors I can't solve.

https://docs.telerik.com/reporting/designing-reports/report-designer-tools/web-report-designer/how-to-set-up-in-blazor-application#adding-the-blazor-web-report-designer-component

Is there a demo Blazor WASM project that implements the Web Report Designer?

Thanks

Rob

Dimitar
Telerik team
 answered on 11 Mar 2024
1 answer
137 views

Hi All,

I am using the telerik reporting trial version in blazor. On the development machine everything works fine and report display.

But when i deploy to iis for testing, the report does not show.

Attached is an error from the console.

Kindly help.

Thank you

Momchil
Telerik team
 answered on 08 Mar 2024
1 answer
270 views

Hi to all,

I have an ASP .Net API ( NOT .NET Core ) web app and I want to connect to my database in web report designer through SQL Data Source in Report interface. My UI is ReactJS.

It works everything, I can save/load reports but I cannot add a valid SQL Data Source.

When I click SQL Data Source it gives me an error:

Error

t is not iterable


I tried to add a connection string in my Web.Config file 

 <add name="Telerik.Reporting.Examples.CSharp.Properties.Settings.TelerikConnectionString" 
connectionString="Data Source=<MY PRIVATE CONNECTION STRING>" 
providerName="System.Data.SqlClient"/>


But it doesn't work.

My code is 

  public class ReportDesignerController : ReportDesignerControllerBase
    {
        static ReportServiceConfiguration configurationInstance;
        static ReportDesignerServiceConfiguration designerConfigurationInstance;
        static ReportDesignerController()
        {
            //This is the folder that contains the report definitions
            //In this case this is the Reports folder
            var appPath = HttpContext.Current.Server.MapPath("~/");
            var reportsPath = Path.Combine(appPath, "Reports");
            //Add report source resolver for trdx/trdp report definitions,
            //then add resolver for class report definitions as fallback resolver;
            //finally create the resolver and use it in the ReportServiceConfiguration instance.
            var resolver = new UriReportSourceResolver(reportsPath);
            //Setup the ReportServiceConfiguration
            configurationInstance = new ReportServiceConfiguration
            {
                HostAppId = "Html5App",
                Storage = new FileStorage(),
                ReportSourceResolver = resolver,
                ReportSharingTimeout = 1000,
                ClientSessionTimeout = 20,
            };
            designerConfigurationInstance = new ReportDesignerServiceConfiguration
            {
                DefinitionStorage = new FileDefinitionStorage(reportsPath),
                SettingsStorage = new FileSettingsStorage(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Telerik Reporting"))
            };
        }
        public ReportDesignerController()
        {
            //Initialize the service configuration
            this.ReportServiceConfiguration = configurationInstance;
            this.ReportDesignerServiceConfiguration = designerConfigurationInstance;
             
        }
    }

Momchil
Telerik team
 answered on 05 Mar 2024
4 answers
102 views

I have a report designed for a continuous roll printer using a 4 inch wide paper roll.  The report is 6 inches "wide", but is printed LANDSCAPE, so the axis are flipped, meaning the printed "width" ends up as 4 inches (good) and the printed "height" is 6 inches on the continuous axis.  So far so good, Telerik renders the report and it prints, HOWEVER; I want a page footer section that prints some information at the "bottom" of the label.  When in continuous roll mode Telerik is not honoring the page footer and instead prints this immediately after the detail like a group footer, however; there is no reason why it should not honor this because the report is LANDSCAPE so even on continuous roll paper the footer can be measured against the fixed 4in "width" of the label.  I have attached an image showing what Telerik is doing and what the expected output is.

This appears to me to be a bug in Telerik reporting.

The expected behavior is that the page footer would work normally if the report is landscape because in this case the fixed label width is actually the "height" (4in) of the report and the variable/continuous axis is the "width" (6in).

Any suggestions?

- Albert Boettger

AlbertBoettger
Top achievements
Rank 1
Iron
 answered on 04 Mar 2024
1 answer
658 views

When we try to process a report from a .NET 6 application, there is an exception
 "BinaryFormatter serialization and deserialization are disabled within this application. See https://aka.ms/binaryformatter for more information."
Version used: Telerik R1 2023 SP1

On Telerik forums, there is a workaround to suppress this error, see below:
https://www.telerik.com/forums/aspnetcore-5-support
https://docs.telerik.com/reporting/knowledge-base/binaryformatter-exception-after-upgrade-to-net5
However, based on this post the BinaryFormatter is necessary for serialization and not having it will cause issues with image generation.
Please advise if there is a way to generate reports with images from a .NET 6 app without using EnableUnsafeBinaryFormatterSerialization.

Ivan Ivanov
Telerik team
 answered on 01 Mar 2024
1 answer
231 views

Hi,

https://www.telerik.com/blogs/telerik-reporting-modern-ui-report-viewer-demo

I have followed the steps in this example and created a Reporting rest service and added the report viewer to my Blazor app. The rest service is running and I can display a report in the viewer.

I'm struggling though to retrieve the list of reports for the drop down list.  Should the rest service provide a list of files available from the endpoint "files" ?

ReportList = await HttpClient.GetFromJsonAsync<List<string>>("/api/files");

I'm currenly get a 404 error in the on intialazied  method.

Thanks

Rob

 

Momchil
Telerik team
 answered on 29 Feb 2024
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?