Telerik Forums
Reporting Forum
3 answers
258 views


Hi ,

           How can I print Telerik  Report  using  C#.net  in asp.net

Eg:  
        // Report Viewer Object
        Telerik.ReportViewer.WebForms.ReportViewer objRV = new Telerik.ReportViewer.WebForms.ReportViewer();
       // Report object
        FeeCollectionIndvidualDetailsReport objrpt = new FeeCollectionIndvidualDetailsReport();

        objRV.Report = objrpt;
        objRV.RefreshReport();
  
         objRV.PrintReport();   // Function didn't find

      Thanks & Regards
      Praveen


         

  


Steve
Telerik team
 answered on 02 Jun 2010
9 answers
553 views
Dear All,
I have two problems with telerik reporting, could anyone give me some helps?
  1.How to hide the row(s) in a table(each rows have more than 1 columns)
  2.How to custom the export method for exporting the data to Excel/PDF file.


best wishes.
Peter
Telerik team
 answered on 02 Jun 2010
5 answers
141 views
Is there a way for changing the default labels of Silverlight report viewer? We have to translate them in Italian language for an our application.

Thank you 
Adriano
Steve
Telerik team
 answered on 02 Jun 2010
1 answer
59 views
Hello,
I just need to know if Telerik Reporting permits me to mark a piece of the report I create for reading the content after the pdf has been created...

I put some customer detail into a report, I need to scan the generated file later and then to read the content and write it to xml...
Thanks

Paolo
Steve
Telerik team
 answered on 01 Jun 2010
5 answers
300 views
Hi,

   I'm having chart in detail section. I need to bind the chart based on the item value of the report. I directly bind the chart in the detail_ItemDataBound without NeedDataSource event for the chart. I didn't get the chart. Then i try adding NeedDataSource event for the chart. But this gets executed before detail_ItemDataBound. Again I didn't get the chart. Then i tried detail_ItemDataBinding event to get value. Later i use the function for binding chart which i call in detail_ItemDataBound or in detail_ItemDataBinding. Still i didn't get the chart. All i get is there is no or empty series.

How can i bind the chart which is in detail section?

Here is the code which i use the bind the chart. Assume dt is DataTable holding data.
if (dt.Rows.Count > 0)
                {

                    for (int i = 0; i < dt.Rows.Count; i++)
                        total += Convert.ToInt32(dt.Rows[i]["Cnt"]);

                    Telerik.Reporting.Processing.Chart chtCur = sender as Telerik.Reporting.Processing.Chart;
                   
                    this.chtCur.Series.Clear();
                    this.chtCur.ChartTitle.TextBlock.Text = "Factors";
                    for (int i = 0; i < dt.Rows.Count; i++)
                    {
                        Telerik.Reporting.Charting.ChartSeries chartseries = new Telerik.Reporting.Charting.ChartSeries();
                        Telerik.Reporting.Charting.ChartSeriesItem item = new Telerik.Reporting.Charting.ChartSeriesItem();
                        item.Label.TextBlock.Text = dt.Rows[i]["Val"].ToString() + "\n" + (Convert.ToInt32(dt.Rows[i]["Cnt"]) / total * 100).ToString() + "%";
                        item.Name = dt.Rows[i]["Val"].ToString();
                        item.YValue = Convert.ToInt32(dt.Rows[i]["Cnt"]) / total * 100;
                        chartseries.Type = Telerik.Reporting.Charting.ChartSeriesType.Pie;
                        chartseries.Name = dt.Rows[i]["Val"].ToString();
                        chartseries.Items.Add(item);
                        this.chtCur.Series.Add(chartseries);
                    }
                    pnlCur.Visible = true;
                }
                else
                    pnlCur.Visible = false;

Please help.
Thanks in advance.
Steve
Telerik team
 answered on 01 Jun 2010
1 answer
201 views
I've a report with 9 sub-reports all in detail section. I specified page break in the sub-reports. In Designer Preview, i see 12 pages for the entire report. When i view the report from report viewer, i see only one page comprising all the reports. But when i export it to pdf, i can see the 12 pages in the pdf. Why does the report in reportviewer behaves differently? It should be same as in preview is it? Is there anyway to show the report correctly in the reportviewer?

Another problem is,
I've a PictureBox object having a big image (say A4 size). In Designer Preview, i'm able to see the image clearly. But when i view from reportviewer, i cannot see full image or i don't see image at all. But when i export to pdf, i'm able to see the image in the pdf. Why does this happens? Any solution to fix this?
Peter
Telerik team
 answered on 01 Jun 2010
2 answers
137 views

Hi

Is there a way to get an error message(or code)  when the contents of a htmltextbox isn’t supported (eg: <TABLE> tag)?  

Many thanks

Girard Loic
Top achievements
Rank 1
 answered on 31 May 2010
1 answer
117 views
Thanks for blog at http://blogs.telerik.com/kevinbabcock/posts/09-02-06/bind_your_telerik_reports_to_xml_data.aspx

and thanks for the VB source code. It sure helps when learning VB and Visual Studio and Telerik Reporting at the same time.

I've checked out the code for Class Entity to define the XML fields and it makes sense how my XML is four nodes deep.

Can I get some help please to create the required code? Many thanks

Nick
Top achievements
Rank 1
 answered on 31 May 2010
3 answers
292 views
Hey there guys.

I have a strange problem with a report of mine.

Basics:
UnitOfMeasure is cm (i'm from germany)
Paperkind is A4
Landscape is false
Margins are set to 10mm each side
Got some normal datafields from a dataset and a picturebox
The items are filled as they should.
Picturebox is set to ScaleProportional

Issue:
I want my report with 2 columns.
Its an labeled report and the bounds, margins, paddings and so on are as set as the 2 cloumns will fit on the document.
The designer is showing me the second column but if i run the report in my application, the second column will not appear.
The first column is as long as the whole document (it looks like streched).

I've tried various settings on the meassures but nothing will work.

Hopefully some of you has an idea how to fix my issue.

Regards, Tom

[UPDATE]
The problem occurs only if the picturebox value is set by the following code:
this.pictureBox1.Value = "= snvMain.GlobalParams.getImageToArticle(Fields.artnr)";
The function called returns the ImagePath as string.
Reportviewer even loads the image in the Picturebox and later its getting an GDI+ error too.

Slowly but sure it drives me to despair :/
Steve
Telerik team
 answered on 28 May 2010
1 answer
203 views
Hi There,

I am trying telerik reports, what i wanted do is to include the Datatable schema from a xml file, use these fields to design report, and then bind data to this runtime (As I used to do this in Crystal Reports). But on Forum I found that in Telerik XML Schema is not available at design time.
    I tried the anather way i.e. Adding the DataSet to Project (Not filling Table using TableAdapter) and use DataTable from this DataSet, But Ahhhh, I cant see this dataset while assining or adding new datasource, neither as CurrentDataSource nor as ProjectDataSource.


I hope I am clear, and you get what exactly I wanted to say,

Is there any solution for this, I mean to say, to use table schema at design time and assign datasource at runtime as i used to do in Crystal Report.
Imp: your query builder does not help me a lot beacuse I use MySQL, and it does not supports MySQL Stored Procedures.


Thanx for the Help.
Steve
Telerik team
 answered on 28 May 2010
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?