Telerik Forums
Reporting Forum
1 answer
209 views
Hi
I have to generate a pdf report which is already designed and working with silverlight reporting viewer.
Now same report needs to be generated with another 3rd party application so please suggest me if i can generate the same report from a command line utility.
 I need a fixed pdf format and if that command line application can generate the report to predefined location that should work.
Please suggest the best method
Thanks in advance
Chris Gillies
Top achievements
Rank 1
 answered on 25 Jan 2013
1 answer
92 views
Hello Everyone,

I just upgraded to the new version of Telerilk Reporting yesterday (6.2.13.110) and now when I pass my parameters in my code behind the parameters aren't being excepted. This worked in the version prior to this one and I'm not sure what has changed.

Here is my code that I was using previously to dynamically changed the parameters on the fly:

Private Sub _GenerateReport()
 
        Dim SeasonReport As New CISReports.NBA_PlayerShotChart()
 
        ' perform additional operations on the report object if needed        
        Dim SeasonInstanceReportSource As New Telerik.Reporting.InstanceReportSource()
        SeasonInstanceReportSource.ReportDocument = SeasonReport
        Me.ReportViewer1.ReportSource = SeasonInstanceReportSource
        Dim SeasonReportSource = Me.ReportViewer1.ReportSource
        SeasonReportSource.Parameters.Add("Season", CInt(cmbSeason.SelectedValue))
        SeasonReportSource.Parameters.Add("SeasonTypeID", CInt(cmbSeasonType.SelectedValue))
        SeasonReportSource.Parameters.Add("TeamAbbr", cmbTeams.SelectedValue)
        SeasonReportSource.Parameters.Add("PlayerID", CInt(cmbPlayer.SelectedValue))
    End Sub


Any help would be greatly appreciated since my reports are quite useless without the ability to dynamically change the parameters.

Thanks,

Brad
Stef
Telerik team
 answered on 24 Jan 2013
18 answers
278 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
200 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
382 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
123 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
424 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
439 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
183 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
311 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
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?