Telerik Forums
Reporting Forum
2 answers
169 views

We are using version 15.0.21.224 and on some clients machines WPF Report Viewer button "Search in report contents" throw exception:

The type initializer for 'Telerik.ReportViewer.Wpf.SearchDialog' threw an exception.
StackeTrace: at Telerik.ReportViewer.Wpf.SearchDialog..ctor(ITextResources resources, IEnumerable`1 mergedDictionaries)
at Telerik.ReportViewer.Wpf.Search.SearchDialogController.Toggle()
at Telerik.ReportViewer.Wpf.ReportViewerModel.ToggleReportContentSearch()
at Telerik.ReportViewer.Wpf.ReportViewerModel.SearchCommandImpl.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 Telerik.Windows.Controls.RadToggleButton.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at Telerik.Windows.Controls.RadToggleButton.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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

What is issue can be?

Aleksey
Top achievements
Rank 1
Veteran
Iron
 answered on 23 Apr 2021
3 answers
344 views

Hi 

i have asp.net web form application, i want to add telerik web report desinger control there, is there a sample code or helpfull link there for this ? , all the articles i saw till now are related to asp.net core or asp.net mvc applications. 

Regards,

Zain

 

 

 

Neli
Telerik team
 answered on 22 Apr 2021
2 answers
188 views

I use HTML5 ReportViewer in asp.net core 3.1,  

I  try render the demo report "Product Catalog" , and found that the document map tree node display not correct.

for the parent nodes, just can see the icon but no text ,

I check the html elements, find that the two <span> elements (for the  parent  node) make a wrong Inclusion relation. 

How to resolve it ?

My version is : 14.2.20.1021

Thanks. 

 

louis chan
Top achievements
Rank 1
Iron
 answered on 22 Apr 2021
3 answers
1.3K+ views
Hi,

I have a problem with some reports that I generate through ASP.NET using Telerik Reporting. The size of reports are way too big, I have searched on the previous threads started here and have tried what they suggested but no real gain was noticed.

I have a main report with various sub reports.

In total the PDF is about 18 - 20 pages, containing mostly text, with the exception of about 12 images.

I already added code in the ASP.NET application to reduce the size of the images before it gets saved to the SQL Server.

I also dont embed the fonts as per some of the previous questions asked here.

However I still have reports that range from 8 - 14 Megabytes.

I need this much much smaller.

I am using Q2 2013 SP1 version for reporting.

Todor
Telerik team
 answered on 21 Apr 2021
1 answer
440 views

Hello!

I am migrating reports from .Net Framework 4.5.2 to .Net Core 3.1. I've been having issues with the report designer within Visual Studio as it seems not to work. I've been trying for a while, with different libraries/dlls but no success. The reports do work on Core, the only problem seems to be the VS Designer. We really don't wanna switch to some other designer to edit out existing reports so if possible we'd like to use it the same way that we've been using it till now. The image with the error is attached. How would we go about fixing this? Is it even possible? Thank you for answer in advance!

Best regards,
Denis

Todor
Telerik team
 answered on 21 Apr 2021
1 answer
291 views

Visual studio 19 throws error “Error HRESULT E_FAIL has been returned from a call to a COM component” on adding reference in web forms project.

 

Eric R | Senior Technical Support Engineer
Telerik team
 answered on 21 Apr 2021
2 answers
1.0K+ views

Hi All,

I follows  this link https://docs.telerik.com/reporting/telerik-reporting-rest-service-aspnetcore-net5 to try

hosting Hosting Telerik report ( 2021 R1) in Net 5  but have error

" CS0117: ReportServiceConfiguration does not  contained a definition for ''ReportingEngineConfiguration "

when Configure dependencies for ReportsController. in Startup.cs file :

public void ConfigureServices(IServiceCollection services)
{

........

            services.TryAddSingleton<IReportServiceConfiguration>(sp =>
                new ReportServiceConfiguration
                {
                    ReportingEngineConfiguration = ConfigurationHelper.ResolveConfiguration(sp.GetService<IWebHostEnvironment>()),
                    HostAppId = "Net5RestServiceWithCors",
                    Storage = new FileStorage(),
                    ReportSourceResolver = new UriReportSourceResolver(
                        System.IO.Path.Combine(sp.GetService<IWebHostEnvironment>().ContentRootPath, "Reports"))
                });

}

Please help me to fixed this !

Ths

Tuan
Top achievements
Rank 1
 answered on 21 Apr 2021
6 answers
621 views

I'm using external style sheets in my reports. Report designer uses style sheet file with absolute path. See the example of external style sheet from report xml definition below.

  <ExternalStyleSheets>
    <ExternalStyleSheet Kind="Absolute" Path="D:\Shared\2020R1\Marvin's Vision Reports\StyleSheet.xml" />
  </ExternalStyleSheets>

I import the reports in our project and then I store style sheet file beside the report file. When I run and show a report, external style sheet file may not be found because it's using absolute path as you see from the example above. 

How can I programmatically change my report(running report)'s ExternalStyleSheet to set Url kind to relative path instead of absolute path? and how to reset Path attribute to just file name programmatically?

Tursunkhuja
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 21 Apr 2021
3 answers
841 views

Hi,

 We are running Telerik Reporting R1 2017. The report viewer takes around 10 minutes to render the processed report data by using ObjectDatasource with around 70000 rows even if we use paging. So we are trying to reduce the rendering time.
 
Is that possible to reduce the rendering time? If yes, How do we do that?

Thanks

Neli
Telerik team
 answered on 20 Apr 2021
8 answers
914 views
with `<TargetFramework>netcoreapp3.1</TargetFramework>`?
raresky
Top achievements
Rank 1
 answered on 20 Apr 2021
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?