Telerik Forums
Reporting Forum
0 answers
84 views
Hi,

1. Can basic predefined reports be programmatically altered based on run-time conditions?  For example can a basic listing report be programmatically changed to accomodate different table layouts such as a Customer Table or a Product table? 

2. Can the Telerik light-weight DataTable be used as a data source?

Thanks

Rich
Richard Harrigan
Top achievements
Rank 1
 asked on 09 Apr 2011
4 answers
147 views
Just installed 2011 Q1 Reporting and if I double click to enter content in the HTMLTextbox VS2010 crashes.  This is a winforms app and the same thing happens with the Telerik sample reports app.
David A.
Top achievements
Rank 1
 answered on 09 Apr 2011
2 answers
94 views
Hello all,
I have been working with reports for the past one month or so. I am presently working with subreports.
Say I have a telerik reporting file (report_1) which has a subreport element in it. In the same project as report_1 is, I have couple of other telerik reporting files. Cant I refer these reporting files as report source of the subreport in report_1?
If yes, I am not able to see them in the dropdown of the reportsource property.
If no, why?
Or is there anything that I am missing? or, is there anything that I need to do to get the reporting files on to the dropdown.
I have seen your previous postings, which said about re-building the project. But, I am  not building the project through visual studio. So, please suggest what can be done.
Yash
Top achievements
Rank 1
 answered on 08 Apr 2011
2 answers
70 views
When I can set the datasource property for a report from a .aspx.cs page, can't I set or get report elements from the aspx.cs page using the report object. If so, how can I do it?

This is what I did, but was unsuccessful. Made all report elements public.
Created an instance of the report object.
and I am trying to set the image of a picturebox through this instance. But couldnt do it. Why? is it possible to do it? if so how?
Yash
Top achievements
Rank 1
 answered on 08 Apr 2011
1 answer
75 views
Hello I want to use the asp:chart sample  in VB but i can't get  me.picturebox.ItemDataBinding in my application
it is not available

 

 

in designer.vb my code is

Me
.PictureBox1 = New Telerik.Reporting.PictureBox

 

 

 

'PictureBox1

 

 

Me.PictureBox1.Location = New Telerik.Reporting.Drawing.PointU(New Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Cm), New

Telerik.Reporting.Drawing.Unit(42.799999237060547, Telerik.Reporting.Drawing.UnitType.Cm))

 

Me.PictureBox1.Name = "PictureBox1"

 

 

 

 

 

Me.PictureBox1.Size = New Telerik.Reporting.Drawing.SizeU(New Telerik.Reporting.Drawing.Unit(13.500100135803223, Telerik.Reporting.Drawing.UnitType.Cm), New
Telerik.Reporting.Drawing.Unit(10.000002861022949, Telerik.Reporting.Drawing.UnitType.Cm))

 

Me.PictureBox1. ??????

 

 

Private

 

PictureBox1 As Telerik.Reporting.PictureBox

 

 

 

at the ??? there is no Itemdatabinding available

I use picturebox 4.0.10.423

The sample you provided works without any problem. But above code us used in a separate class and causes problems

Please help,

Mart

Squall
Top achievements
Rank 1
 answered on 08 Apr 2011
1 answer
103 views
Hello Telerik Team,

We have problems with printing report from client side when default printer has set portrait A4 format and report is formatted as landscape A4 format.

In our company we don't use Adobe Reader, instead of it we are using a free PDF Reader application http://www.tracker-software.com/product/pdf-xchange-viewer (this is not an advertisement :). For futher information please check the attachment.

Our problems could be solved with above mentioned software. I wonder, if it will be possible to add a new option into PrintAs(format) based on http://www.telerik.com/help/reporting/asp-net-report-viewer-clientapi.html. Now, there are two basic formats. PDF and default. In our case PDF is not working (it is obviously suitable only for Adobe Reader plugin) and default don't do auto-rotate sheets which simply rotate from portrait to landscape...

So, my question is about possibility to add this new option PrintAs for pdf xchnage viewer into future version of Telerik Reporting...

Thank you for your hep and support.

Best regards

Vasssek
Hrisi
Telerik team
 answered on 08 Apr 2011
1 answer
91 views
Hi,

I have a subroutine in my report that adds parameters to my sqldatasource:
Public Class SalesReport
    Inherits Telerik.Reporting.Report
    Public Sub New()
        InitializeComponent()
    End Sub
    Public Sub AddDataSourceParameter(ByVal sParameterNaam As String, ByVal tDBType As System.Data.DbType, ByVal oValue As Object)
        Me.SqlDataSource1.Parameters.Add(sParameterNaam, tDBType, oValue)
    End Sub
End Class

I want to call this subroutine from the webpage that I use to create a PDF from the report. (using the sample code from this website)
Sub ExportToBrowser(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
As you can see this is a generic function that only requires a Telerik report parameter.
So, in my code, I declare the report like this:
Dim report As Telerik.Reporting.Report = New ReportLib.SalesReport
However, this way I can't access my function 'AddDataSourceParameter'.
It only works if I declare it like this:
Dim report As ReportLib.SalesReport = New ReportLib.SalesReport
But this way I no longer have a generic report type to use in my ExportToPDF function.

Is there another way to do this?
(I'm not looking at another way to bind my parameters, but another way to access this sub. This is just an example)

Thanks,
CJ
Squall
Top achievements
Rank 1
 answered on 08 Apr 2011
5 answers
842 views
Dear Telerik,

I'm using the CrossTab report for the first time, and have a very simple (seemingly) report. The rows of the report contain a list of equipment numbers, the columns contain a list of dates rotated 90 degrees, and the detail cell contains a simple integer value (like 30, 60, 90).

The report could produce 200-300 rows of equipment numbers, AND 100-200 dates across the top. (This report is "tall" and "wide")

For the life of me, I can't figure out how to get the "horizontal" data to break to new pages (and thereby repeating the equipment numbers, with the next set of dates at the top). It simply vaporizes off the side of the report. I have set the page size, and have tried the "KeepTogether" properties of all controls, etc.

The report is producing the proper layout...data..etc. I just need it to break new pages when it grows too wide for the page, and repeat the eqiupment numbers on the new page.

I have read the report tutorial PDF, and have scoured the website for an answer...I must be missing something simple...

Thanks!

Jason Perry
Hrisi
Telerik team
 answered on 08 Apr 2011
1 answer
225 views
Hello Team,

I am using Telerik Reporting Version=5.0.11.316 in my MVC application, it is working fine while in development but when i publish/host the application on same machine report does not work, i have followed all the steps and referenced required DLL but still it's not working, please let me know if i have missed any thing while publishing the application. I have attached a screen shot, please have a look.



Regards
Mridul Sharma



  
Mridul
Top achievements
Rank 1
 answered on 08 Apr 2011
0 answers
83 views
Why items keep repeating themselves in the report?
Ahmed
Top achievements
Rank 1
 asked on 07 Apr 2011
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?