Telerik Forums
Reporting Forum
1 answer
263 views
Hi

I am trying to pass an int array from SilverLight Codebhind throigh ReportParameters to the Report. I am getting the follwoing error when i run the app.
"An error has occured while processing Report 'Report2'
An error has occured while resolving 'Objectdatasource1 datasource: Object must implement IConvertible'".

The fllowing is the xaml codebhind
public partial class MainPage : UserControl
    {
        public MainPage()
        {
            InitializeComponent();
        }
 
        private void RepViewer_RenderBegin(object sender, Telerik.ReportViewer.Silverlight.RenderBeginEventArgs args)
        {
            args.ParameterValues["productIds"] = new object[] {2, 3};
        }
    }


The following is the method the object data source is bound to using dataMember propery
public IQueryable<Product> GetProductsByIds(int[] productIds)
        {
            return this.ObjectContext.Products.Where(prod => productIds.Contains(prod.ProductID));
        }


Please help me how do i do it.

Thanks in advance
Ravindra
Steve
Telerik team
 answered on 28 Jun 2011
1 answer
101 views
Is the Telerik Reporting component compatible with ASP.NET 2.0/Visual Studio 2005?
Steve
Telerik team
 answered on 28 Jun 2011
0 answers
88 views
I have:           
System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.ReportViewer.Wpf.ReportViewerModel.Print()
   at Telerik.ReportViewer.Wpf.ReportViewerModel.PrintReportCommandImpl.Execute(Object parameter)
   at Telerik.ReportViewer.Wpf.ReportViewerModel.Command.System.Windows.Input.ICommand.Execute(Object parameter)
   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at Telerik.Windows.Controls.RadButton.OnClick() in c:\Dev3\branches\2010.Q3.Release\Core\Controls\Buttons\RadButton.cs:line 348
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Window.ShowHelper(Object booleanBox)
   at System.Windows.Window.Show()
   at System.Windows.Window.ShowDialog()
   at TP.QLBH2011.Views.Bussiness.StockExp.CtrSaleProduct.btnInHDGTGT_Click(Object sender, RoutedEventArgs e) in E:\WPF\New folder\New folder\New folder (4)\TP.QLBH2011-19.6.2011-12.09 PM\TP.QLBH2011-22.4.2011-1.46 PM\TP.QLBH2011\Views\Bussiness\StockExp\CtrSaleProduct.xaml.cs:line 500


thanks you!
thangnv
Top achievements
Rank 1
 asked on 28 Jun 2011
8 answers
183 views
Hi

I want to create a Calendar report wich shows the teacher names and Class time and the student who in that class as shown in the attached file which is a mockup of what I tend to have.



Thank you
Amir
Top achievements
Rank 1
 answered on 28 Jun 2011
0 answers
99 views
I have add a reports to reportbook is ok. but when to print it's error :

System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.ReportViewer.Wpf.ReportViewerModel.Print()
   at Telerik.ReportViewer.Wpf.ReportViewerModel.PrintReportCommandImpl.Execute(Object parameter)
   at Telerik.ReportViewer.Wpf.ReportViewerModel.Command.System.Windows.Input.ICommand.Execute(Object parameter)
   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at Telerik.Windows.Controls.RadButton.OnClick() in c:\Dev3\branches\2010.Q3.Release\Core\Controls\Buttons\RadButton.cs:line 348
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Window.ShowHelper(Object booleanBox)
   at System.Windows.Window.Show()
   at System.Windows.Window.ShowDialog()
   at TP.QLBH2011.Views.Bussiness.StockExp.CtrSaleProduct.btnInHDGTGT_Click(Object sender, RoutedEventArgs e) in E:\WPF\New folder\New folder\New folder (4)\TP.QLBH2011-19.6.2011-12.09 PM\TP.QLBH2011-22.4.2011-1.46 PM\TP.QLBH2011\Views\Bussiness\StockExp\CtrSaleProduct.xaml.cs:line 500
>>>>>>>>>i not understand! Admin can you help me? thanks you very much!
thangnv
Top achievements
Rank 1
 asked on 28 Jun 2011
1 answer
74 views
When I move my application to a different server I get the 'Report is unavailable or sessions expired' error I've read about.  The ASP.NET report viewer on a webpage on the same machine works fine.  Since it works on my other servers, this must be machine specific and it's different because it's server 2008, IIS 7.5.
I'm looking at the Session State page and the Session State Mode is set to 'In process'  This should be fine right?  It's on a dedicated server.  What else should I look for?
danparker276
Top achievements
Rank 2
 answered on 27 Jun 2011
6 answers
302 views
Hi Everyone,

i'm trying to solve the following "problem":

I have a database view which returns, lets say, 10 rows with data. One of the fields returned by the view contains a folder path string.

2 folders have a folder path like "RootFolder\Subfolder1"
3 have "RootFolder\Subfolder1\SubSubFolder1"
1 has "RootFolder\Subfolder2"
4 have " "RootFolder\Subfolder3"

So my target is to get the following bookmark tree:

RootFolder
|_________Subfolder1
                   |________SubSubFolder1
|_________Subfolder2
|_________Subfolder3


But currently i'm getting the following bookmark tree generated by the report engine:

RootFolder\Subfolder1
RootFolder\Subfolder1\SubSubFolder
RootFolder\Subfolder2
RootFolder\Subfolder3

I sorted the data by the folder field, so the "structure" is correct, but the tree is not nested. How can i created a nested bookmarkt tree out of folder path strings? Is that possible?

Regards,
Michael
Michael Hilgers
Top achievements
Rank 1
 answered on 27 Jun 2011
1 answer
88 views
Hi,
   How can i draw custom gridline in telerik report bar chart, similar like in telerik chart.
Any idea ?
Steve
Telerik team
 answered on 27 Jun 2011
1 answer
103 views
I need a seemless integration of silverlight in our own application.
The problem ist that the ViewModel property of the ReportViewer is private.
I have no chance to save a file with own workflow without clicking the toolbar.

How to to disable toolbar bar? how to export and navigate with own controls?

kind regards


Steve
Telerik team
 answered on 27 Jun 2011
0 answers
127 views
Hi

I have a class called StatusPercentage with the follwoing properties

AvailablePercentage
ReservedPercentage
OccupiedPercentage
CancelledPercentage

All the above properties are double data type.

I have to display a list of the above class objects using Pie Charts. i.e. for each object, one pie chart should be displayed. And teh number of objects in the list is not fixed. So, the number of pie charts to be displayed also is not fixed. So, pls let me know can it be possible to display the pie charts dynamically based on the items count in the data source. It would be really gr8, if u can provide me with an example asas, as it is almost deadline for us to impelment it.

Thanks in advance
Ravindra

RAVINDRA
Top achievements
Rank 1
 asked on 26 Jun 2011
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?