Telerik Forums
Reporting Forum
1 answer
104 views

Hello,

I need generate a report where the Table of content is on the second page of it, after a "front" page.

Please advise.

Thank you.

Domenico
Top achievements
Rank 1
Iron
 answered on 04 Aug 2022
1 answer
103 views

[Html5Viewer]

[PrintButton in Html5Viewer]

[Print Preview - when clicked the print button]

[Report.cshtml]

@{
    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: '@Html.Raw(ViewBag.PopReportFile)',
                    parameters: {
                         ...params...
                    }
                },
                // 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.PRINT_PREVIEW,

                // 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>

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

Hi, I have a question.

I want to show like PrintPreview screen, not like Html5Viewer screen.

The location, size, and font of each character are provided through the Report Parameter and are linked by DataBinding.

And, the words or number(like '400'), all of the same components are imageview, and the expression dialog states:

All of the same components are imageview, and the expression dialog states:

<svg>
<g>
<text font-size="25">
<tspan x="0%" y="20%" textLength="60%">TEST</tspan>		
</text>
</g>
</svg>

I change the viewMode to [viewMode: telerikReportViewer.ViewModes.PRINT_PREVIEW], or 

    var rv = $("#reportViewerLayout").data("telerik_ReportViewer");
    rv.commands.print.exec();

But nothing has changed in particularly.

How I can show the report screen like [Print Preview]?

Todor
Telerik team
 answered on 04 Aug 2022
0 answers
851 views

Hello.
Windows uses it as a Report RestApiServer
I changed my work environment to MacOS.
So when I tried to use it, I got the following message.

Unable to get report parameters. An error has occurred. Type: Telerik.Reporting.ReportSerialization.Current.ReportSerializable`1[Telerik.Reporting.Report]

As a result of testing with api/reports/forms,
The output is as follows:

[{"name":"PDF","localizedName":"Acrobat (PDF) file"},{"name":"CSV","localizedName":"CSV (comma delimited)"},{"name":"XLSX","localizedName":"Excel Worksheet"},{"name":"PPTX","localizedName":"PowerPoint Presentation"},{"name":"RTF","localizedName":"Rich Text Format"},{"name":"IMAGE","localizedName":"TIFF file"},{"name":"DOCX","localizedName":"Word Document"}]

 

https://docs.telerik.com/reporting/getting-started/installation/dot-net-core-support

Referring to the Deployment on macOS part of the above site, I installed it, but there was a problem during the installation process, or the part that worked in Windows is not currently working. I want you to tell me the solution.

WoorimartDEV
Top achievements
Rank 1
Iron
Iron
 asked on 04 Aug 2022
1 answer
428 views
Nuking my question, because I realized I needed to deep dive into grouping to understand how to implement.
Dimitar
Telerik team
 answered on 01 Aug 2022
1 answer
339 views

Hi, I am looking for documentation about how to log errors that occur within a report.

I'm working on an AspNet MVC implementation of Telerik.Reporting.Services.WebApi.ReportsControllerBase with a custom ReportSourceResolver. Reports are viewed with the Html.TelerikReporting().ReportViewer() htmlhelper.

All works well but I want to log error that can occur within the report itself. Is there any documentation for this or can you hint a direction?

Lance | Senior Manager Technical Support
Telerik team
 answered on 27 Jul 2022
1 answer
617 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
560 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.1K+ 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
607 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
203 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
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?