This is a migrated thread and some comments may be shown as answers.

ReportRendering Class not found in Telerik.Reporting.Processing Namespace

1 Answer 178 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ajay Khedekar
Top achievements
Rank 1
Ajay Khedekar asked on 15 Sep 2009, 03:13 PM

Hello,

           I want to generate PDF output on Click of ASP.NET Button click.I am using following code to generate it

         

private

void ExportToPDF(Telerik.Reporting.Report reportToExport)

 

{

Telerik.Reporting.Processing.

ReportProcessor reportProcessor = new ReportProcessor();

 

Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport(

"PDF", reportToExport, null);

 

 

string fileName = result.DocumentName + ".pdf";

 

Response.Clear();

Response.ContentType = result.MimeType;

Response.Cache.SetCacheability(

HttpCacheability.Private);

 

Response.Expires = -1;

Response.Buffer =

false;

 

Response.AddHeader(

"Content-Disposition",

 

 

string.Format("{0};FileName=\"{1}\"",

 

 

"attachment",

 

fileName));

Response.OutputStream.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);

Response.End();

}


in above code "ReportProcessor" class is available in "Telerik.Reporting.Processing" Namespace, but I cant see "RenderingResult" class.Also I can't find  "RenderReport" method on "reportProcessor" object.I have added both the required dll ie. "Telerik.Reporting" and "Telerik.Reporting.Processing" .But I am using trial version of this Control.

So, is it a issue related to trial version dlls or am i miising any reference thats needs to be done?

Any help would be highly appreciated.

Thanks in advance.

Regards,
Ajay

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 17 Sep 2009, 01:09 PM
Hello Ajay,

This approach for exporting the report has been introduced in Q2 2009 release. We did not find any download history for your account, so we cannot really say which version you're using, but we assume it is older than Q2 2009. You have two options:
  • open the reporting help for the exact version you're using from your Visual Studio in order to see how the programmatic export worked prior to Q2 2009.
  • upgrade to the latest version since you're still evaluating and not in the middle of project development.
Trial versions are fully functional and do not impose any limitations. The only difference between trial and dev is the trial message you see and the fact that you have only 60 days of free support while evaluating.
Greetings,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Ajay Khedekar
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or