Telerik Forums
Reporting Forum
2 answers
203 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
117 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
177 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
4 answers
697 views
Hi,

We are using Q3 SP1 Reports in a Web Report, and have a single group footer section where we have tried using PageBreak=After as well as PageBreak=Before. Either way, we get page page of report data as expected, followed by a blank page, then repeat x the 300 pages that are in this report. We have looked and there are no other, duplicate PageBreak statements that would cause this. We just have a simple pageheader, detail section, a groupfooter where we are setting the pagebreak, and a pageFooter section.

Any help appreciated.

Nathaniel
Top achievements
Rank 1
 answered on 18 Mar 2011
1 answer
132 views
Hi

I have previously created a thread about this problem. When rendering my reports and the amount of rows are less than +/- 2000 rows the report renders without problem. When the rows are 2000+ the report sometimes render right and sometimes it throws the dreadful "An exception occurred during the operation, making the result invalid.  Check InnerException for exception details." exception.

One of the telerik members recommend that I look at the output window in visual studio while in debug mode. But no error appears and the only messages that appear is the following:

*** ReportProcessor.Render STARTED ***
  
*** ReportProcessor.GetRenderer STARTED ***
*** ReportProcessor.GetRenderer DONE in 00:00:00.0000277 ***
  
  
*** ProcessReport #0 STARTED ***
The thread '<No Name>' (0x25ac) has exited with code 0 (0x0).
The thread '<No Name>' (0x1a90) has exited with code 0 (0x0).
The thread '<No Name>' (0x1534) has exited with code 0 (0x0).
  
*** Report Processing STARTED ***
*** Report Processing DONE in 00:00:00.3108771 ***
  
  
*** Measure Report (Horizontal) STARTED ***
*** Measure Report (Horizontal) DONE in 00:00:00.0361700 ***
  
  
*** Measure Report (Vertical) STARTED ***
*** Measure Report (Vertical) DONE in 00:00:00.4248685 ***
  
*** ProcessReport #0 DONE in 00:00:58.5183698 ***
  
  
*** RenderReport #0 STARTED ***
'iexplore.exe' (Silverlight): Loaded 'C:\Program Files\Microsoft Silverlight\4.0.50826.0\en-US\System.ServiceModel.debug.resources.dll'
*** RenderReport #0 DONE in 00:00:13.2401077 ***
  
*** ReportProcessor.Render DONE in 00:01:12.1509348 ***
  
The thread '<No Name>' (0xc08) has exited with code 0 (0x0).

According to the messages the rendering was successful but in the UI the "An exception occurred" error appears.

This is becoming a critical problem as our clients are getting very irritated.

Please, please help us. We must resolve this no matter what. Either we must establish that Telerik can handle large data in their Silverlight reportViewer and the problem lies somewhere else or we must establish that Telerik can not handle this kind of quantities and we must discard Telerik reporting and use another tool.
Peter
Telerik team
 answered on 18 Mar 2011
1 answer
90 views
I'm seeing some strangeness when printing my reports.

When paragraphs are wrapped in <p> </p> tags, they look normal in the RadEditor, normal in the report viewer, but when I print them they all have extra space between the paragraphs.

Text will look like this in the editor and viewer:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut lectus dolor, condimentum imperdiet consequat rhoncus, pulvinar id lacus. Etiam ultrices adipiscing risus vel bibendum. Nunc vehicula, lectus nec tincidunt tempor, dolor lorem lobortis nibh, pellentesque pharetra mi augue quis nisi. Phasellus tristique pharetra augue, vel ornare sapien tristique pretium. Ut convallis fermentum magna eget congue. Curabitur sed tortor eget lacus iaculis interdum eu id dui. Nulla eu massa eget libero varius lobortis. Duis pellentesque nibh eu lectus aliquet blandit. Praesent dolor odio, viverra eu lobortis vitae, imperdiet a tellus. Nunc pretium diam metus. Nulla facilisi.

Donec porttitor, tortor sit amet gravida blandit, enim libero hendrerit magna, vel molestie turpis lectus ut odio. Aenean malesuada commodo ipsum, in gravida nibh fringilla imperdiet. Duis vel odio quis metus egestas condimentum. In eget adipiscing massa. Aliquam erat volutpat. In hac habitasse platea dictumst. Etiam fringilla, augue non luctus fringilla, felis massa viverra dolor, et porttitor magna lectus suscipit neque. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse posuere euismod risus, ac vestibulum urna sodales a. Curabitur accumsan, magna sed posuere vulputate, lectus ligula vestibulum neque, ut congue dolor orci id ante.

Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Suspendisse at facilisis diam. Integer justo magna, consectetur id auctor eget, rhoncus a enim. Curabitur ultrices ante non nulla consectetur nec lobortis dolor congue. Nunc et metus odio. Maecenas pulvinar ipsum ut tellus viverra pulvinar eu et nunc. Maecenas elementum elementum eros id luctus. Sed fermentum augue ut dui venenatis mollis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nullam metus dolor, luctus auctor placerat varius, aliquam in nunc. Aenean lobortis cursus tortor id varius. Proin id magna accumsan eros ornare tempus. Donec eget justo quis nunc blandit facilisis sed vitae quam. Integer luctus erat vitae lacus ullamcorper lobortis. Etiam pretium neque a lectus adipiscing sodales. Maecenas posuere lacinia nisl vitae cursus. Curabitur pretium semper blandit. Quisque id laoreet nunc.


But when I print it, it looks like this:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut lectus dolor, condimentum imperdiet consequat rhoncus, pulvinar id lacus. Etiam ultrices adipiscing risus vel bibendum. Nunc vehicula, lectus nec tincidunt tempor, dolor lorem lobortis nibh, pellentesque pharetra mi augue quis nisi. Phasellus tristique pharetra augue, vel ornare sapien tristique pretium. Ut convallis fermentum magna eget congue. Curabitur sed tortor eget lacus iaculis interdum eu id dui. Nulla eu massa eget libero varius lobortis. Duis pellentesque nibh eu lectus aliquet blandit. Praesent dolor odio, viverra eu lobortis vitae, imperdiet a tellus. Nunc pretium diam metus. Nulla facilisi.

Donec porttitor, tortor sit amet gravida blandit, enim libero hendrerit magna, vel molestie turpis lectus ut odio. Aenean malesuada commodo ipsum, in gravida nibh fringilla imperdiet. Duis vel odio quis metus egestas condimentum. In eget adipiscing massa. Aliquam erat volutpat. In hac habitasse platea dictumst. Etiam fringilla, augue non luctus fringilla, felis massa viverra dolor, et porttitor magna lectus suscipit neque. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse posuere euismod risus, ac vestibulum urna sodales a. Curabitur accumsan, magna sed posuere vulputate, lectus ligula vestibulum neque, ut congue dolor orci id ante.

Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Suspendisse at facilisis diam. Integer justo magna, consectetur id auctor eget, rhoncus a enim. Curabitur ultrices ante non nulla consectetur nec lobortis dolor congue. Nunc et metus odio. Maecenas pulvinar ipsum ut tellus viverra pulvinar eu et nunc. Maecenas elementum elementum eros id luctus. Sed fermentum augue ut dui venenatis mollis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nullam metus dolor, luctus auctor placerat varius, aliquam in nunc. Aenean lobortis cursus tortor id varius. Proin id magna accumsan eros ornare tempus. Donec eget justo quis nunc blandit facilisis sed vitae quam. Integer luctus erat vitae lacus ullamcorper lobortis. Etiam pretium neque a lectus adipiscing sodales. Maecenas posuere lacinia nisl vitae cursus. Curabitur pretium semper blandit. Quisque id laoreet nunc.

This isn't so bad for normal prose in paragraphs, but when someone does a list of values it throws a lot of extra whitespace into the report and makes it look terrible.

Name: Smith, Jim
DoB: 10/24/83
SSN: 111-22-3333
Race: White
Ethnicity: Non-Hispanic

...becomes:

Name: Smith, Jim

DoB: 10/24/83

SSN: 111-22-3333

Race: White

Ethnicity: Non-Hispanic

And this isn't going to fly.  Is there any way to control that extra space?

Thanks,

-Chris

Milen | Product Manager @DX
Telerik team
 answered on 18 Mar 2011
4 answers
401 views
The "Excel worksheet" export option is not showing up for me in my reportViewer control.  I just download and installed the new version and ran the upgrade wizard then rebuilt my project, cleared my cache, reset IIS, etc.  The referenced assembly in my web project is pointing to the new version of the reportviewer control.  Any ideas?  Do I have to enable this on a property somewhere?
Tomas
Top achievements
Rank 1
 answered on 18 Mar 2011
2 answers
191 views

Hello.

I am using Telerik Reporting Q3 2010 version,

I have created sqlDataSource1 where "SelectCommandType =  StoredProcedure" -> query returns data so this is OK...

...BUT When i start crosstab wizard (or table wizard) and select my sqlDataSource1 there are NO "details" fields in the "Details" section of the wizard!!  (see attacched printscreen).

I can only click "finish" button (button Next is DISABLED) and so i can not "drag an drop" fields to create a report (in the next step of the wizard which i can not access)

btw : sqldatasource WITHOUT stored procedure ("SelectCommandType =  Text")  works OK with the crosstab and table wizard - it displays ALL the wizard steps and allows me to drag and drop fields on the report.

Can you please answer me if this is a bug in crosstab wizard or if this is so by design?  Our project is very late so your answer would be wery appreciated. 

Thank you.

Damir

john doe
Top achievements
Rank 1
 answered on 18 Mar 2011
0 answers
54 views
Hai,

   Can anyone help me,i need to add lines for one cell to another cell while doing export pdf


Regards
K.AMARNATH
Amarnath
Top achievements
Rank 1
 asked on 18 Mar 2011
1 answer
128 views
When I use the web viewer to view a report, the report looks fine.  The displayed data, which contains line breaks, appears as expected.  However, when I print the report or convert it to another format, the line break characters appear as &#x0D;.

Is there a way to prevent this from happening?

I have attached a screenshot of the report in the viewer as well as screenshots of the same report in PDF and RTF.
Hristo
Telerik team
 answered on 18 Mar 2011
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?