Cannot modify this property on the Empty Rect. at System.Windows.Rect.set_Y

Posted by: mkadoussi on 23 September 2022, 12:11 am EST

  • Posted 23 September 2022, 12:11 am EST

    Hello,

    We use the C1 Flex component for reporting we are having the following error on production and were not able to reproduce it.

    Error : 
    Message = Messages: Cannot modify this property on the Empty Rect.   at System.Windows.Rect.set_Y(Double value)
    
       at C1.WPF.Pdf.C1PdfDocumentBase.Normalize(Rect rc)
    
       at C1.WPF.Pdf.C1PdfDocument.#crc(Rect #Gz)
    
       at C1.WPF.Pdf.C1PdfDocument.FillRectangle(Color color, Rect rc)
    
       at C1.WPF.Document.Util.C1PdfGraphics.FillRectangle(Color color, Rect bounds)
    
       at C1.WPF.Document.Util.C1Graphics.DrawBackground(Rect bounds, Nullable`1 clipBounds, IC1Background background)
    
       at C1.WPF.Document.RenderFragment.DrawContentStart(C1Graphics graphics, FragmentDrawParams& fdp)
    
       at C1.WPF.Document.RenderFragment.Draw(C1Graphics graphics, Rect boundsPx, Nullable`1 visibilityRectPx, IC1HighlightingManager highlightingManager)
    
       at C1.WPF.Document.RenderContainerFragment.DrawContent(C1Graphics graphics, FragmentDrawParams& fdp)
    
       at C1.WPF.Document.RenderFragment.Draw(C1Graphics graphics, Rect boundsPx, Nullable`1 visibilityRectPx, IC1HighlightingManager highlightingManager)
    
       at C1.WPF.Document.RenderContainerFragment.DrawContent(C1Graphics graphics, FragmentDrawParams& fdp)
    
       at C1.WPF.Document.RenderFragment.Draw(C1Graphics graphics, Rect boundsPx, Nullable`1 visibilityRectPx, IC1HighlightingManager highlightingManager)
    
       at C1.WPF.Document.RenderContainerFragment.DrawContent(C1Graphics graphics, FragmentDrawParams& fdp)
    
       at C1.WPF.Document.RenderFragment.Draw(C1Graphics graphics, Rect boundsPx, Nullable`1 visibilityRectPx, IC1HighlightingManager highlightingManager)
    
       at C1.WPF.Document.RenderContainerFragment.DrawContent(C1Graphics graphics, FragmentDrawParams& fdp)
    
       at C1.WPF.Document.RenderFragment.Draw(C1Graphics graphics, Rect boundsPx, Nullable`1 visibilityRectPx, IC1HighlightingManager highlightingManager)
    
       at C1.WPF.Document.RenderContainerFragment.DrawContent(C1Graphics graphics, FragmentDrawParams& fdp)
    
       at C1.WPF.Document.RenderFragment.Draw(C1Graphics graphics, Rect boundsPx, Nullable`1 visibilityRectPx, IC1HighlightingManager highlightingManager)
    
       at C1.WPF.Document.RenderContainerFragment.DrawContent(C1Graphics graphics, FragmentDrawParams& fdp)
    
       at C1.WPF.Document.RenderFragment.Draw(C1Graphics graphics, Rect boundsPx, Nullable`1 visibilityRectPx, IC1HighlightingManager highlightingManager)
    
       at C1.WPF.Document.RenderContainerFragment.DrawContent(C1Graphics graphics, FragmentDrawParams& fdp)
    
       at C1.WPF.Document.RenderFragment.Draw(C1Graphics graphics, Rect boundsPx, Nullable`1 visibilityRectPx, IC1HighlightingManager highlightingManager)
    
       at C1.WPF.Document.C1Page.Draw(C1Graphics graphics, Point pointPx, Nullable`1 visibilityRectPx, IC1HighlightingManager highlightingManager, DrawAttrs drawAttrs)
    
       at C1.WPF.Document.Export.PdfFilter.#eKf(C1Page #jqc)
    
       at C1.WPF.Document.Export.GraphicsFilter.InternalExport(IExecutionContext #As)
    
       at C1.WPF.Document.Export.ExportFilter.Export(IExecutionContext context)
    
       at C1.WPF.FlexReport.C1FlexReport.#tdg(ExportFilter #YFf, IExecutionContext #As)
    
       at C1.WPF.Document.C1DocumentSource.Export(ExportFilter exportFilter)
    
    

    C1.Xaml.WPF.FlexReport 4.5.20201.697

    Any hint on what can be the cause of it ?

    Cordially.

  • Posted 25 September 2022, 6:23 pm EST

    Hi,

    As per the error, it seems like report is crashing while rendering a shape at the time of Export. That will be difficult to identify the main cause. Could you please provide a sample report or a stripped down sample replicating this behavior. So, that we can investigate further and assist you accordingly.

    Best Regards, Nitin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels