Telerik Forums
Reporting Forum
1 answer
710 views

Hello.

Reporting3.PNG is Telerik Report Designer Screen,

Reporting1.PNG is Telerik Report Viewer Screen,

Reporting2.PNG is Telerik Report Viewer Print Screen,

I'm going to put all the components in the outermost rim. Running the Telerik Report file, working in the Telerik Report Designer, all components are within the outermost border, but on the Telerik Report Viewer and print screen, the number 3000 is located in different locations and is also out of the border.
All components have values of location (ex. 250px, 34px) and size, and values of CanGrow and CanShrink are False. Multiline is also false.

And then, this is my Html5Viewer

        

@{
    ViewData["Title"] = "Label";
}
<style>
    #reportViewerLayout {
        position: absolute;
        left: 0px;
        right: 0px;
        top: 0px;
        bottom: 0px;
        overflow: hidden;
        font-family: Verdana, Arial;

    }
</style>
<script type="text/javascript">
    $(document).ready(function () {
        $("#reportViewerLayout")
            .telerik_ReportViewer({
                // The URL of the service which will serve reports.
                // The URL corresponds to the name of the controller class (ReportsController).
                // For more information on how to configure the service please check http://www.telerik.com/help/reporting/telerik-reporting-rest-conception.html.
                serviceUrl: "/api/reports",

                // The URL for custom report viewer template. The template can be edited -
                // new functionalities can be added and unneeded ones can be removed.
                // For more information please check http://www.telerik.com/help/reporting/html5-report-viewer-templates.html.
                // templateUrl: '/ReportViewer/templates/telerikReportViewerTemplate-16.1.22.511.html',

                //ReportSource - report description
                reportSource: {
                    // The report can be set to a report file name (trdx report definition)
                    // or CLR type name (report class definition).
                    report: 'Label.trdp',
                    parameters: {
                    }
                },
                // Specifies whether the viewer is in interactive or print preview mode.
                // PRINT_PREVIEW - Displays the paginated report as if it is printed on paper. Interactivity is not enabled.
                // INTERACTIVE - Displays the report in its original width and height without paging. Additionally interactivity is enabled.
                viewMode: telerikReportViewer.ViewModes.INTERACTIVE,

                // Sets the scale mode of the viewer.
                // Three modes exist currently:
                // FIT_PAGE - The whole report will fit on the page (will zoom in or out), regardless of its width and height.
                // FIT_PAGE_WIDTH - The report will be zoomed in or out so that the width of the screen and the width of the report match.
                // SPECIFIC - Uses the scale to zoom in and out the report.
                scaleMode: telerikReportViewer.ScaleModes.SPECIFIC,

                // Zoom in and out the report using the scale
                // 1.0 is equal to 100%, i.e. the original size of the report
                scale: 1.0,
                enableAccessibility: false,

                //If set to true shows the Send Mail Message toolbar button
                sendEmail: { enabled: false },
            });
    });
</script>

 

1. I wonder why the values of telerik designer and viewer are different, and the values of viewer and print are different.
2. I want all the components in the attached picture to be in a specific location within the outermost frame, as I worked on the designer.

Please help me.

Best regards.

Todor
Telerik team
 answered on 27 Jul 2022
2 answers
719 views

Hi, I want to stretch text in textbox.

Not multiline, no padding, just fill inside which length of the textbox  value

But, set textbox properties

Multiline: False

CanGrow: False

CanShrink: True

Docking: None

and then, make border to textbox

It looks like picture.

How I can stretch vertical in TextBox like this?

Ivan Hristov
Telerik team
 answered on 25 Jul 2022
1 answer
1.2K+ views

I am trying to upgrade an ASP.Net MVC (.net framework 4.6.1) application from Telerik Reporting R1 2020 to R1 2022 and can't even get the viewer to display.  The error on screen says

Cannot access the Reporting REST service. (serviceUrl = '/api/reportsapi/'). Make sure the service address is correct and enable CORS if needed. (https://enable-cors.org)

When I open the browser developer tools I see the error has occurred on the call to api/reportsapi/version and the exception message is:

Multiple actions were found that match the request: \r\nFormats on type FWT.MVC.ReportsAPIController

Any idea where to even begin looking?  The prior version worked flawlessly.  We do have a custom report resolver because we change the connection string based on the tenant ID of the logged in user, but I have upgraded that.


Bob
Top achievements
Rank 1
Iron
 updated answer on 22 Jul 2022
0 answers
695 views

 am trying to upgrade an ASP.Net MVC (.net framework 4.6.1) application from Telerik Reporting R1 2018 to R2 2022 and can't even get the viewer to display.  The error on screen says

Cannot access the Reporting REST service. (serviceUrl = '/api/reportsapi/'). Make sure the service address is correct and enable CORS if needed. (https://enable-cors.org)

When I open the browser developer tools I see the error has occurred on the call to api/reportsapi/version and the exception message is:

Multiple actions were found that match the request: System.Net.Http.HttpResponseMessage GetDocumentFormats() no tipo Telerik.Reporting.Services.WebApi.ReportsControllerBase System.Net.Http.HttpResponseMessage GetClientsSessionTimeoutSeconds() no tipo Telerik.Reporting.Services.WebApi.ReportsControllerBase System.Net.Http.HttpResponseMessage GetVersion() no tipo Telerik.Reporting.Services.WebApi.ReportsControllerBase</ExceptionMessage>

Any idea where to even begin looking?  The prior version worked flawlessly.  We do have a custom report resolver because we change the connection string based on the tenant ID of the logged in user, but I have upgraded that.

Clovis
Top achievements
Rank 1
 asked on 22 Jul 2022
1 answer
275 views

Hi,

I'm trying to produce PDF reports that is accessible. Its is required that we use Heading Level Tags to comply with accessibility requirements.

Is there a way to tag Textbox elements with Heading Level Tags ?

Regards,

Michael

MOQdigital

 

 

 

 

 

Todor
Telerik team
 answered on 22 Jul 2022
0 answers
100 views

Hi all,

Some times we are getting above attached errors when generating reports. after pressing refresh button the report will load correctly. we are using .net 6 app to show the report viewer.

 

Are there any solutions to fix my issue. If any one want more information please comment below..
Thank you

 

Mail
Top achievements
Rank 1
 updated question on 21 Jul 2022
1 answer
214 views

Hi guys,

is it possible to automatically refresh the Report Preview, after a user changed the parameter?
In one of my reports I have an Parameter. The value of it is part of the report.
Currently if I change the value, I have to click the filter symbol (hide/show parameters) to refresh the report and show the value.

Is it possible to refresh the report on value change?
Or at least if the click return?

 

Greetings Benedikt

Benedikt
Top achievements
Rank 4
Iron
Iron
Iron
 answered on 20 Jul 2022
1 answer
364 views

I am using ABP 4.4.2 version along with .Net 5. This is an API that is being consumed by a javascript based frontend. Now I need to incorporate Telerik Reporting in my application. I am trying to follow the steps mentioned in the following url - https://docs.telerik.com/reporting/designing-reports/report-designer-tools/web-report-designer/how-to-set-up-in-.net-5-and-.net-core-3.1-applications

Now this documentation suggests to use a base controller class called ReportDesignerControllerBase.

 

 

And on the other hand, it seems ABP requires AbpController base class to be used in every controller.

This is where I am getting little confused on how to incorporate Telerik Reporting in the ABP application.

I also tried using ITransientDependency interface as mentioned in some of the older posts.

But nothing seem to work.

I would really appreciate if anyone can guide me on this.

Todor
Telerik team
 updated answer on 20 Jul 2022
1 answer
607 views
Sends barcode parameters to the file created by the designer.
The encoder of the bar code is set to Code 128.
Refer to the telerik.report and the value is
ex) (21)123456(10)LOT01(11)220713 => "\u00F721123456\u00F710AB00\u00F7220713"
I send it like this.
But it's different from the shape of the barcode label I have.

https://www.keyence.com/ss/products/auto_id/codereader/basic/code128.jsp
I referred to this site, but I didn't use the Start Code (a,b,c) ? Check Digit ? Stop Code ? because I couldn't understand it.

If anyone has used GS1-128 before, I would like to ask for your advice.
Todor
Telerik team
 answered on 18 Jul 2022
1 answer
501 views

We want to show company logo in the picturebox element. Company logo file path can be programmatically changed. For this purpose, we created CompanyLogo parameter in the report and the picturebox has binding with this parameter's value to set file path to the picturebox's value. Sometimes, company can be without logo. If company doesn't have logo, we want the picturebox to show nothing.

Problem here is if we bind the picturebox with the report parameter, it shows an error if the file path doesn't exist or empty:

  

If the parameter's value is empty then the picturebox show empty space, instead of the error. As an example, if you remove binding and keep picturebox's value blank then it will show empty space.

Any solution or workaround for this problem?

Todor
Telerik team
 answered on 18 Jul 2022
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?