diff --git a/Sending a Report by Email/Controllers/ViewerController.cs b/Sending a Report by Email/Controllers/ViewerController.cs index 1189b50..12ba5fc 100644 --- a/Sending a Report by Email/Controllers/ViewerController.cs +++ b/Sending a Report by Email/Controllers/ViewerController.cs @@ -28,11 +28,15 @@ public IActionResult InitViewer() { var requestParams = StiAngularViewer.GetRequestParams(this); - var options = new StiAngularViewerOptions(); + StiAngularViewerOptions options = new StiAngularViewerOptions(); options.Actions.GetReport = "GetReport"; + options.Actions.EmailReport = "EmailReport"; + options.Actions.ViewerEvent = "ViewerEvent"; + options.Appearance.ScrollbarsMode = true; + options.Toolbar.ShowSendEmailButton = true; return StiAngularViewer.ViewerDataResult(requestParams, options); diff --git a/Sending a Report by Email/Pages/Error.cshtml.cs b/Sending a Report by Email/Pages/Error.cshtml.cs index 39358c9..c3951ab 100644 --- a/Sending a Report by Email/Pages/Error.cshtml.cs +++ b/Sending a Report by Email/Pages/Error.cshtml.cs @@ -17,6 +17,7 @@ public class ErrorModel : PageModel public ErrorModel(ILogger logger) { _logger = logger; + } public string RequestId { get; set; } diff --git a/Using API Methods/Controllers/ViewerController.cs b/Using API Methods/Controllers/ViewerController.cs index 46d8516..eeb690d 100644 --- a/Using API Methods/Controllers/ViewerController.cs +++ b/Using API Methods/Controllers/ViewerController.cs @@ -28,7 +28,7 @@ public IActionResult InitViewer() { var requestParams = StiAngularViewer.GetRequestParams(this); - var options = new StiAngularViewerOptions(); + StiAngularViewerOptions options = new StiAngularViewerOptions(); options.Actions.GetReport = "GetReport"; options.Actions.ViewerEvent = "ViewerEvent"; options.Appearance.ScrollbarsMode = true; diff --git a/Using Designer Events/Controllers/DesignerController.cs b/Using Designer Events/Controllers/DesignerController.cs index 14efaa6..0eed863 100644 --- a/Using Designer Events/Controllers/DesignerController.cs +++ b/Using Designer Events/Controllers/DesignerController.cs @@ -30,7 +30,7 @@ public IActionResult Get() var requestParams = StiAngularDesigner.GetRequestParams(this); if (requestParams.Action == StiAction.Undefined) { - var options = new StiAngularDesignerOptions(); + StiAngularDesignerOptions options = new StiAngularDesignerOptions(); options.Height = Unit.Percentage(100); return StiAngularDesigner.DesignerDataResult(requestParams, options); }