Telerik Forums
Reporting Forum
18 answers
277 views
Upgraded to latest Reports, now get error trying to print.  Using wpf reportviewer, when I click on the print button I get the following error.

Attempt by method 'Telerik.ReportViewer.Wpf.ReportViewerModel.Print()' to access method 'Telerik.ReportViewer.Wpf.ReportViewerModel.PaperKindToPageMediaSizeName(System.Drawing.Printing.PaperKind)' failed.

StackTrace:
   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 MS.Internal.Commands.CommandHelpers.ExecuteCommandSource(ICommandSource commandSource)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at Telerik.Windows.Controls.RadButton.OnClick() in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Buttons\RadButton.cs:line 389
   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.RouteItem.InvokeHandler(RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.EventRoute.ReInvokeHandlers(Object source, RoutedEventArgs args)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
   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.RouteItem.InvokeHandler(RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.EventRoute.InvokeHandlers(Object source, RoutedEventArgs args)
   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)

Davin
Top achievements
Rank 1
 answered on 24 Jan 2013
3 answers
195 views
Hi, While trying download source code, from below url it is giving error as

"Oops...

It seems there was a problem with our server.

Try reloading the page."

Please check for above and correc this asap.
URL is :
http://www.telerik.com/automated-testing-tools/blog/10-05-05/dynamically-loading-telerik-reports-with-mef.aspx

Boyan Boev
Telerik team
 answered on 24 Jan 2013
1 answer
371 views
Greetings

I am currently testing out your reporting product on a trial basis.  One of my requirements is to be able to change the Page Header dynamically (i.e. Company Logo , etc.).  This is a multi-tenet application and I store the company logos in a database.  I can place the logo in the business object I bind to but that see to require that I add the logo to each item in the list of my business object - not very efficient.

I have been trying to figure out a way to pass in the logo as a byte[] parameter of program to the page header but to no avail.  Any suggestions?
Stef
Telerik team
 answered on 24 Jan 2013
1 answer
122 views
I have a table in the report and a subreport inside that table.I need to hide the line that contains the subreport when the subreport has no data.I tried many ways but they all do not work.I use VS 2008, Terelikreport Q1 spq 2011. Net.One of the ways I've tried.
private void subReport1_ItemDataBound(object sender, EventArgs e)
        {
            Processing.SubReport subReport = (Processing.SubReport)sender;
        Processing.Report detailReport = (Processing.Report)subReport.InnerReport;
            Processing.Report mainReport = (Processing.Report)subReport.Report;
            mainReport.Visible = detailReport._filteredCount > 0;
        }

Stef
Telerik team
 answered on 24 Jan 2013
5 answers
415 views
I have a report that contains a number of fields, and a table control. My data source is a list of "user" data objects, each of which in turn contains a list of "phone number" objects.

I create the report programmatically, and then assign my user list to its DataSource property. So far so good. Now what is the correct way to get each user's phone number list into the table? Should this be done within the detail section itemdatabound event handler? This is the approach I tried initially, and I'm having some problems with it, so I wanted to confirm best practices before proceeding further.
Stef
Telerik team
 answered on 24 Jan 2013
3 answers
426 views
I am using a report generated via the report wizard to print lables. The layout is 8 by 8 (lables).

No matter how much tweaking of widths, margins etc I do when I save to pdf the lables only print 4 across the page. It actually prints a few rows with 4 labels and then prints less on additional rows.

Anybody any idea how to make this thing work? Seems quite basic....
Steve
Telerik team
 answered on 24 Jan 2013
4 answers
179 views
Hi, i have a group that has a sum() calculated on a field. The one group data takes two page i want display page total in each page. 
How do i setup my sum function in a simple way ?
Sac
Top achievements
Rank 1
 answered on 24 Jan 2013
1 answer
305 views
I want to hide picturebox if image is not found on url. By default it is showing error message in red. How do I do that?
Steve
Telerik team
 answered on 24 Jan 2013
7 answers
1.1K+ views
I've got some Traditional Chinese characters stored in a NTEXT field in our Sql Server 2000 machine.  When I pull it from the db and stick it into a field in a report, it looks fine in the Web Report Viewer.  When I export to PDF, the characters are just the empty boxes.  I have the Asian fonts installed on my machine, so I'm suspecting it has something to do with the Encoding parameter of the Render function for the ReportProcessor.  If that is true, what encoding parameter do I pass in?

(In case you can't guess, I'm new to generating unicode stuff ;) )
Steve
Telerik team
 answered on 23 Jan 2013
1 answer
166 views
I've read through all the posts I can find about how to hide a row dynamically and it seems I'm in the minority since I'm using the designer to build my reports.

How would I configure it so that a row is hidden if a particular value is null via the report designer?

In my case, each record is represented by three rows, the third being a pictureBox.  If a particular field is null, I need to hide the picturebox row.

Thanks in advance!
Stef
Telerik team
 answered on 23 Jan 2013
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?