Telerik Forums
Reporting Forum
2 answers
151 views
I have a report project which I am trying to pass a dataset with two data tables.  This is not really a master detail report, but more of a document that will be saved and printed by the application.  I have tried everyway I've seen on the forum to populate the sub report, but nothing works?  I've tried setting the data source of the Report property of my sub report, adding code to the NeedDataSource method of the sub report, adding code to NeedDataSource of the actual report that is the sub report, etc.  When I step the code, I can see that the datasource is correct when the report is created and the data set has the data, but when the report is generated in the report veiwer, its like it loses the connection with the data.  The only time something will display in the subreport is when I hard code values.  The only way to get the actual data to display is to make it a separate report.  Since I can't get the sub report concept to work, I've decided to just try to use the Report book approach since I have one report for the header, and one for the lines.  Is there any problem with using this appoach for my situation?  And do you have any ideas why setting the data source for the sub report is not working?  I'm using Q1 2009.
Svetoslav
Telerik team
 answered on 02 Jul 2009
4 answers
71 views
Please help me to create a chart like this in my report.  I need 3 stacked lines in the chart. Could u please give me a sample project. or link for sample

http://www.telerik.com/help/reporting/understandingtypesline.html
Chavdar
Telerik team
 answered on 02 Jul 2009
1 answer
108 views
Hi,
I know there is no support for the Express editions but does that mean reporting is impossible?  Is there a way of manually adding references and creating reports?

Thanks for any help.

Derek.
Svetoslav
Telerik team
 answered on 02 Jul 2009
3 answers
425 views
Hi,

I created a datatabe and grouped by Onegroup and another subgroup.

I am displaying the report in report viewer. I can able to view it correctly when i see on the report viewer but i print or export to pdf or excel. the detail section records are appearing two times. I try to solve this problem but fail to do. I don't know what exactly went wrong.

Can you tell me why it appearing two times.

Let me give an example when i view on the report viewer:


Division Group
              Resource Group
                        personname-1          fielddata1     fielddata2    fielddata3    fielddata4
                        personname-2          fielddata1     fielddata2    fielddata3    fielddata4
                        personname-3          fielddata1     fielddata2    fielddata3    fielddata4
---------------------------------------------------------
when print on the paper or convert to any format i am getting the following one:

Division Group
              Resource Group
                        personname-1          fielddata1     fielddata2    fielddata3    fielddata4
                        personname-2          fielddata1     fielddata2    fielddata3    fielddata4
                        personname-3          fielddata1     fielddata2    fielddata3    fielddata4
                        personname-1          fielddata1     fielddata2    fielddata3    fielddata4
                        personname-2          fielddata1     fielddata2    fielddata3    fielddata4
                        personname-3          fielddata1     fielddata2    fielddata3    fielddata4

------------------------------------------------------------

Thanks.

Regards
Arshad








Svetoslav
Telerik team
 answered on 02 Jul 2009
3 answers
374 views
I'm trying to export to tiff and using the code detailed in this article, http://www.telerik.com/community/forums/reporting/telerik-reporting/tif-rendering-extension-not-working.aspx . The difference is that we are using winforms .

I keep getting a RendererNotAvailable exception , I use very similar code for our PDF exports and that works just
fine but not with the TIFF format. Is there an include I am missing or a config that needs setup ? I am explicitly
declaring the deviceinfo hashtable as per the article linked but to no avail.

Chavdar
Telerik team
 answered on 01 Jul 2009
1 answer
85 views
Hi,
I am using Telerik Reporting Q2 2008 and using multiple columns in my report.
When the report generated, the records are ordered from up to bottom,
can I change the way record ordered from left to right?

Thanks in advance
Steve
Telerik team
 answered on 30 Jun 2009
1 answer
125 views
Hi,
Im using chart inside my telerik report. mine is a bar chart. when the value is 2.56 the value is showing as 3. but its positioning at 2.56..i want to display the items value as 2.56 itself.
vin
Top achievements
Rank 1
 answered on 30 Jun 2009
1 answer
90 views
Hi...


When I tried to run a web site in IIS (developed for testing Telerik Report) as described in this tutorial :http://www.telerik.com/support/kb/reporting/general/deploying-telerik-reporting.aspx- Deploying Web Sites, created on a development machine, there is no out put.
when I run the application in Visual Studio, Icould see the Reports but not when published.
 
Is it because of trial version...?

Any help would be greatly appreciated

~Robins
Steve
Telerik team
 answered on 30 Jun 2009
1 answer
71 views
I need a description how to bind two openaccess datasources (master/detail) to a Report.
Steve
Telerik team
 answered on 30 Jun 2009
0 answers
478 views
Been working with Telerik Reporting for three days now, and not particularly pleased (no drilldown, not much direct supported event handling, would have done better to RadGrid this output...). Here, however, is how to add a control to the Telerik toolbar. I want a single generic "Report Viewer" that all my reports can leverage. One benefit is being able to have a central process for user input to control the report display. But the Telerik Reporting toolbar is missing a "height" parameter. And, no direct way I can find to add it. Eck.

Reflection and IE Dev Toolbar to the rescue. IE Dev Toolbar tells me that there exists a <div> entry named ctl_rptvw_ReportToolbar as a child of the report viewer (named "rptvw" in my ascx):

<%

@ Control Language="C#" AutoEventWireup="true" CodeBehind="TelerikReportViewer.ascx.cs"

 

 

Inherits="ArchG2.Portal.rg2SupportingControls.Misc.TelerikReportViewer" %>

 

<%

@ Register Assembly="Telerik.ReportViewer.WebForms, Version=3.0.9.430, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"

 

 

Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>

 

<

 

asp:HiddenField ID="hdnExplicitHeight" runat="server" Value="0" />

 

<

 

div id="telerikViewer">

 

 

<telerik:ReportViewer ID="rptvw" runat="server" Height="300px" Width="100%"

 

 

oninit="rptvw_Init">

 

 

</telerik:ReportViewer>

 

</

 

div>

So I override the oninit and start exploring with  debugger:

 

 

protected void rptvw_Init(object sender, EventArgs e)

 

{

 

string flag = "";

 

 

try

 

 

 

 

{

 

// find the toolbar

 

 

 

 

flag =

"locate_toolbar";

 

 

Control ctlToolbar = rptvw.FindControl("ReportToolbar");

 

 

if (ctlToolbar == null) throw new ApplicationException("No toolbar; new Telerik version?");

 

 

// this is reverse engineered from telerik; might work

 

 

 

 

flag =

"create_controls";

 

 

Table tblHeight = new Table();

 

tblHeight.ID =

"PageHeight";

 

tblHeight.CssClass =

"ReportToolbarGroup";

 

Abr.CodeLibrary.Utils.

Global.MergeCssStyleAttributes(tblHeight.Attributes, "float:left;");

 

tblHeight.CellPadding = 0;

tblHeight.CellSpacing = 0;

 

TableRow rowHeight = new TableRow();

 

rowHeight.ID =

"row";

 

 

TableCell cellHeight = new TableCell();

 

cellHeight.ID =

"cell";

 

 

Label lblHeight = new Label();

 

lblHeight.ID =

"lblHeight";

 

lblHeight.AssociatedControlID =

"txtHeight";

 

lblHeight.Text =

"Height: ";

 

_txtHeight =

new TextBox();

 

_txtHeight.ID =

"txtHeight";

 

_txtHeight.Width =

Unit.Parse("5em");

 

 

LinkButton btnResize = new LinkButton();

 

btnResize.ID =

"btnResize";

 

btnResize.Text =

"Resize";

 

btnResize.Click +=

new EventHandler(btnResize_Click);

 

flag =

"add_controls";

 

cellHeight.Controls.Add(lblHeight);

cellHeight.Controls.Add(_txtHeight);

cellHeight.Controls.Add(btnResize);

rowHeight.Cells.Add(cellHeight);

tblHeight.Rows.Add(rowHeight);

ctlToolbar.Controls.Add(tblHeight);

}

 

catch (Exception ex)

 

{

LH.error(

"Problem at ", flag, ": ", ex);

 

NotifyError(

"Report: " + ex.Message);

 

}

//try

 

 

 

 

}

 

Reflection at first told me that the first child of the ReportToolbar control is of type Telerik.ReportViewer.WebForms.PageNavigationGroup. Too bad that type is not directly supported--it must be a private class. So I instead use good old F12 in the IE browser to turn on Dev Toolbar and take a peek at what Telerik actually generated, which was this:

<table class="ReportToolbarGroup" id="ctl_rptvw_ReportToolbar_NavGr" style="float: left;" cellSpacing="0" cellPadding="0">

Ah, says I, if they can generate a table then I can too! Which led to the code above and a LinkButton. (I could not use a regular Button, *someone* <ahem> put a style of "visible: false !important" on the generated input control. But the LinkButton works great, I get notified, I can respond to requested height changes and Bob's Yer Unkl.

In my btnResize_Click event, I simply set the Height of the wrapped report control (which, btw, I load dynamically from an ASCX property name hyuck hyuck) and I get the effect I want.

Score: 1 for us, zero for them.

Manny
Top achievements
Rank 1
 asked on 29 Jun 2009
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?