Telerik Forums
Reporting Forum
17 answers
352 views
Hi,

I´m working on a report which uses PictureBoxes as links. This has been achieved by assigning an action to each PictureBox I want to become a link. On Preview mode, the PictureBoxes open the specified link when clicked, but when the report is saved to PDF, the PictureBoxes are displayed on the output PDF but nothing happens when I click on them.

I inadvertently installed Q2 2010 version over the Q1 2010. Since then, I´ve even used System Restore to restore the system to prior to the first installation of Q2, and then uninstalled Q1 and reinstalled Q2, but it keeps not rendering actions. I´m not sure whether this is the cause, but it could be, who knows?...

Thanks in advance,
Geraldo
pedrotti
Top achievements
Rank 1
 answered on 17 Jul 2012
0 answers
91 views
Hi,
I need to know whether there is any possibile to create multiple series in pie chart.



Thanks & Regards,
Gunasekar
Gunasekar
Top achievements
Rank 1
 asked on 17 Jul 2012
5 answers
146 views
I'm passed an object as a datasource. It's a user-made(basically an array of hashtables)  I use this on subreports, and they populate fine. But the data repeats for numrows ^ #of nested subreports). How can I modify the datasource on subreports, to act like group programmatically?

needDataSource calls this:

        protected void shareData(object sender, EventArgs e)
        {
            Telerik.Reporting.Processing.ReportItemBase subreport = sender as Telerik.Reporting.Processing.ReportItemBase;                                   
            subreport.ItemDefinition.Report.DataSource = this.DataSource;             
        }
Peter
Telerik team
 answered on 17 Jul 2012
1 answer
210 views
Hi

i added a adjacent below group to my table (group by Week number) but the new created rows are all located at the end of the table.

I would like to locate them at the end of each group section.

Maybe the problem is that my table is located in GroupHeaderSection ?

See the attached file please.

Thank you
IvanY
Telerik team
 answered on 16 Jul 2012
1 answer
84 views
Hi

I have a report in which all data are contained in a table object,  at run-time I am binding my business object to the table itself.

I  place the table object in the detail section but in this case the table header is repeated for every row.

Is there a technique that I am missing? What is the proper method?

Can you give me an example please ?

Thanks
Petio Petkov
Telerik team
 answered on 16 Jul 2012
1 answer
88 views
Dear Telerik,

How to use telerik reporting designer within my C# project. I mean something like ActiveX COM.

Thanks in Advance....
Petio Petkov
Telerik team
 answered on 16 Jul 2012
3 answers
98 views
Ideally, I would like to do accomplish the following:

IEnumerable<MyPoco> pocos = _reportingTasks.GetMyPocos();

 var report = new MyPocoReport {DataSource = pocos};

ReportViewer1.ReportSource = new InstanceReportSource {ReportDocument = report};


Basically, because of how are dependencies are set up, I would like to hand my report a pre-populated list rather than setting the DataSource and DataMember properties on the objectDataSource and letting the report execute my query.  All the examples I have found either perform data access in the DataSource object or pre-populate a collection in the constructor (like the List Bound report demo).  Any thoughts?
IvanY
Telerik team
 answered on 13 Jul 2012
1 answer
305 views
The documentation indicates that parameter values can be static:
"Parameters can contain single values or multiple values, use a static or query-based valid values list
Yet goes on to say
"To define available values for a parameter you need to setup the following nested properties:
 DataSource –

Is it possible to create static parameter values at design time?  (E.g. Y,N )
how?

Elian
Telerik team
 answered on 13 Jul 2012
1 answer
166 views
Hi,
i tried to add a multiple sorting to a table object, but it didnt worked the way it should.

Could you give me a short example how to add multiple sortings?

Thanks,
Michael
Elian
Telerik team
 answered on 13 Jul 2012
3 answers
1.8K+ views
I am new to Telerik. I have working code to create/export to PDF. How do I adapt this code to export to Excel? The PDF version just builds a string and inserts it into the body of the report.

Code is below, any help is greatly appreciated.

 

private Telerik.Reporting.Report GetPlainReport(bool showPageCountFooter = true)

{

Telerik.Reporting.

 

Report report = new Telerik.Reporting.Report();

report.PageSettings.Landscape =

 

false;

report.PageSettings.Margins.Bottom =

 

new Telerik.Reporting.Drawing.Unit(2.5D, Telerik.Reporting.Drawing.UnitType.Cm);

report.PageSettings.Margins.Left =

 

new Telerik.Reporting.Drawing.Unit(2.5D, Telerik.Reporting.Drawing.UnitType.Cm);

report.PageSettings.Margins.Right =

 

new Telerik.Reporting.Drawing.Unit(2.5D, Telerik.Reporting.Drawing.UnitType.Cm);

report.PageSettings.Margins.Top =

 

new Telerik.Reporting.Drawing.Unit(2.5D, Telerik.Reporting.Drawing.UnitType.Cm);

report.PageSettings.PaperKind = System.Drawing.Printing.

 

PaperKind.A4;

Telerik.Reporting.

 

PageHeaderSection header = new Telerik.Reporting.PageHeaderSection();

header.Height =

 

new Telerik.Reporting.Drawing.Unit(1D, Telerik.Reporting.Drawing.UnitType.Cm);

Telerik.Reporting.

 

TextBox txtTitle = new Telerik.Reporting.TextBox();

txtTitle.Location =

 

new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Cm));

txtTitle.Name =

 

"htmlTitle";

txtTitle.Style.Font.Bold =

 

true;

txtTitle.Style.Font.Name =

 

"Arial";

txtTitle.Style.Font.Size =

 

new Telerik.Reporting.Drawing.Unit(16D, Telerik.Reporting.Drawing.UnitType.Point);

txtTitle.Style.TextAlign = Telerik.Reporting.Drawing.

 

HorizontalAlign.Left;

txtTitle.Size =

 

new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(16D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(1D, Telerik.Reporting.Drawing.UnitType.Cm));

txtTitle.Value =

 

"{Parameters.Title.Value}";

header.Items.Add(txtTitle);

Telerik.Reporting.

 

DetailSection body = new Telerik.Reporting.DetailSection();

body.Height =

 

new Telerik.Reporting.Drawing.Unit(22.5D, Telerik.Reporting.Drawing.UnitType.Cm);

Telerik.Reporting.

 

HtmlTextBox htmlBody = new Telerik.Reporting.HtmlTextBox();

htmlBody.Location =

 

new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Cm));

htmlBody.Name =

 

"htmlBody";

htmlBody.Size =

 

new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(16D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(22.5D, Telerik.Reporting.Drawing.UnitType.Cm));

htmlBody.Value =

 

"{Parameters.Body.Value}";

body.Items.Add(htmlBody);

Telerik.Reporting.

 

PageFooterSection footer = new Telerik.Reporting.PageFooterSection();

footer.Height =

 

new Telerik.Reporting.Drawing.Unit(1D, Telerik.Reporting.Drawing.UnitType.Cm);

 

if (showPageCountFooter)

{

Telerik.Reporting.

 

TextBox txtFooter = new Telerik.Reporting.TextBox();

txtFooter.Location =

 

new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Cm));

txtFooter.Name =

 

"htmlFooter";

txtFooter.Style.TextAlign = Telerik.Reporting.Drawing.

 

HorizontalAlign.Right;

txtFooter.Size =

 

new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(16D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(1D, Telerik.Reporting.Drawing.UnitType.Cm));

txtFooter.Value =

 

"=PageNumber + ' / ' + PageCount";

footer.Items.Add(txtFooter);

}

report.Items.AddRange(

 

new Telerik.Reporting.ReportItemBase[] { header, body, footer });

report.ReportParameters.Add(

 

new Telerik.Reporting.ReportParameter("Title", Telerik.Reporting.ReportParameterType.String, null));

report.ReportParameters.Add(

 

new Telerik.Reporting.ReportParameter("Body", Telerik.Reporting.ReportParameterType.String, null));

 

return report;

}


Elian
Telerik team
 answered on 13 Jul 2012
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?