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

Binding to picturebox within crosstab detail crashes visual studio

2 Answers 68 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Graham
Top achievements
Rank 1
Graham asked on 24 Mar 2017, 04:26 PM

Hi have a requirement to generate a grid of photos.  

I have managed to get the data in the shape where this can be grouped in a cross-tab.  The photos I need to bind to have a filename of {id}.jpg in a known folder.  I have created a user function that accepts the Fields.Id, retrieves this photo and returns an image (this is a technique I've used before successfully).

I have added a picturebox into the detail of the crosstab, but whenever I go to bind the "value" of the picturebox to the user function, Visual Studio crashes.  Stack trace below.  I suspect as this is in the detail it's trying to apply some aggregate to it.  Are there any workarounds to do this binding at runtime to get around this designer bug?

 

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentNullException

Server stack trace: 
   at System.Linq.Enumerable.Cast[TResult](IEnumerable source)
   at Telerik.Reporting.Design.Common.Utils.AggregateFunctionHelper.GetAggregateFunctions(IServiceProvider provider)
   at Telerik.Reporting.Design.Common.ExpressionBuilder.CategoryAdapter.<GetAggregates>d__28.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at Telerik.Reporting.Design.Common.ExpressionBuilder.CategoryAdapter.FillAggregates(Category funcCategory, IServiceProvider provider)
   at Telerik.Reporting.Design.Common.ExpressionBuilder.CategoryAdapter.CreateHierarchy(IServiceProvider provider, Boolean isFieldsTreeVisible)
   at Telerik.Reporting.Design.Common.ExpressionBuilder.ExpressionBuilderDialog.LoadCategories(IServiceProvider provider)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
   at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(System.Runtime.Remoting.Messaging.Message, Boolean)
   at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(System.Object, System.Runtime.Remoting.Proxies.MessageData ByRef)
   at Telerik.Reporting.Design.Common.ExpressionBuilder.ExpressionBuilderDialog+LoadCategoriesDelegate.EndInvoke(System.IAsyncResult)

2 Answers, 1 is accepted

Sort by
0
Graham
Top achievements
Rank 1
answered on 24 Mar 2017, 04:56 PM
Please close this, it only falls over in the expression builder, typing the binding in manually works fine.
0
Stef
Telerik team
answered on 24 Mar 2017, 05:47 PM
Hello Graham,

If you are using Telerik Reporting R1 2017 or newer, please test to upgrade to the latest available internal build v11.0.17.323 . The MSI can be downloaded from your Telerik account - Downloads - Reporting (version:11.0.17.222) - Latest Internal Build.

Regards,
Stef
Telerik by Progress
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Graham
Top achievements
Rank 1
Answers by
Graham
Top achievements
Rank 1
Stef
Telerik team
Share this question
or