Telerik Forums
Reporting Forum
4 answers
233 views
Is there a way to execute functions (next page, previous page, first page, toggle ViewMode, print etc.) of the WPF ReportViewer programmatically?

We embed the viewer in a larger UI application and we want to use the viewer to display the report, but the controls of our own enveloping application to control its functions.

When I look at the ReportViewer source code, its controls bind to its view model which in turn is private. Is there no way to execute the "next page" command (for example) programmatically externally?
IvanY
Telerik team
 answered on 25 Jan 2012
1 answer
120 views

I need to create a report with a data section that appears only at the bottom of the first page of a PDF report. From reading other posts it appears that the only way to do this is to put the fields into the page footer and then add values to the fields in ItemDataBound event of the footer. I've tried doing this, but the data doesn't appear on the first page, only on subsequent pages. Any ideas why this isn't working? Is this the proper way to go about this?

Here's a simplified view of what I'm doing.

private void pageFooter_ItemDataBound(object sender, EventArgs e)
{
  barcode1.Value = "123456"; 
  barcode2.Value = "234567"; 
  barcode3.Value = "345678"; 
  barcode4.Value = "456789"; 
  barcode5.Value = "567890"; 
  barcode6.Value = "678901"; 
  barcode7.Value = "789012"; 
  barcode8.Value = "890123"; 
  barcode9.Value = "901234"; 
}

I also want to suppress the display on pages other than page one. Can I toggle the visibility with conditional formatting based on PageNumber or is there a better way?

Thanks,

John

Elian
Telerik team
 answered on 25 Jan 2012
4 answers
119 views
Hi All,

I'm new to Telerik reporting and this is going to be my first report. Here is my req. I need to create a report which contains 45 columns. I had placed all the columns in the page header section by increasing report width as well as changing the same in PageWidth of the designer. When I clicked on preview it is showing only the columns that is going to be on the page1, it is not rendering the rest of the columns. I did checked in other pages also it's not showing up. what may be the issues.

Also in my wpf application when I click on a button then I need to open a  new window which has report viewer control on it. So I will pass datatable from window1 to window2 and then window2 will assign the datasource of the report as datatable. This is my idea. Is it possible or not. if possible how can I assign the field mappings.

Please let me know what are the ways to pass datasource at runtime and how to assign the mapping between the fields.

Thanks,
Mohan
Mohan
Top achievements
Rank 1
 answered on 25 Jan 2012
1 answer
165 views
I have been evaluting Telerik Reports for my client. I have Produced some of their example reports. I am facing following problem.

I have placed a sub report in Report Hearder which shows company name and address from the database. it is working fine in print preview mode or when exported to pdf etc. but when i placed company logo along with the sub report in Report Header. Then in print preview mode the sub report's data is shown on one page with the details of first page of reports and logo is shown on second blank page. And there are alternative Blank pages with no data at all through out the report. But in interactive view both subreport and logo are shown in one place intact with each other.  
Please help me
Steve
Telerik team
 answered on 25 Jan 2012
1 answer
121 views
Dear,
I have been evaluating Telerik Reporting for one of my clients. I have made a cross tab report. I am facing a problem while exporting it to pdf and xsl. I will list these problems one by  one below

1. When I export the crosstab report to pdf. The Total page number in report footer shows always 0(zero) on every page of pdf.
2. When I export the crosstab report to xls some of the columns of crosstab are mapped to two columns of xls file which are merged to show one column. Please help me this is not the clients requirement.
Steve
Telerik team
 answered on 25 Jan 2012
2 answers
57 views
Hi,

I creates a report containing several charts. The number of charts and their content depend on report parameters which I pass from the silverlight client to the report service.

Therefore, I used the NeedDataSource - event of the report to create the charts and add them to the details section of the report. This works perfectly fine except of one thing: The silverlight report viewer shows all the charts on one single page instead of splitting them into several pages. When I export the report to PDF using the viewer the report is correctly devided into several pages.

What am I doing wrong here? Why is the viewer scaling all objects onto one page even though the dimensions of the objects are clearly set?
Tim
Top achievements
Rank 1
 answered on 25 Jan 2012
3 answers
92 views

Hi,

I am a newer in the Telerik Report.
I need to implement Telerik Report in the Asp.net -2010 ajax web application.
How can i implement Telerik Report in the application using Report viewer?

Thanks
sindu.
Steve
Telerik team
 answered on 25 Jan 2012
1 answer
101 views
I am pretty new to Telerik reporting. So I will try to explain the issues I am facing.

I have a report that binds to the following stored procedure
CREATE PROCEDURE GetSalesValue
 
AS
SELECT  DATENAME(mm, Sales.SaleOrderDate) AS MonthOfSale ,
        SUM(Quotes.NETPrice) AS SalesValue ,
        Source.Source
FROM    Quotes
        INNER JOIN Sales ON Quotes.QuoteId = Sales.QuoteId
        INNER JOIN Enquiry ON Quotes.EnquiryId = Enquiry.EnquiryId
        INNER JOIN Source ON Enquiry.SourceId = Source.SourceId
GROUP BY Sales.SaleOrderDate, Year(Sales.SaleOrderDate),
        Source.Source

this works as expected as in displaying the correct results in month order.  When this sproc gets bound to the report the months are in alphabetical order and not in month order. As you can see attached

I also tried to write the sproc differently and this works both with ASC and DESC

SELECT  DATENAME(mm, Sales.SaleOrderDate) AS MonthOfSale ,
        SUM(Quotes.NETPrice) AS SalesValue ,
        Source.Source
FROM    Quotes
        INNER JOIN Sales ON Quotes.QuoteId = Sales.QuoteId
        INNER JOIN Enquiry ON Quotes.EnquiryId = Enquiry.EnquiryId
        INNER JOIN Source ON Enquiry.SourceId = Source.SourceId
GROUP BY Sales.SaleOrderDate,
        Source.Source
ORDER BY MONTH(Sales.SaleOrderDate) ASC     


Is there a way around this?

Many thanks
Simon
Top achievements
Rank 1
 answered on 25 Jan 2012
19 answers
1.4K+ views
I am currently trying to use export to pdf. It takes forever. Can seem to comprehend why it takes longer. Any hints on what i can look at to identify bottle necks. Secondly i want to know a little bit more about how u are generating pdf files specially the large files which could 10 to 12 mb. In the past i was using aspose to convert to pdf and it brought our server down cuz of high memory usage. Please explain.
You guys have a nice suite of products. I am so glad i finally convinced my company to move from infragistics.(nightmare!)
Prasad
Top achievements
Rank 1
 answered on 25 Jan 2012
2 answers
398 views
hi telerik,

          I am working on invoice for bundle items , need to group the last three column as shown in the attachment. "AGG" column shows the no.of bundles (i.e. 1 here) and in the next two columns need to show the sum ( appx. 1000).  can you suggest how to achieve the design as shown in the attachment.   
sunil
Top achievements
Rank 1
 answered on 25 Jan 2012
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?