Telerik Forums
Reporting Forum
1 answer
101 views
Currently I am evaluating different reporting frameworks for implementing a new reporting / printing component for our application. I am planing to implement a MS Office 2010 style printing preview. As there will be a multitude of configuration parameters which influence the generated output and the output may be several 100 pages and several reports (probably combined into one using your book feature) it may take quite a while to create all those pages / reports. Nevertheless I want user configuration changes immediately to be reflected in the user interface (the preview). So I was thinking about designing all the reporting component in a way that it's able to generate pages / the single reports asynchronously one after one, so that the first page / report could be quickly shown while the rest is still generated and added one after the other.

So my question is, do you see the Telerik Reporting component and the WPF viewer being capable of dealing with those requirements, enabling me to implement such a scenario?
Peter
Telerik team
 answered on 26 Apr 2011
1 answer
72 views
Dear Support Team

Our software system generate reports on a business server.
A web server shows the reports (within a report book) on a web page.
The generated reports are serialized/deserialized and transferred from the business to the web server by a WCF streaming contract.

Problem:
The style sheets are not applied if the report is opened in the html viewer, the same after exporting to PDF or RTF.

I made a simple test by opening the same report locally on the web server without serialization and it shows the styled elements correctly.

Here is the code that deserializes the report document on the web server:
IReportDocument document = null;
using (System.Xml.XmlReader xmlReader = System.Xml.XmlReader.Create(dataFile))
{
    System.Xml.Serialization.XmlSerializer xmlSerializer =
        new System.Xml.Serialization.XmlSerializer(typeof(Telerik.Reporting.ReportBook));
    document = (Telerik.Reporting.ReportBook)xmlSerializer.Deserialize(xmlReader);
}

The serialized xml document 'dataFile' (that the web server gets from the business server) from the code above includes the style sheet correctly.
<StyleSheet>
  <StyleRule>
    <Style BackgroundColor="Transparent" Color="Black" VerticalAlign="Middle">
      <BorderStyle Bottom="Solid" />
      <BorderColor Default="DimGray" />
      <BorderWidth Default="1px" />
      <Font Size="11pt" Style="Bold" />
      <Padding Left="0cm" />
    </Style>
    <Selectors>
      <StyleSelector>
        <Type>ReportItemBase</Type>
        <StyleName>Test</StyleName>
      </StyleSelector>
    </Selectors>
  </StyleRule>
</StyleSheet>

I compared the serialized file on the business server and the transferred one on the web server and they are identical.

Because of that it seems to be a problem on the report viewer or my de-serialization code (that I copied from the reporting online help).

Thank you for your help.

Chavdar
Telerik team
 answered on 26 Apr 2011
1 answer
107 views
Hello sir,
I am making report in telerik and I want to make report using code in my silver light project do you have any solution for this?

Thanks
Shakti
Steve
Telerik team
 answered on 26 Apr 2011
3 answers
215 views
I am having an issue where the report is not refreshed when the navigate back button is used on the report viewer toolbar.  The main report uses drillthrough functionality to show a more detailed report.  When you navigate back from the drillthrough report you have to click the refresh button for the data to show.

I am using the NeedDataSource event to populate the data initially.  However this event is not fired when the navigate back button is used.
Steve
Telerik team
 answered on 26 Apr 2011
1 answer
58 views
Hi,
I have to create a report for many item (animal), for each animal there are a header section with general information and a detail section with the list of birth (number of children, average weight etc..).

I use report parameter to pass the animal id from my silverlight application.

I start with report for single animal: in the header and footer I insert textbox with date and animal id, in detail section I insert general animal's informations and a table with list of birth.

As datasource I use my custom class Animal that contains general information and an List<BirthInformation> called ListBirth.

I create two datasource, ds1 for the report with Animal class and ds2 for the table with birth information setting datasource to Animal and DataMember to ListBirth. I had to make the second datasource for see the member of the list ListBirth

In the report's code I use NeedDatasource event, so on constructor I put the report datasource to null, and in the event handler I use the code:

Animal a = GetAnimal(id);
this.DataSource = a;
this.table4.DataSource = a.ListBirth;  

The report work fine.

Is this correct way to work?

I need now to make the report (single) form many animal whit a page break from an animal and the next, but I don't understand if I do to use a group or a new report with this report as subreport in a table and how to set the datasource.

Thank you very much.
andrea

Peter
Telerik team
 answered on 26 Apr 2011
1 answer
182 views
We have a variety of reports that we have set up with some parameters. For instance we have a High/Medium/Low filter that has a drop down at the top of the report. Our issue is this dropdown displays ParameterItem+SelectAllItem on one report instead of High Medium Low (or even Select Priority, which is preferred). In the ReportParameter Collection Editor in the Available Values section we are tied to a entityDataSource. The DisplayMember is =Fields.RecruitPriorityValue  We have a variety of filters/parameters that we use for quite a few new reports and this is an issue for all of them.

Steve
Telerik team
 answered on 26 Apr 2011
3 answers
84 views
I am getting the following error message when I try to drag and drop a Subreport in the PageHeader Section of my report.  I can add the Subreport to the ReportHeader, but not the PageHeader.  Why??????

Error Message:  Cannot add subReport1(Telerik.Reporting.SubReport) to pageHeaderSection1(Telerik.Reporting.PageHeaderSection)

I am using  Visual Studio 2008 SP1 and Telerik Reporting 2009 Q2

Thanks,

Charlie J.
Steve
Telerik team
 answered on 26 Apr 2011
4 answers
116 views
Hi,

    Is there an event run when the user clicks on the Action of a report E.G

    Drill report Liks to a Sub report.

    When user clicks to load this report Fire Event user wants to load X Report..

   What i would love would be an action to "run action even", so that when a user clicks a code on the report we cold load a code edit window in our main app.
Travis
Top achievements
Rank 1
 answered on 25 Apr 2011
6 answers
600 views
I have two input parameters type of Guid.
I set default values for parameters like d6a0d1a8-0d5d-4850-9930-5670dfa26403 or 'd6a0d1a8-0d5d-4850-9930-5670dfa26403'

When report preview I have error : Failed to convert parameter value from a string to Guid.

What is wrong?
Massimiliano Bassili
Top achievements
Rank 1
 answered on 22 Apr 2011
8 answers
1.4K+ views
Hi All,

I'm interesting is it possible to use Business Object Datasource for reporting ?

I mean how to display complex values, let me explain with example:

I have classes:
public class SubClass  
{  
  public string Name {get;set;}  
}  
 
public class MyClass  
{  
  public string Name {get;set;}  
  public SubClass subClass {get;set;}  

And also have a
List<MyClass> list = MyBusinessLogic.GetList(); 

I know how to set report datasource to list, but how to display MyClass.subClass.Name ?
 =Fields.subClass.Name don't work.

Thanks.
japss
Top achievements
Rank 1
 answered on 22 Apr 2011
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?