Telerik Forums
Reporting Forum
1 answer
208 views

I'm trying to implement the REST Custom Report Source Resolver in a .net core web api. But the reports are not showing even the URL is not working. I have used a middleware to connect this to the application. Bellow you can see the regarding. cods.

 

middleware class

public class TelerikReportingMiddleware
    {
        private readonly RequestDelegate _next;

        public TelerikReportingMiddleware(RequestDelegate next)
        {
            _next = next;
        }

        public async Task Invoke(HttpContext context, IAPIService aPIService)
        {
            string[] path = !string.IsNullOrEmpty(context.Request.Path.Value) ? context.Request.Path.Value.Split("/") : new string[4];

            if (path.Length > 2 && path[2] != null && path[2].Equals("telerikreports", StringComparison.CurrentCultureIgnoreCase))
            {
                if (context.Request.RouteValues["controller"] == null)
                {
                    context.Request.RouteValues["controller"] = path[2];
                }
                if (context.Request.RouteValues["action"] == null)
                {
                    context.Request.RouteValues["action"] = path[3];
                }

                if (!context.Request.Headers.ContainsKey("IntegrationID"))
                {
                    var appId = "1";
                    context.Request.Headers.Add("IntegrationID", appId);
                }
            }

            await _next(context);
        }

        private async Task ReturnErrorResponse(HttpContext context)
        {
            context.Response.ContentType = "application/json";
            context.Response.StatusCode = (int)HttpStatusCode.BadRequest;
            await context.Response.WriteAsJsonAsync("Bad Request: Integration Not Defined, " +
                "Request ID Sould be defined in the Header section of the request");
        }
    }

 

Report Resolver class

 

public class BLReportResolver : IReportResolver
    {
        private readonly string _serverPath;

        public BLReportResolver()
        {
            _serverPath = Path.Combine(Directory.GetCurrentDirectory(), "TelerikReports");
        }

        public ReportSource Resolve(string reportId)
        {
            try
            {
                /* get path to report */
                var sourceReportSource = new UriReportSource { Uri = Path.Combine(_serverPath, reportId) };

                //retrieve an instance of the report     
                var reportPackager = new ReportPackager();
                using (var sourceStream = File.OpenRead(sourceReportSource.Uri))
                {
                    var report = (Report)reportPackager.UnpackageDocument(sourceStream);

                    var reportInstance = new InstanceReportSource
                    {
                        ReportDocument = report
                    };

                    return new InstanceReportSource { ReportDocument = reportInstance.ReportDocument };
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                return null;
            }
        }
    }

 

controller class

 

[Route("api/[controller]")]
    [ApiController]
    public class TelerikReportsController : ReportsControllerBase
    {

        static readonly ReportServiceConfiguration configurationInstance =
            new ReportServiceConfiguration
            {
                HostAppId = "TelerikRESTReports",
                Storage = new FileStorage(),
                ReportResolver = new BLReportResolver(),
                ReportSourceResolver = new UriReportSourceResolver(Path.GetFullPath("~/TelerikReports"))
            };

        public TelerikReportsController()
        {
            this.ReportServiceConfiguration = configurationInstance;

        }
    }

 

what can be the issue?

        
1 answer
175 views

When using the WPF report viewer the server returns a 404 with the following error: 

Message: Resource with name 'tooltips-document' not found.	
Exception type: Telerik.Reporting.Services.Engine.ResourceNotFoundException	
Failed method: Telerik.Reporting.Services.Engine.DocumentResources.GetResource	
Call Stack:
Telerik.Reporting.Services.Engine.ResourceNotFoundException:
   at Telerik.Reporting.Services.Engine.DocumentResources.GetResource (Telerik.Reporting, Version=16.1.22.622, Culture=neutral, PublicKeyToken=a9d7983dfcc261be)
   at Telerik.Reporting.Services.Engine.ReportEngine.GetResource (Telerik.Reporting, Version=16.1.22.622, Culture=neutral, PublicKeyToken=a9d7983dfcc261be)
   at Telerik.Reporting.Services.WebApi.ReportsControllerBase.GetResource (Telerik.Reporting.Services.WebApi, Version=16.1.22.622, Culture=neutral, PublicKeyToken=a9d7983dfcc261be)
   at lambda_method (Anonymously Hosted DynamicMethods Assembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null)
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor+<>c__DisplayClass6_2.<GetExecutor>b__2 (System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor+ActionExecutor.Execute (System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync (System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Web.Http.Controllers.ApiControllerActionInvoker+<InvokeActionAsyncCore>d__1.MoveNext (System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Web.Http.Filters.ActionFilterAttribute+<CallOnActionExecutedAsync>d__6.MoveNext (System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Web.Http.Filters.ActionFilterAttribute+<CallOnActionExecutedAsync>d__6.MoveNext (System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Web.Http.Filters.ActionFilterAttribute+<ExecuteActionFilterAsyncCore>d__5.MoveNext (System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Web.Http.Controllers.ActionFilterResult+<ExecuteAsync>d__5.MoveNext (System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Web.Http.Filters.AuthorizationFilterAttribute+<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext (System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Web.Http.Controllers.ExceptionFilterResult+<ExecuteAsync>d__6.MoveNext (System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)

URL: https://xxxx/api/reports/clients/a6d7fc8eb5a/instances/262c6bd8320/documents/09a7b522d8a61733198a47/resources/tooltips-document

Note the report still renders but the exception is captured and logged on every report request.

Dimitar
Telerik team
 answered on 06 Mar 2023
1 answer
164 views

Telerik Reporting is crashing with "Exception message: Font family 'Arial' has no available style"

This is an MVC asp.net framework 4 application using  Telerik Reporting 12.1.18.620 and running in server 2012 via IIS 8.0.9200.16384

There is another app pool on the same server and we installed the same application for a test, and it does not exhibit this issue.

The font does appear to be installed, if we check the Windows fonts.

We have recycled the app pool with this app and the error persists.  We have not rebooted the machine.  We have not re-installed the problematic app yet.

Is there a troubleshooting procedure or steps to correct this issue?

 

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 2/28/2023 6:49:14 PM 
Event time (UTC): 2/28/2023 11:49:14 PM 
Event ID: d6a7d520b6674898aff8ca5c2fdedabd 
Event sequence: 21426 
Event occurrence: 76 
Event detail code: 0 

Application information: 
    Application domain: /LM/W3SVC/2/ROOT-1-133220978654400636 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: C:\inetpub\wwwroot\xxx\ 
    Machine name: PSE 

Process information: 
    Process ID: 12616 
    Process name: w3wp.exe 
    Account name: IIS APPPOOL\xxx

Exception information: 
    Exception type: ArgumentException 
    Exception message: Font family 'Arial' has no available styles
   at Telerik.Reporting.Drawing.FontExtensions.GetDefaultFontStyle(FontFamily fontFamily) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing.Common\FontExtensions.cs:line 108
   at Telerik.Reporting.Drawing.FontExtensions.GetStyle(IFont font) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing.Common\FontExtensions.cs:line 37
   at Telerik.Reporting.Drawing.FontExtensions.ToGdiFont(IFont font) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing.Common\FontExtensions.cs:line 58
   at Telerik.Reporting.Processing.GdiFontInfoCache.CreateValue(IFont font) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\GdiFontCache.cs:line 54
   at Telerik.Reporting.Processing.GdiFontCache`1.GetValue(IFont font) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\GdiFontCache.cs:line 91
   at Telerik.Reporting.Processing.MeasureContext.CalculateLineHeight(IFont font) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\MeasureContext.cs:line 99
   at Telerik.Reporting.Processing.TextRenderer.MeasureText(IMeasureContext context, String text, IFont font, RectangleF layoutRectangle, TextFormat textFormat, Boolean multiline, Int32& charactersFitted) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\TextRenderer.cs:line 147
   at Telerik.Reporting.Processing.TextBoxUtil.MeasureTextContainer(ITextContainer textContainer, RectangleF layoutBounds, IMeasureContext context) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\TextBoxUtil.cs:line 95
   at Telerik.Reporting.Processing.TextBox.MeasureItem(IMeasureContext context, SizeLU availableClientSize, Boolean canGrow) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\TextBox.cs:line 204
   at Telerik.Reporting.Processing.TextBox.MeasureItem(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\TextBox.cs:line 134
   at Telerik.Reporting.Processing.TextBox.MeasureContent(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\TextBox.cs:line 125
   at Telerik.Reporting.Processing.LayoutElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\LayoutElement.cs:line 125
   at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\VisualElement.cs:line 343
   at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\ProcessingElement.Layout.cs:line 13
   at Telerik.Reporting.Processing.AbsolutePositionLayout.MeasureChildItems(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\AbsolutePositionLayout.cs:line 296
   at Telerik.Reporting.Processing.AbsolutePositionLayout.MeasureContent(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\AbsolutePositionLayout.cs:line 43
   at Telerik.Reporting.Processing.Panel.MeasureContent(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\Panel.cs:line 113
   at Telerik.Reporting.Processing.LayoutElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\LayoutElement.cs:line 125
   at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\VisualElement.cs:line 343
   at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\ProcessingElement.Layout.cs:line 13
   at Telerik.Reporting.Processing.AbsolutePositionLayout.MeasureChildItems(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\AbsolutePositionLayout.cs:line 296
   at Telerik.Reporting.Processing.AbsolutePositionLayout.MeasureContent(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\AbsolutePositionLayout.cs:line 43
   at Telerik.Reporting.Processing.ReportSectionBase.MeasureContent(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\ReportSectionBase.cs:line 165
   at Telerik.Reporting.Processing.LayoutElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\LayoutElement.cs:line 125
   at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\VisualElement.cs:line 343
   at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\ProcessingElement.Layout.cs:line 13
   at Telerik.Reporting.Processing.StackLayout.MeasureContent(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\StackLayout.cs:line 27
   at Telerik.Reporting.Processing.Group.MeasureContent(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\Group.cs:line 204
   at Telerik.Reporting.Processing.LayoutElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\LayoutElement.cs:line 125
   at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\VisualElement.cs:line 343
   at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\ProcessingElement.Layout.cs:line 13
   at Telerik.Reporting.Processing.StackLayout.MeasureContent(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\StackLayout.cs:line 27
   at Telerik.Reporting.Processing.Report.MeasureContent(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\Report.Layout.cs:line 41
   at Telerik.Reporting.Processing.LayoutElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\LayoutElement.cs:line 125
   at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBu



Request information: 
    Request URL: https://xxx.com:443/Telerik.ReportViewer.axd?instanceID=db033a11a4b84ec385f5c117de2d43d5&optype=Report&PageIndex=0&RenderID=1759b172aa0945aa858db8bf20357481&RenderingFormat=HTML5Interactive 
    Request path: /Telerik.ReportViewer.axd 
    User host address: 107.129.213.166 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: IIS APPPOOL\xxx

Thread information: 
    Thread ID: 56 
    Thread account name: IIS APPPOOL\xxx
    Is impersonating: False 
    Stack trace:    at Telerik.Reporting.Drawing.FontExtensions.GetDefaultFontStyle(FontFamily fontFamily) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing.Common\FontExtensions.cs:line 108
   at Telerik.Reporting.Drawing.FontExtensions.GetStyle(IFont font) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing.Common\FontExtensions.cs:line 37
   at Telerik.Reporting.Drawing.FontExtensions.ToGdiFont(IFont font) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing.Common\FontExtensions.cs:line 58
   at Telerik.Reporting.Processing.GdiFontInfoCache.CreateValue(IFont font) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\GdiFontCache.cs:line 54
   at Telerik.Reporting.Processing.GdiFontCache`1.GetValue(IFont font) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\GdiFontCache.cs:line 91
   at Telerik.Reporting.Processing.MeasureContext.CalculateLineHeight(IFont font) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\MeasureContext.cs:line 99
   at Telerik.Reporting.Processing.TextRenderer.MeasureText(IMeasureContext context, String text, IFont font, RectangleF layoutRectangle, TextFormat textFormat, Boolean multiline, Int32& charactersFitted) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\TextRenderer.cs:line 147
   at Telerik.Reporting.Processing.TextBoxUtil.MeasureTextContainer(ITextContainer textContainer, RectangleF layoutBounds, IMeasureContext context) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\TextBoxUtil.cs:line 95
   at Telerik.Reporting.Processing.TextBox.MeasureItem(IMeasureContext context, SizeLU availableClientSize, Boolean canGrow) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\TextBox.cs:line 204
   at Telerik.Reporting.Processing.TextBox.MeasureItem(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\TextBox.cs:line 134
   at Telerik.Reporting.Processing.TextBox.MeasureContent(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\TextBox.cs:line 125
   at Telerik.Reporting.Processing.LayoutElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\LayoutElement.cs:line 125
   at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\VisualElement.cs:line 343
   at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\ProcessingElement.Layout.cs:line 13
   at Telerik.Reporting.Processing.AbsolutePositionLayout.MeasureChildItems(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\AbsolutePositionLayout.cs:line 296
   at Telerik.Reporting.Processing.AbsolutePositionLayout.MeasureContent(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\AbsolutePositionLayout.cs:line 43
   at Telerik.Reporting.Processing.Panel.MeasureContent(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\Panel.cs:line 113
   at Telerik.Reporting.Processing.LayoutElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\LayoutElement.cs:line 125
   at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\VisualElement.cs:line 343
   at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\ProcessingElement.Layout.cs:line 13
   at Telerik.Reporting.Processing.AbsolutePositionLayout.MeasureChildItems(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\AbsolutePositionLayout.cs:line 296
   at Telerik.Reporting.Processing.AbsolutePositionLayout.MeasureContent(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\AbsolutePositionLayout.cs:line 43
   at Telerik.Reporting.Processing.ReportSectionBase.MeasureContent(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\ReportSectionBase.cs:line 165
   at Telerik.Reporting.Processing.LayoutElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\LayoutElement.cs:line 125
   at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\VisualElement.cs:line 343
   at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\ProcessingElement.Layout.cs:line 13
   at Telerik.Reporting.Processing.StackLayout.MeasureContent(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\StackLayout.cs:line 27
   at Telerik.Reporting.Processing.Group.MeasureContent(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\Group.cs:line 204
   at Telerik.Reporting.Processing.LayoutElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\LayoutElement.cs:line 125
   at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\VisualElement.cs:line 343
   at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\ProcessingElement.Layout.cs:line 13
   at Telerik.Reporting.Processing.StackLayout.MeasureContent(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\StackLayout.cs:line 27
   at Telerik.Reporting.Processing.Report.MeasureContent(IMeasureContext context, SizeLU availableClientSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\Report.Layout.cs:line 41
   at Telerik.Reporting.Processing.LayoutElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\LayoutElement.cs:line 125
   at Telerik.Reporting.Processing.VisualElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\VisualElement.cs:line 343
   at Telerik.Reporting.Processing.ProcessingElement.MeasureCore(IMeasureContext context, SizeLU availableSize) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\ProcessingElement.Layout.cs:line 13
   at Telerik.Reporting.Processing.LayoutElement.MeasureElement(LayoutElement elementToMeasure, SizeLU availableSize, IMeasureContext context) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\LayoutElement.cs:line 93
   at Telerik.Reporting.Processing.LayoutElement.MeasureElement(LayoutElement elementToMeasure, IMeasureContext context) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing\LayoutElement.cs:line 80
   at Telerik.Reporting.Html5Rendering.Html5ReportInteractive.MeasureRootCore(LayoutElement root, PageSettings pageSettings) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Html5Rendering\Html5ReportInteractive.cs:line 23
   at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(LayoutElement root, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback, PageSettings pageSettings) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.BaseRendering\RenderingExtensionBase.cs:line 94
   at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.BaseRendering\RenderingExtensionBase.cs:line 43
   at Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 processingReports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing.ReportProcessor\ReportProcessor.RenderReport.cs:line 236
   at Telerik.Reporting.Processing.ReportProcessor.RenderCore(String format, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.Reporting.Processing.ReportProcessor\ReportProcessor.RenderReport.cs:line 157
   at Telerik.ReportViewer.WebForms.ReportPageOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, IRenderingContext renderingContext) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.ReportViewer.WebForms\ReportPageOperation.cs:line 54
   at Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride() in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.ReportViewer.WebForms\ReportRenderOperation.cs:line 66
   at Telerik.ReportViewer.WebForms.ReportPageOperation.PerformOperationOverride() in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.ReportViewer.WebForms\ReportPageOperation.cs:line 134
   at Telerik.ReportViewer.WebForms.HandlerOperation.PerformOperation(HttpContext context, ICacheManager cacheManager) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.ReportViewer.WebForms\HandlerOperation.cs:line 47
   at Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext context) in c:\temp\reporting\RBuild-31962\Reporting_Build\Source\Code\Telerik.ReportViewer.WebForms\HttpHandler.cs:line 190
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Custom event details: 

        
Chris
Top achievements
Rank 1
Iron
Iron
 answered on 01 Mar 2023
1 answer
399 views

I have tried to implement a web report designer server and i have successfully implemented using  nuget package.  Then i tried to use signed dll files to replace nuget package. I imported "Telerik.WebReportDesigner.Services.dll" and "Telerik.Reporting.Data.Schema.Provider.dll" two dll files and it gives the report designer, but reports are not loading. It keeps showing "An error has occurred. Could not load file or assembly 'Telerik.Reporting.JsonSerialization, Version=17.0.23.118, Culture=neutral, PublicKeyToken=a9d7983dfcc261be'. The system cannot find the file specified." error. What can be the reason for this. Do you have any solution?

 

Dimitar
Telerik team
 answered on 01 Mar 2023
4 answers
1.7K+ views

Hi mates,

 I have a dataset in a telerik report. The dataset returns a time column. I would like to use the Format function to show it in hh:mm format. If I use Format('{0:hh:mm}', Fields.CreationTime), there is an exception. Currently, I'm using a "manual" transformation, using Fields.CreationTime.Hours + ":" + Fields.CreationTime.Minutes but this is not a solution for me because if the CreationTime is 12:00, the report shows 12:0. I would like to use the Format function OR show the minutes using two digits. How could I resolve my issue, please?

 Thanks a lot in advance.

 Cheers.

David Ortega

Brajalal
Top achievements
Rank 1
Iron
 answered on 28 Feb 2023
1 answer
510 views

I implemented Telerik report viewer in Blazor Hybrid. After viewing the report, I wanted to print that report in the windows and android platforms. With windows build, it works perfectly. but in the android platform it is not working well. After i clicked it redirect to the server URL and download the report as a PDF using browser. Is there any way to print it without downloading it in android?

  
Dimitar
Telerik team
 answered on 27 Feb 2023
2 answers
2.0K+ views

We're using Azure Reids Cache for our report storage provider. Long running reports result in this error: 
One or more errors occurred.
Timeout performing SET (5000ms), next: SET DispatchAnywhere3Reports\16.1.22.622\Is\948f13fe22c\Rs\6b25108b8df\Ds\6faa346e5ae\R\page30, inst: 108, qu: 0, qs: 0, aw: False, bw: SpinningDown, rs: ReadAsync, ws: Idle, in: 0, serverEndpoint: *********************, mc: 1/1/0, mgr: 7 of 10 available, clientName: WS039(SE.Redis-v2.6.48.48654), IOCP: (Busy=0,Free=1000,Min=8,Max=1000), WORKER: (Busy=44,Free=8147,Min=8,Max=8191), v: 2.6.48.48654 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)

Rest Reports Config:

<restReportService hostAppId="DispatchAnywhere3Reports" reportSharingTimeout="0" clientSessionTimeout="15">
<storage provider="Redis2">
<parameters>
<parameter name="configuration" value="****,password=****,ssl=True,abortConnect=False />
<parameter name="databaseNumber" value="6" />
</parameters>
</storage>
</restReportService>

Does anyone have experience using Azure Redis? Are there additional configuration settings required?

Thanks for your help!

Aleksandar
Top achievements
Rank 1
Iron
Iron
 answered on 23 Feb 2023
1 answer
423 views
Hi

I'm wondering if there is any possibility to print a report using a specific network printer. From the list of commands I've seen that there is a Print command, that does not take any arguments. I've tested this out and this shows the printing dialog from where I can select the printer and then print the report. This is not exactly what I need.

Is there a way to directly send the report to a network printer (it doesn't matter if it was visible in a ReportViewer before or not, I can handle this in my project) without showing the print dialog?

Best Regards,
Roman 
Todor
Telerik team
 answered on 23 Feb 2023
1 answer
190 views

Hello Support,

we use older version 7.0.13.426, 2012 as a part of GMSC. I face an issue with hiding Panel report item. When I set in Bindings both Visible and Style.Visible params to False for sure:

It causes extension of the DetailSection that exceeds to the next page and causes "blank" page. I set yellow background color for the DetailSection (orange is pageFooterSection) to make it more clear.

Could you help me please? This topic seemed to be similar to my issue and the link http://www.telerik.com/support/kb/reporting/details/collapse-the-container-when-hiding-child-report-items- is not working.

Thank you,

Lukas

Dimitar
Telerik team
 answered on 23 Feb 2023
1 answer
371 views

Hi,

I have designed a report template using web report designer using json data(for invoice pdf).

Now I want to display pdf/report using different data by passing an argument.

I want to use the same template for all invoice pdf.

Kindly explain is this possible in telerik also can you provide a sample code for this?

I am using ASP.net mvc for developing the project

Dimitar
Telerik team
 answered on 22 Feb 2023
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?