Posted 30 September 2019, 8:13 pm EST
Hi
-
“I want to bring 4 charts in a report.”
-
“I created subreport for each chart.”
-
"Added these subreport in my main report ( size of main report is A-4) .
" -
“I get this exception during preview.”
Exception details:
GrapeCity.ActiveReports.ReportException: The size of the subreport 'Subreport1' is too small to accommodate the content of the report '..\Untitled.rdlx'. ---> GrapeCity.ActiveReports.Rendering.Layout.LayoutException: The size of the subreport 'Subreport1' is too small to accommodate the content of the report '..\Untitled.rdlx'.
at GrapeCity.ActiveReports.Layout.ReportImpl.SubreportLayout(LayoutScope context, ISubreport subreport, Int32 width, Int32 height)
at GrapeCity.ActiveReports.Layout.ReportItemImpl.SelectLayout(LayoutScope context, IReportItem reportItem, Size`1 size)
at GrapeCity.ActiveReports.Layout.ReportItemImpl.ComposeLayout(LayoutScope context, IReportItem reportItem, Nullable`1 width, Nullable`1 height)
at GrapeCity.ActiveReports.Layout.ReportCanvasLayout.<>c__DisplayClass1_0.<Canvas>b__0(IReportItem child)
at System.Linq.Enumerable.<>c__DisplayClass7_0`3.<CombineSelectors>b__0(TSource x)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.<ConcatIterator>d__59`1.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.<ConcatIterator>d__59`1.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
at System.Linq.Enumerable.<SelectIterator>d__5`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at GrapeCity.ActiveReports.Layout.L2.CanvasImpl.BuildGraph[T](IEnumerable`1 canvasItems)
at GrapeCity.ActiveReports.Layout.L2.Canvas(IEnumerable`1 canvasItems, Boolean galleyMode, Object item, Int32 width, Int32 height, Boolean consumeWhiteSpace)
at GrapeCity.ActiveReports.Layout.L2.Canvas(IEnumerable`1 canvasItems, Boolean galleyMode, Object item, Int32 width, Int32 height, Boolean canShrink, Boolean canGrow, Boolean consumeWhiteSpace)
at GrapeCity.ActiveReports.Layout.ReportCanvasLayout.Canvas(IEnumerable`1 items, LayoutScope context, Object item, Int32 width, Int32 height, Boolean canShrink, Boolean canGrow, Boolean consumeWhiteSpace)
at GrapeCity.ActiveReports.Layout.BandedListImpl.LayoutBand(LayoutScope context, IBand band, Boolean consumeWhiteSpace)
at GrapeCity.ActiveReports.Layout.BandedListImpl.<>c__DisplayClass2_0.<LayoutBandedListGroup>b__1(IBand band)
at GrapeCity.ActiveReports.LazyList.Select[T,TR](LazyList`1 list, Func`2 selector)
at GrapeCity.ActiveReports.Layout.BandedListImpl.LayoutBandedListGroup(LayoutScope context, IBandedListGroup grp, Boolean consumeWhiteSpace, Slicer slicer, Boolean shifted)
at GrapeCity.ActiveReports.Layout.BandedListImpl.<>c__DisplayClass2_0.<LayoutBandedListGroup>b__0(IBandedListGroup tg)
at GrapeCity.ActiveReports.LazyList.Select[T,TR](LazyList`1 list, Func`2 selector)
at GrapeCity.ActiveReports.Layout.BandedListImpl.LayoutBandedListGroup(LayoutScope context, IBandedListGroup grp, Boolean consumeWhiteSpace, Slicer slicer, Boolean shifted)
at GrapeCity.ActiveReports.Layout.BandedListImpl.<>c__DisplayClass2_0.<LayoutBandedListGroup>b__0(IBandedListGroup tg)
at GrapeCity.ActiveReports.LazyList.Select[T,TR](LazyList`1 list, Func`2 selector)
at GrapeCity.ActiveReports.Layout.BandedListImpl.LayoutBandedListGroup(LayoutScope context, IBandedListGroup grp, Boolean consumeWhiteSpace, Slicer slicer, Boolean shifted)
at GrapeCity.ActiveReports.Layout.BandedListImpl.<>c__DisplayClass2_0.<LayoutBandedListGroup>b__0(IBandedListGroup tg)
at GrapeCity.ActiveReports.LazyList.Select[T,TR](LazyList`1 list, Func`2 selector)
at GrapeCity.ActiveReports.Layout.BandedListImpl.LayoutBandedListGroup(LayoutScope context, IBandedListGroup grp, Boolean consumeWhiteSpace, Slicer slicer, Boolean shifted)
at GrapeCity.ActiveReports.Layout.BandedListImpl.BandedListLayout(LayoutScope context, IBandedList list)
at GrapeCity.ActiveReports.Layout.ReportItemImpl.SelectLayout(LayoutScope context, IReportItem reportItem, Size`1 size)
at GrapeCity.ActiveReports.Layout.ReportItemImpl.ComposeLayout(LayoutScope context, IReportItem reportItem, Nullable`1 width, Nullable`1 height)
at GrapeCity.ActiveReports.Layout.FplImpl.PageItem.BuildLayout(LayoutScope context, IReportItem item, Size`1 size, Boolean[] isLastPlace)
at GrapeCity.ActiveReports.Layout.FplImpl.Page.CreatePageItems(LayoutScope context, IList`1 contentItems, IDictionary`2 placeholders)
at GrapeCity.ActiveReports.Layout.FplImpl.Page..ctor(LayoutScope context, IReportItemContainer page, Size`1 size, IContentRange content)
at GrapeCity.ActiveReports.Layout.FplImpl.<>c__DisplayClass3_0.<PageGroup>b__0(IPage page, Int32 index)
at GrapeCity.ActiveReports.LazyList.SelectImpl[T,TR](LazyList`1 list, Func`3 selector, Int32 itemIndex)
at GrapeCity.ActiveReports.Layout.FplImpl.PageGroup(LayoutScope context, IFixedPage fixedPage, Int32 groupIndex, LazyList`1 pages, Size`1 size)
at GrapeCity.ActiveReports.Layout.FplImpl.<>c__DisplayClass2_0.<GenerateFixedLayout>b__0(IFixedPageContent g, Int32 i)
at GrapeCity.ActiveReports.LazyList.SelectImpl[T,TR](LazyList`1 list, Func`3 selector, Int32 itemIndex)
at GrapeCity.ActiveReports.Layout.FplImpl.GenerateFixedLayout(LayoutScope context, IFixedPage fixedPage)
at GrapeCity.ActiveReports.Layout.FplImpl.<>c__DisplayClass1_0.<FixedPageLayout>b__0(Int32 space)
at GrapeCity.ActiveReports.Layout.L2.CanvasImpl.<>c__DisplayClass10_0`2.<Canvas>b__0(Int32 space)
at GrapeCity.ActiveReports.Layout.L.<>c__DisplayClass18_0`2.<Convert>b__0(Int32 space)
at GrapeCity.ActiveReports.Layout.L.<>c__DisplayClass18_0`2.<Convert>b__0(Int32 space)
at GrapeCity.ActiveReports.Layout.LayoutExtensions.SliceIterator`1.MoveNext()
at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
at GrapeCity.Enterprise.Data.DataEngine.Extensions.EnumerableExtensions.<Select>d__3`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at GrapeCity.ActiveReports.Layout.LayoutTree.SetPages(ITargetDevice targetDevice, IEnumerable`1 pages, LayoutNotificationCallback callback)
at GrapeCity.ActiveReports.Layout.LayoutEngine.BuildLayout(LayoutInfo layoutInfo)
at f.GetLayoutTree(IReport report, TargetDeviceCapabilities targetDevice, ITextMetricsProvider metricsProvider, LayoutNotificationCallback callback)
at GrapeCity.ActiveReports.Export.Image.Page.ImageRenderingExtension.Render(IReport report, StreamProvider streams, NameValueCollection settings)
at GrapeCity.ActiveReports.Document.PageDocument.Render(IRenderingExtension renderingExtension, StreamProvider streams, NameValueCollection settings, Boolean forceDataRefresh, Boolean forceParameterDataRefresh, CancellationToken token)
--- End of inner exception stack trace ---
at GrapeCity.ActiveReports.Document.PageDocument.Render(IRenderingExtension renderingExtension, StreamProvider streams, NameValueCollection settings, Boolean forceDataRefresh, Boolean forceParameterDataRefresh, CancellationToken token)
at cg.c.<LoadImpl>b__5()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
First, I want the main report to accommodate all charts with their size same as in subreport.
How can I make the chart to display in next page if it cannot accommodate in the current page.