Telerik Forums
Reporting Forum
3 answers
301 views
Here is some code I borrowed (from other reporting packages) to export a report to pdf. I have an empty aspx page that runs this code on load (after reading some url parameters).

MyReport report = new MyReport(); 
string mimeType = string.Empty; 
string extension = string.Empty; 
Encoding encoding = null
byte[] buffer = Telerik.Reporting.Processing.ReportProcessor.Render("PDF", report, nullout mimeType, out extension, out encoding); 
Response.Clear(); 
Response.Buffer = true
Response.ContentType = "application/pdf"
Response.BinaryWrite(buffer); 
Response.End(); 

You have to be sure to reference Telerik.Reporting.ImageRendering

I was having some issues with the layout of a simple nested sub report. The spacing is fine in Design View but way off in html view. So this is my fix for now.
Svetoslav
Telerik team
 answered on 03 May 2007
2 answers
206 views
This may have been answered, if so point me into the right direction please.

With reporting, am I to understand that currently the designer only works in windows forms, or am I missing something. I cannot seem to find a way to design the form in an web form application.

Thanks.
TadR
Top achievements
Rank 1
 answered on 02 May 2007
2 answers
205 views
Have you guys seen any issues with adding the SQLDATASOURCE to the Telerik Reporting 1.0 tab.  In the report designer its grayed out when I check "show all" in the tab.  I've gone through the steps of "Choose Items" and checked SQLDATASOURCE.
Ramey Chapman
Top achievements
Rank 1
 answered on 02 May 2007
2 answers
94 views
I get the following when I try to run the demo for webforms. I also get the get_size() method not declared when I try to edit a report through the Designer.


Server Error in '/WebDemo' Application.

Method not found: 'Telerik.Reporting.Drawing.SizeU Telerik.Reporting.Processing.ReportSectionBase.get_Size()'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.MissingMethodException: Method not found: 'Telerik.Reporting.Drawing.SizeU Telerik.Reporting.Processing.ReportSectionBase.get_Size()'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[MissingMethodException: Method not found: 'Telerik.Reporting.Drawing.SizeU Telerik.Reporting.Processing.ReportSectionBase.get_Size()'.]
Telerik.Reporting.HtmlRendering.ItemGroup.NeedsNewPage(Int32 remainingPageHeight) +0
Telerik.Reporting.HtmlRendering.HtmlReportProcessor.RenderItemGroup(ItemGroup groupToRender, Int32& remainingPageHeight) +121
Telerik.Reporting.HtmlRendering.HtmlReportProcessor.ProcessMiddlePages() +239
Telerik.Reporting.HtmlRendering.HtmlReportProcessor.ProcessReportPages() +45
Telerik.Reporting.HtmlRendering.HtmlReportProcessor.get_Pages() +226
Telerik.Reporting.HtmlRendering.HtmlReportProcessor.ProcessPages(Int32 startPage, Int32 endPage) +146
Telerik.Reporting.HtmlRendering.HtmlReport.Render(HtmlTextWriter writer) +131
Telerik.Reporting.HtmlRendering.HtmlRenderingExtension.Telerik.Reporting.Processing.IRenderingExtension.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +240
Telerik.Reporting.Processing.ReportProcessor.Render(String format, Report reportDefinition, Hashtable deviceInfo, CreateStream createStramCallback) +211
Telerik.ReportViewer.WebForms.ServerReport.Render(HttpResponse response, String format, Int32 pageNumber, Boolean refresh) +1020
Telerik.ReportViewer.WebForms.ReportPageOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response) +145
Telerik.ReportViewer.WebForms.HttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) +192
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
Jim Richmond
Top achievements
Rank 1
 answered on 02 May 2007
3 answers
237 views
The only item in the web report viewer's list of export formats is the one that says "select export format". How do I get the others to appear?
surfer
Top achievements
Rank 1
 answered on 01 May 2007
1 answer
161 views
I have created my first Telerik Report and I can preview it with both regular and HTML. My question, is now how do I get that to the report viewer that is on my webform? I tried to follow the documentation but I am missing something.

Anyone with some advice?

Thanks,
ernie racer
Top achievements
Rank 1
 answered on 01 May 2007
1 answer
245 views
I un-installed the Beta 2 and I have installed the latest version. Here are some issues I ran into:

1) When I 'Add Project Data Source', I select an ODBC database and I get "More restrictions were provided than the requested schema ('Tables') supports." Can't go any further, so I try some alternatives:

2) I then manually drag and drop an odbcConnection and configure a odbcDataAdapter similar to how I did with Beta2. Since I can't select the DataAdapter in the report's DataSource property, I generate a DataSet and select that. However, I get a 'Object reference not set to an instance of an object' (I can view the data). So to get it to work, I go into the designer code and manually set the DataSource property to the DataAdapter I created.

3) For testing, I tried to create a Business Object. I selected an assembly and class from another project and I can't seem to specify a method in the class or the needed parameters for the method. Is this supported?

4) Beta 2 reports are not supported in this version. I guess I can live with that as it was a beta. To fix, I just comment out some of the designer code that causes the issues, and the reports seems to run ok. Is this safe, or should I try to manually convert Beta 2 reports to this version via a copy and paste strategy?

5) This not an issue and probably too late to fix, but... It would be nice if SQL 2005 wasn't required for the Quick Starts (as I don't have it installed on my dev machine). An Access db would of been good.

Thanks, Jim
Svetoslav
Telerik team
 answered on 26 Apr 2007
1 answer
139 views
Hi,

There is a major regression in release 1.0 of yesterday.  We no longer can set the datasource of a report to a sqlDataAdapter.
First of all the sqlDataAdapters on the report do not show up under datasource to pick from even after rebuilding.
Second, adding a project source from the designer has no effect on the reportviewer.
If you need to see a demo of this, please let me know and I can upload a 2 minute screencast to demonstrate

Thanks for any help with this
LT
Rossen Hristov
Telerik team
 answered on 26 Apr 2007
1 answer
171 views
Is there an example anywhere of localizing a report for multiple languages?  Are the reports able to support pulling thier strings from standard .net resources using the resourcemanager.getstring method?

Localization is the #1 downfall of most reportings systems, I haven't had time to play with this yet, but it looks very promissing...

Chavdar
Telerik team
 answered on 26 Apr 2007
3 answers
216 views
I had Beta 2 installed on my development server, and I've now run the upgrade to yesterday's release. Did anything actually change between releases? The GAC still shows the dll's are version 1.0.0.0. Is there any way I can check to be sure I am in fact running the latest version?

Thanks!
Vassil Petev
Telerik team
 answered on 25 Apr 2007
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?