This is a migrated thread and some comments may be shown as answers.

Showing only one instead of two columns

3 Answers 152 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Thomas Schuster
Top achievements
Rank 1
Thomas Schuster asked on 27 May 2010, 09:45 AM
Hey there guys.

I have a strange problem with a report of mine.

Basics:
UnitOfMeasure is cm (i'm from germany)
Paperkind is A4
Landscape is false
Margins are set to 10mm each side
Got some normal datafields from a dataset and a picturebox
The items are filled as they should.
Picturebox is set to ScaleProportional

Issue:
I want my report with 2 columns.
Its an labeled report and the bounds, margins, paddings and so on are as set as the 2 cloumns will fit on the document.
The designer is showing me the second column but if i run the report in my application, the second column will not appear.
The first column is as long as the whole document (it looks like streched).

I've tried various settings on the meassures but nothing will work.

Hopefully some of you has an idea how to fix my issue.

Regards, Tom

[UPDATE]
The problem occurs only if the picturebox value is set by the following code:
this.pictureBox1.Value = "= snvMain.GlobalParams.getImageToArticle(Fields.artnr)";
The function called returns the ImagePath as string.
Reportviewer even loads the image in the Picturebox and later its getting an GDI+ error too.

Slowly but sure it drives me to despair :/

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 27 May 2010, 05:26 PM
Hi Thomas,

As outlined in the Creating Multi-Column Reports help article, in non page oriented formats like HTML one-column reports are supported only. Also multi-column report used in subreport item would be rendered as one-column report as well.

Regards,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Thomas Schuster
Top achievements
Rank 1
answered on 28 May 2010, 07:12 AM
Hi Steve.

Thanks for your reply.

I created a new report similar to the one i talked about.
There i have NO issues...

Seems like some wierd code was generated...

Anyway, the new one works well. Just a Common GDI+ Error drives me a little bit mad....
Is there a way to get the InnerException?

I've googled about the error and where i looked, the Forums told me, to watch the Inner Exception.

Thanks in advance, Tom

[UPDATE]
I just figured out, where the GDI+ exception is thrown:
An error has occured while rendering the report: System.Runtime.InteropServices.ExternalException: Allgemeiner Fehler in GDI+. 
   bei System.Drawing.Imaging.Metafile..ctor(Stream stream) 
   bei Telerik.ReportViewer.WinForms.DrawablePage..ctor(Stream stream) 
   bei Telerik.ReportViewer.WinForms.PageLayout.AddPage(Stream stream) 
   bei Telerik.ReportViewer.WinForms.WinViewer.OnStreamReady(Object sender, StreamReadyEventArgs eventArgs) 
   bei Telerik.ReportViewer.WinForms.RenderFileManager.OnStreamReady(StreamReadyEventArgs eventArgs) 
   bei Telerik.ReportViewer.WinForms.RenderFileManager.RenderStream.Finish() 
   bei Telerik.Reporting.ImageRendering.CompositionGdi.SendPhysicalPages() 
   bei Telerik.Reporting.ImageRendering.CompositionBase.SendPhysicalPages(Boolean force) 
   bei Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(CompositionBase composition, RenderingElement renderingReport, Int32 startPage, Int32 endPage, Boolean render) 
   bei Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(Report report, CompositionBase composition, Int32 startPage, Int32 endPage, Boolean render) 
   bei Telerik.Reporting.ImageRendering.ImageRendererBase.RenderPages(Report report, CompositionBase composition) 
   bei Telerik.Reporting.ImageRendering.ImageRendererBase.RenderReport(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) 
Eine Ausnahme (erste Chance) des Typs "System.Runtime.InteropServices.ExternalException" ist in Telerik.Reporting.dll aufgetreten. 
*** RenderReport #0 DONE in 00:00:07.3970138 *** 
 
*** ReportProcessor.Render DONE in 00:01:11.2520648 *** 
 
WinViewer> An error has occured while rendering a report: 
System.Runtime.InteropServices.ExternalException: Allgemeiner Fehler in GDI+. 
   bei System.Drawing.Imaging.Metafile..ctor(Stream stream) 
   bei Telerik.ReportViewer.WinForms.DrawablePage..ctor(Stream stream) 
   bei Telerik.ReportViewer.WinForms.PageLayout.AddPage(Stream stream) 
   bei Telerik.ReportViewer.WinForms.WinViewer.OnStreamReady(Object sender, StreamReadyEventArgs eventArgs) 
   bei Telerik.ReportViewer.WinForms.RenderFileManager.OnStreamReady(StreamReadyEventArgs eventArgs) 
   bei Telerik.ReportViewer.WinForms.RenderFileManager.RenderStream.Finish() 
   bei Telerik.Reporting.ImageRendering.CompositionGdi.SendPhysicalPages() 
   bei Telerik.Reporting.ImageRendering.CompositionBase.SendPhysicalPages(Boolean force) 
   bei Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(CompositionBase composition, RenderingElement renderingReport, Int32 startPage, Int32 endPage, Boolean render) 
   bei Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(Report report, CompositionBase composition, Int32 startPage, Int32 endPage, Boolean render) 
   bei Telerik.Reporting.ImageRendering.ImageRendererBase.RenderPages(Report report, CompositionBase composition) 
   bei Telerik.Reporting.ImageRendering.ImageRendererBase.RenderReport(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) 
   bei Telerik.Reporting.ImageRendering.ImageRendererBase.Telerik.Reporting.Processing.IRenderingExtension.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) 
   bei Telerik.Reporting.Processing.ReportProcessor.Render(IList`1 reports, ExtensionInfo extensionInfo, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback) 
   bei Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) 
   bei Telerik.ReportViewer.WinForms.RenderingThread.ThreadFunc(Object o) 
This is the trown exception.
The "Allgemeiner Fehler in GDI+" is the well known error "A generic error occurred in GDI "

Any workaround about that?
Maybe i should say, i'm trying to load about 400 Images from FileSystem, not Database as like in your Demos


0
Steve
Telerik team
answered on 28 May 2010, 04:26 PM
Hi Thomas,

Your initial description of the problem led us think that you're using web site application, since the one column is specific to the HTML rendering extension.
This is a pretty generic error which as you can see is not really descriptive. As you have found out there are numerous articles on this error, but it is thrown for completely different problems and one cannot easily identify the culprit.
What should be taken into consideration in your case is how many MBs are these 400 images that you load, as they would be loaded in the worker process and as you know it would be recycled around 1400 Mb. Try decreasing the number of images and their sizes and you should not experience such problems.

Greetings,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Thomas Schuster
Top achievements
Rank 1
Answers by
Steve
Telerik team
Thomas Schuster
Top achievements
Rank 1
Share this question
or