I have a very small library which consists of a single class;
public static class DateTimeFunctions
{
[Function(Category = "xxx", Namespace = "xxx", Description = "Get the start of current month")]
public static DateTime StartOfMonth()
{
var now = DateTime.Now;
return new DateTime(now.Year, now.Month, 1);
}
[Function(Category = "xxx", Namespace = "xxx", Description = "Get the end of current month")]
public static DateTime EndOfMonth()
{
return StartOfMonth().AddMonths(1) - TimeSpan.FromSeconds(1);
}
}
In my app.config file I have the following:
configuration>
<configSections>
<section name="Telerik.Reporting"
type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting"
allowLocation="true"
allowDefinition="Everywhere"/>
</configSections>
<Telerik.Reporting>
<AssemblyReferences>
<add name="Name.Of.My.Assembly" version="1.0.0.0" culture="neutral" publicKeyToken="null" />
</AssemblyReferences>
</Telerik.Reporting>
I have verified that both Telerik.Reporting.dll and my own assembly is located in the root folder of my applicattion.
When I try to load the WPF ReportViewer component I get the following exception
Object reference not set to an instance of an object.
at Telerik.ReportViewer.Wpf.ReportViewerModel.ApplyValuesOnReportSource(ReportSource rs)
at Telerik.ReportViewer.Wpf.ReportViewerModel.CreateReportSourceSnapshot(ReportSource source)
at Telerik.ReportViewer.Wpf.ReportViewerModel.CreateHistoryRecord(ReportSource source, Boolean isTemporary)
at Telerik.ReportViewer.Wpf.ReportViewerModel.LogHistory(ReportSource source, LogHistoryRecord logHistory, Boolean logTemporaryHistoryRecord)
at Telerik.ReportViewer.Wpf.ReportViewerModel.RefreshReportCore(Boolean reloadParameters, LogHistoryRecord logHistory)
at Telerik.ReportViewer.Wpf.ReportViewerModel.RefreshReport()
at Telerik.ReportViewer.Wpf.ReportViewer.Refresh()
at Telerik.ReportViewer.Wpf.ReportViewer.OnLoaded(Object sender, RoutedEventArgs e)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at MS.Internal.FrameworkObject.OnLoaded(RoutedEventArgs args)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(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)
hi
i am using Telerik Q2 2015 to develop report that needs a column which value is cumulated with another column. e.g.
column A column B
2 2
3 5
4 9
5 14
I used RunningValue(scope, sum(column A)) function in column B, it does not work as expected even it returns values, but the values is not cumulated, Anyone can give me some clues? thanks
I need to use Report Designer (standalone) with business objects as data source (Object Data Source).
I have configured the <Telerik.Reporting><AssemblyReferences> section correctly with a .dll. But I can't make it work with a simple .exe which is also a valid assembly (I can see the data source class with JustDecompile).
Do I need any special syntax in the <AssemblyReferences> in order to use them with an executable? Is it possible?
Thanks in advance!
Hi:
Is it possible to create a table containing aggregate function such as mean, sd and variance?
Basically I have a list of the following data
classID,studentID, subject, mark, date
1,S00023,Maths,73,2015-03-03
1,S00024,Maths,68,2015-03-03
1,S00023,English,81,2015-03-05
1,S00025,English,59,2015-03-05
...
and I would like to create a table:
ClassID | Subject | Number Of Student |average Mark |SD | CV%
1 | Maths |24 |65 |7.3 |2.54
2 | Maths |18 |78 |14.3 |6.54
...
As I tried using crosstab without setting column grouping (
putting ClassID, subject as row groups, and
as Detail Values, but it didn't work.
Can I ask how it could be done with the designer please?
Many thanks
Regards
William
Dear Support
is tooltip feature for chart regions still not supported till 2015 versions ?
Hi guys,
I have three textboxes, one in the header page, one in the details, and the last one in the footer page. The properties are by default. The values of the textboxes are parameters. The only one textbox that grow successfully is in the details. The other ones don't grow. Could you help me with this issue, please?
Thanks a lot in advance.
cheers
Dear Support ,
im trying to find working sample example for telerik report with html5 report viewer
Can you provide me ?
Regards