SendEmail

0 Answers 145 Views
Actions DataSources Installation Programming Report Designer - Web
Tristan
Top achievements
Rank 1
Iron
Tristan asked on 06 May 2022, 01:58 PM | edited on 09 May 2022, 09:38 AM
Hello,
Im trying to implement the SendEmail function in my web app for Telerik Reporting.

My setup is like this:

I tried putting it in both the toolboxArea as global settings.
The Email button in the toolbar when previewing still isnt showing.
Does anyone knows what im doing wrong here?


I also implemented the sendmail message function as explained here: https://docs.telerik.com/reporting/using-reports-in-applications/host-the-report-engine-remotely/telerik-reporting-rest-services/implement-send-mail-message

Kind Regards,

Tristan
Neli
Telerik team
commented on 10 May 2022, 09:07 AM

Hi Tristan,

Currently, the report viewer's options are not exposed and for that reason, the  sendEmail: { enabled: true } setting in the initialization of the designer won't work. However, there is a workaround that you can apply:

1. Copy the telerikReportViewer-16.0.22.225.js file to your Scripts folder. The file can be found in the installation folder of Telerik Reporting:

C:\Program Files (x86)\Progress\Telerik Reporting R1 2022\Html5\ReportViewer\js

2. Comment the following lines in the file:

  //if (!viewerOptions.sendEmail || !viewerOptions.sendEmail.enabled) {
        //    var toolbarSendEmailItem = $("[data-selector='" + selector + "']").find("a[data-command='telerik_ReportViewer_toggleSendEmailDialog']").closest(".k-item ");
        //    toolbarSendEmailItem.hide();
        //    return;
        //}

3. In the page of the designer, reference the js file:

 <script src="./Scripts/telerikReportViewer-16.0.22.225.js"></script>

4. Add the implementation of the SendMailMessage in the ReportDesignerController.

I also voted for Set ReportViewer options in the WebReportDesigner feature request, so when there is an update on the status of the item, you will receive a notification. 

Please, let me know if I can help you further.

No answers yet. Maybe you can help?

Tags
Actions DataSources Installation Programming Report Designer - Web
Asked by
Tristan
Top achievements
Rank 1
Iron
Share this question
or