Telerik Forums
Reporting Forum
2 answers
166 views
Hi,

I have a master-detail report of customer invoices summary (masters) and then related payments per invoice (detail).

This forms the customer statement.

I want to be able to run this report so that if the users selects all customers it prints out the reports for each customer on separate page. Right now the only way to do it is to go to each customer and print his report which first prints to screen and then I have to select the printer to print it.

I need it automated such that if more than one customer is selected it prints the reports directly rather than displaying on screen and then automatically cycles through all customers to print them.

Any samples or ideas on this.

Thanks,

Ads
Massimiliano Bassili
Top achievements
Rank 1
 answered on 23 Mar 2011
2 answers
102 views
Is it possible to re-order Group possitions Programmatically

I have 3 groups i would like to change the order of the groups before the report is loaded into the report viewer

Thanks
Jamie
Top achievements
Rank 1
 answered on 22 Mar 2011
2 answers
373 views
Is there a way to control the number of rows per page so i wont have the scrolling?  Thanks.
ethan
Top achievements
Rank 1
 answered on 22 Mar 2011
3 answers
159 views
Hi,

I am looking to integrade your reports for Silverlight into my application. I wend through all your examples and they have one thing in common, all reports are binded to datasource permanently and you can only send parameters from within ReportViewer component.  Here what I need:

1. Before opening report on the client side, I need to send some parameters to the server.  Based on these parameters, I will generate a set of data objects (i.e. IEnumerable or other collectable object) and bind it to the report, so that only this data is returned to the client side.  How do I achiev this?
1.a. Alternatively, if I could return only the report template to the client and separately I could get a list of data objects from the service.  Then bind it to the Report Viewer on the client side.
2. How do I protect my service from illigal use?  Here is a simple example.  If I want to call some method from the service, one of my parameters can be a password.  When service receives a call, I evaluate that parameter, if it matches the password, I return the result.  This prevents someone designing a silverlight program which connects to my service without know this password.  How does it work with your reports?  What stops someone creating a silverlight application with your ReportViewer, connect to my service and retrieve all data?
Peter
Telerik team
 answered on 22 Mar 2011
0 answers
123 views
Hi,

I have a report in an ASP.NET website that uses an SqlDatasource with stored procedure to get the data I require.
I create a pdf from the report on runtime, and what I'm trying to do is change the connectionstring on runtime.
I know I can add code to the constructor to get the connectionstring from the web.config, but this requires a fixed connectionstring name, and I don't want this.
I also know the Datasource is accessible, but I don't want to set the datasource, just the connectionstring
So what I'm looking for is a way to pass the connectionstring to the report somehow.
As a parameter won't work, however, since the parameters aren't set yet when the constructor is called.

Any ideas?

CJ
AnneArents
Top achievements
Rank 1
 asked on 22 Mar 2011
1 answer
221 views
This is more of a theoretical question. Let's say I have a report generated that contains some information and a pie chart. The user viewing the report decides they would rather view the information in a bar graph. Is there a way to change the pie chart into a bar graph (or any other chart type) dynamically in the report while the user is viewing it?

Thanks in advance!
Massimiliano Bassili
Top achievements
Rank 1
 answered on 22 Mar 2011
0 answers
53 views
Follow JC and OpenAccess and implement WCF Dialog boxes

1) Allow us to use arrow keys in the input boxes
2) Some way to specify\handle null on the row w\out needing IsNull every time
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 asked on 21 Mar 2011
2 answers
217 views
HI
I am trying to create a WPF application and want to use data reports
I have added all the references as mentioned in http://www.telerik.com/help/reporting/wpf-report-viewer-embedding-the-viewer.html
I can see report viewer control on the window after draging it onto it
But when i build my application i get the below error

Error 7 The tag 'ReportViewer' does not exist in XML namespace 'clr-namespace:Telerik.ReportViewer.Wpf;assembly=Telerik.ReportViewer.Wpf'. Line 7 Position 10. C:\Users\Nilesh\Documents\Visual Studio 2010\Projects\Impulse1\Impulse1\rep_window.xaml 7 10 Impulse1

Also I can see certain warnings

Warning 1 The referenced assembly "Telerik.Reporting, Version=4.2.10.1221, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. Impulse1

Warning 2 The referenced assembly "Telerik.ReportViewer.Wpf, Version=4.2.10.1221, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. Impulse1

Warning 3 The referenced assembly "Telerik.Reporting.XamlRendering, Version=4.2.10.1221, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. Impulse1

Warning 4 The referenced assembly "Telerik.Reporting, Version=4.2.10.1221, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. Impulse1

Warning 5 The referenced assembly "Telerik.ReportViewer.Wpf, Version=4.2.10.1221, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. Impulse1

Warning 6 The referenced assembly "Telerik.Reporting.XamlRendering, Version=4.2.10.1221, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. Impulse1




Please assist me
I am using Visual Studio 2010 .net Framework 4 
veena
Top achievements
Rank 1
 answered on 21 Mar 2011
0 answers
127 views
Currently we used CrystalReport as out embedded reporting tool.  When the customer needs a custom report, we will build it and send the rpt file to them, which they drop it in a folder and the application will pick it up automatically, without the need to recompile the application.

Is this possible with Telerik Reporting?
Edward
Top achievements
Rank 1
 asked on 21 Mar 2011
2 answers
193 views
Hello. We are using a Silverlight ReportViewer to call into a class library that contains a report definition. 90% of the time our report comes up fine. But the other 10% of the time, we get the message:
"One or more parameters are not set or have invalid values"
in the report that pops up.

I am calling the report the same way every time, so that leads me to believe there is some kind of timing issue. [EDIT: When this happens, I see the report briefly flash on the screen. Then I get the message about the invalid values. At that point, if I click the refresh button the report viewer, the report comes up fine. It comes up very fast. So, it's not like it's rendering the report when I click the refresh button.]

I was hoping Telerik could see something that we are doing wrong that may be causing this timing issue. Again, we are calling the report with the same parameters, so it's not like we're leaving out a parameter.

In our XAML, we have a ReportViewer control. In the RenderBegin event of the ReportViewer, we are doing this (leaving out a lot of parameters for clarity - also taking out names that identity our business model):

object[] param1 = new object[MyCollection.Count];
object[] param2 = new object[MyCollection.Count];
int loopCounter = 0;
foreach (Widget myWidget in MyCollection)
{
   param1[loopCounter] = myWidget.param1;
   param2[loopCounter] = myWidget.param2;
   loopCounter++;
}
args.ParameterValues["Param1"] = param1;
args.ParameterValues["Param2"] = param2;

In the NeedDataSource event of the report, we are doing this. (ReportItem is a class I defined.)

Telerik.Reporting.Processing.Report myReport = (Telerik.Reporting.Processing.Report)sender;
System.Collections.Generic.List<ReportItem> reportItems = new System.Collections.Generic.List<ReportItem>();
object[] param1Array = (object[])myReport.Parameters["Param1"].Value;
object[] param2Array = (object[])myReport.Parameters["Param2"].Value;
for (int loopCounter = 0; loopCounter < param1Array.Length; loopCounter++)
{
   ReportItem ri = new ReportItem();
   ri.param1 = param1Array[loopCounter].ToString();
   ri.param2 = param2Array[loopCounter].ToString();
}
this.DataSource = reportItems;

Not sure if this matters or not, but we are displaying the ReportViewer in a ChildWindow. In the code-behind of the XAML of the child  window, we are doing this:

public ShowMyReport()
{
    InitializeComponent();
}
private void ChildWindow_Loaded(object sender, RoutedEventArgs e)
{
    MyViewModel vm = (MyViewModel)this.DataContext;
    vm.RefreshReport += new System.Action(vm_RefreshReport);
    ReportViewer1.RenderBegin += vm.OnBlahRenderBeginCommand; // This points to the RenderBegin event I talked about above
    vm.UpdateReport();
}
void vm_RefreshReport()
{
    ((ReportViewerModel)this.ReportViewer1.DataContext).RefreshReportCommand.Execute(null);
}

Thanks.


john doe
Top achievements
Rank 1
 answered on 19 Mar 2011
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?