Hello
I use this way HTML5 Viewer in AngularJS project in my .NET4, AngularJS project to print telerik reports
the issue is that in some cases when I click print, I want to skip the report viewer screen and jump to print preview screen
is that possible ??
used code in view.html
$("#reportViewer1").telerik_ReportViewer({ error: function (e, args) { alert('Error from report directive:' + args); }, reportSource: { report: 'reportname', }, serviceUrl: '/api/reports/', viewMode: 'PRINT_PREVIEW', scaleMode: 'FIT_PAGE_WIDTH', scale: 1.0,
and used code in reportscontroller.cs
var reportsPath = HttpContext.Current.Server.MapPath("~/"); //Add resolver for trdx 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 ReportFileResolver(reportsPath) .AddFallbackResolver(new ReportTypeResolver()); //Setup the ReportServiceConfiguration configurationInstance = new ReportServiceConfiguration { HostAppId = "Html5AppAJS", Storage = new FileStorage(), ReportResolver = resolver, // ReportSharingTimeout = 0, // ClientSessionTimeout = 15, };
Thanks in advance