Telerik Forums
Reporting Forum
0 answers
103 views
We are working on a project where we will have somewhere over 100 reports that are going to be accessed/viewed via a web application. The reports will be defined in a separate class. The list of reports will change over time, some will be added, some will be removed. We can recompile and redistribute the reports DLL, but I am trying to avoid having to modify and recompile the applicatoin when the reports change.

What I'd like to do is to somehow automate the list of reports, display a list of reports to the user, with the ability to click and see any of the individual reports. The easiest thing would be is if there was some kind of FOR EACH iteration that I could do to populate a menu or treeview. Alternatively I've looked at storing the report list in a database table and using that for the selection. I would then like to have a single form that includes a reportviewer, and populate/configure the reportviewer when an item is selected.

The Telerik Reporting web demo is something like the interface I'm looking for, with a list of reports and a reusable page section, but I don't think it's dynamic, and it appears to use different ASPX files ror each report -- which I'd like to avoid.

Anyone have any suggestions about the best way to go about this, or better yet an example?
Derek
Top achievements
Rank 1
 asked on 10 Dec 2010
0 answers
176 views
hi there,
i am consuming the telerik reporting in an ASP .NET MVC. Earlier i was showing a static image in the report.Now i want to show it dynamically. This image is located in the location "/Content/images/ReportImages" of ASP .NET MVC project.

in the asp .net mvc i have some(the view ) thing like this
<body>
  <div style="width: 700px; margin-left: auto; margin-right: auto;">
    <a href='/Patients/Show/<%= ViewData["PatientId"] %>' class="button">Current User</a><br />
    <br />
 
    <script runat="server">                      
      //protected override void OnPreRender(EventArgs e) {
      //  ReportViewer1.Report = new Report1();
      //  base.OnPreRender(e);
      //}
 
 
      public override void VerifyRenderingInServerForm(Control control) {
        // to avoid the server form (<form runat="server">) requirement
      }
 
      protected override void OnLoad(EventArgs e) {
        base.OnLoad(e);
 
        // bind the report viewer
 
        var priliminaryReport = new PatientPriliminaryReport();
        priliminaryReport.ReportParameters["patientId"].Value = ViewData["PatientId"];
        priliminaryReport.ReportParameters["userId"].Value = ViewData["UserId"];
 
        ReportViewer1.Report = priliminaryReport;
 
 
      }
 
    </script>
 
    <form id="Form1" runat="server">
    <telerik:ReportViewer ID="ReportViewer1" runat="server" Height="1100px" Width="700px">
    </telerik:ReportViewer>
    </form>
  </div>
</body>

And Here is the reporting class

namespace Faq.Reports {
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;
    using Telerik.Reporting;
    using Telerik.Reporting.Drawing;
 
    /// <summary>
    /// Summary description for PatientPriliminaryReport.
    /// </summary>
    public partial class PatientPriliminaryReport : Telerik.Reporting.Report {
        public PatientPriliminaryReport() {
            //
            // Required for telerik Reporting designer support
            //
            InitializeComponent();
 
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }
 
    }
}

The report contains a "Picture Box" with name "pictureBox1" .


i have already seen some solutions . But as i only aware of MVC frame work . i could not understand the events stuff. so

Can you please help me with this ,keeping my existing code in mind.

Thanks
rafi
Top achievements
Rank 1
 asked on 09 Dec 2010
2 answers
144 views
Hi,

After upgrading Q3 version, i got the following error for reporting. 

An error has occurred while processing Table 'table1':

Group with name 'Group1' already exists. Groups should have unique names.

 

Could someone please help me to attack that problem?

Thanks in advance.

Regards,
NNT
Adam
Top achievements
Rank 1
 answered on 09 Dec 2010
0 answers
93 views
Hi all

I am creating an email application for sending mails, i am stuck in these parts

1. I want to create a report on whether the email is delivered
2. I want to create a report on whether mail is read
3. I want to create a report on if user click on any link


if any 3rd party tool need how to intergrate


Thanks in advance
Vinoth Arun
Top achievements
Rank 2
 asked on 09 Dec 2010
0 answers
439 views

Hi,

I have gone through online documentation of Telerik Reporting tool for Silverlight. The documentation mentions that Silverlight Report Viewer would reside on client side and it would interact with Telerik Reporting WCF service residing on server.

For my scenario, we don’t want to have any WCF component. My Silverlight application is interacting with Java web service. On similar lines, can we have Telerik Reporting Service exposed over Java web service?

Arpit
Top achievements
Rank 1
 asked on 09 Dec 2010
4 answers
264 views
I user exactly below code, But it still show me o pop up to choose Open or Save PDF file. I use Q2_2010_v4_1_10_921












Sub
ExportToPDF(ByVal reportToExport As Telerik.Reporting.Report) Dim reportProcessor As New ReportProcessor() Dim result As RenderingResult = reportProcessor.RenderReport("PDF", reportToExport, Nothing) Dim fileName As String = result.DocumentName + ".pdf"   Response.Clear() Response.ContentType = result.MimeType Response.Cache.SetCacheability(HttpCacheability.Private) Response.Expires = -1 Response.Buffer = True Response.AddHeader("Content-Disposition", String.Format("{0};FileName=""{1}""", "attachment", fileName)) Response.BinaryWrite(result.DocumentBytes) Response.End() End Sub  '. . . ' Sample call to ExportToPDF() ExportToPDF(New Report1())
Steve
Telerik team
 answered on 09 Dec 2010
1 answer
63 views
Recently we have decided to switch from .rdlc reports to Telerik Reporting.  I installed the Q3 2010 version and tried to create a new report.  It created the report just fine, but when the wizard prompted me to create a data source and I specified Object Data source as the type, it causes VS to hang.  If I choose a different data source type, it proceeds to the next screen, but not if I select ODS. 

I'm using VS 2010 Pro, Windows Server 2008 and Q3 2010 Telerik Reporting.  Has anyone else seen anything like this?

Matt
Peter
Telerik team
 answered on 08 Dec 2010
5 answers
182 views
Hello,
I am dynamically adding sub reports to my detail section. Here is my code

Private Sub MasterReport_ItemDataBinding(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.ItemDataBinding
 
 
Dim unitX As Drawing.Unit = Drawing.Unit.Inch(0)
Dim unitY As Drawing.Unit = Drawing.Unit.Inch(0)
Dim size As New Drawing.SizeU(Drawing.Unit.Inch(0.01), Drawing.Unit.Inch(0.01))
Dim ds As DataSet = TryCast(Me.DataSource, DataSet)
Dim index As Integer = 0
 
Me.DetailSection1.Items.Clear()
 
For Each dr As DataRow In ds.Tables(0).Rows
  Dim d As New MyData() 'internal object that executes spocs
  Dim subReport As New Telerik.Reporting.SubReport
  Dim rpt As New NameOfSubReport
 
  subReport.ReportSource = rpt
 
  d.StoredProc = "StoredProcedureName"
  d.Parameters.Add("@PersonID", SqlDbType.Int).Value = dr("PersonID")
  subReport.ReportSource.DataSource = d.ExecuteStoredProcToDataset
 
  subReport.Location = New Drawing.PointU(unitX, unitY)
  subReport.Size = size
   
  Me.DetailSection1.Items.Add(subReport)
 
  unitY = unitY.Add(Drawing.Unit.Inch(0.1))
Next
 
End Sub

For an example we have 2 records in me.datasource. I have verified within the databound event that only 2 subreports are in the detail section. But When I set a break point in the sub report I see it is executed 4 times. If there are 3 records it is executed 6 times etc. I have tried adding to the footer section but got the same result. 

It is important to note that my sub report has 9 sub reports in it. From what I have read online, I assume this is ok

Let me know if I am doing something wrong.
Thanks
Dave B
Peter
Telerik team
 answered on 08 Dec 2010
7 answers
219 views
Hi, just starting using Telerik Reporting as opposed to SSRS and delighted to find I can bind to OpenAccess objects. However I seem to have a problem with a table object.

I created the table using the wizard and everything worked fine. When I wanted to add an additional column to the table, I right-clicked the column header and picked Insert Columns > Right. The new column was created and displayed in the designer BUT even without binding the column to data, if I preview the report I get the error message 'An error has occured while processing Table '': Group with name 'Group1' already esists. Groups should have unique names.'

It does not seem to matter where a column is added or whether one is added to the left or right of the selected column - the error still exists. This is a very simple report with only a table in it. No grouping, sorting, nothing at all.

Any ideas?

Regards,
Jonathan
Steve
Telerik team
 answered on 08 Dec 2010
1 answer
92 views
Hi Telerik,

We were having some performance issues on lower end PCs so we used the EnableRedrawRegions parameter to diagnose.

We found a clash between the standard Silverlight Toolkit BusyIndicator and DataGrid which was causing the page to rapidly and constantly redraw. We have created our own BusyIndicator and that fixed that issue.

We now have the same issue when opening the Telerik Silverlight ReportViewer (i think to do with the BusyIndicator that displays during report load). Even after closing the ReportViewer the issue persists for lifetime of application. Have you seen this issue elsewhere? - do you know of a resolution?

Rav
Steve
Telerik team
 answered on 08 Dec 2010
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?