Telerik Forums
Reporting Forum
4 answers
273 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
66 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
192 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
231 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
104 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
5 answers
199 views
One of my developers is working on converting a number of existing reports (~100) for a web application. The reports require a consistent layout; logo, font styles, header layout, footer layout, margins, etc.

What we'd like to do is create a report template, then base all reports on that template; it should be possible to make modifications only to the template (or at least only in a single location) and have those changes propagated through all reports. The reports use different data sources, and will vary in terms of grouping levels and content, but we'd like to keep the overall appearance consistent.

Is this possible? If so where do we start?
Derek
Top achievements
Rank 1
 answered on 08 Dec 2010
1 answer
81 views
i would like to be able to create reusable classes / components for things such as page headers and footers so that when later modified all reports automatically change

is there anything already in telerik reporting to support this ?

i played with creating subclasses of for example PageHeaderSection and it does work but i loose the ability to design them visually and also the report designer doesnt show the content of the section allthough the preview in the designer does

thanks

Mike
Peter
Telerik team
 answered on 07 Dec 2010
1 answer
61 views
The Report Viewer is not loaded properly. I come across lot of JavaScript errors. please see the attached image. Please guide what can be done?
Steve
Telerik team
 answered on 07 Dec 2010
2 answers
106 views

Hi there,

I want to add subreports dynamically as per the selection. The detail scenario are as follows

1. I have 3 silverlight check box control and 3 reports as rpt1, rpt2 and rpt3.
2. If a user select first two check box then I want to display rpt1 and rpt2.
3. If a user select second and third check box then I want to display rpt2 and rpt3.
4. If a user select first and third check box then I want to display rpt1 and rpt3.

Thanks

rupesh
Top achievements
Rank 1
 answered on 07 Dec 2010
1 answer
86 views

Hi there,

I want to add the reports in report book dynamically as per the selection. The detail scenario are as follows

1. I have 3 silverlight check box control and 3 reports as rpt1, rpt2 and rpt3.
2. If a user select first two check box then I want to display rpt1 and rpt2 in report book.
3. If a user select second and third check box then I want to display rpt2 and rpt3.
3. If a user select first and third check box then I want to display rpt1 and rpt3.

Thanks

 

 

Peter
Telerik team
 answered on 06 Dec 2010
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?