I'm using: Report Designer Q3 2014 and I can not get run a report that I need to export a report directly to PDF, without the need to go through the web viewer. I'm in a WEB .NET (C#) application and all the examples does not run for one reason or other!!.
I need to pass three parameters to the report and I can not find a usefull example. I already see the article: "Exporting a report to PDF programmatically" but still not function.
For example I've used this code:
Telerik.Reporting.Processing.ReportProcessor reportProcessor =
new Telerik.Reporting.Processing.ReportProcessor();
// set any deviceInfo settings if necessary
System.Collections.Hashtable deviceInfo =
new System.Collections.Hashtable();
Telerik.Reporting.TypeReportSource typeReportSource =
new Telerik.Reporting.TypeReportSource();
// reportName is the Assembly Qualified Name of the report
typeReportSource.TypeName = reportName;
Telerik.Reporting.Processing.RenderingResult result =
reportProcessor.RenderReport("PDF", typeReportSource, deviceInfo);
string fileName = result.DocumentName + "." + result.Extension;
string path = System.IO.Path.GetTempPath();
string filePath = System.IO.Path.Combine(path, fileName);
using (System.IO.FileStream fs = new System.IO.FileStream(filePath, System.IO.FileMode.Create))
{
fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
}
And in this case shows the next error:
Line 88: Telerik.Reporting.Processing.RenderingResult result = Line 89: reportProcessor.RenderReport("PDF", typeReportSource, deviceInfo);
Looks like is NULL de "deviceInfo"....
Please help!...any help would be appreciated
David
When I try to open any of the reports in the designer I am currently getting this error The stack trace is
Instances of this error (1)
at
System.ComponentModel.TypeDescriptor.AddAttributes(Object instance, Attribute[]
attributes)
at
Microsoft.VisualStudio.Design.VSDesignSurface.CreateDesigner(IComponent
component, Boolean rootDesigner)
at
System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent
component, String name, IContainer containerToAddTo)
at
System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component,
String name)
at
System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type
componentType, String name)
at
System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type
type, ICollection arguments, String name, Boolean addToContainer)
at
System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type
type, ICollection arguments, String name, Boolean addToContainer)
at
System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager
manager, CodeTypeDeclaration declaration)
at
System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager
manager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager
serializationManager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32
fReload)
System.Xml.XmlReaderSettings settings = new System.Xml.XmlReaderSettings();settings.IgnoreWhitespace = true;using (System.Xml.XmlReader xmlReader = System.Xml.XmlReader.Create(templatePath, settings)){ Telerik.Reporting.XmlSerialization.ReportXmlSerializer xmlSerializer = new Telerik.Reporting.XmlSerialization.ReportXmlSerializer(); Telerik.Reporting.Report certificateReport = (Telerik.Reporting.Report)xmlSerializer.Deserialize(xmlReader); uxCertificateViewer.ReportSource = certificateReport; uxCertificateViewer.RefreshReport();}Hello
I have a DB table that looks like --
Type SubType Count
A 5
B 10
C C1 4
C C2 2
D 1
E 100
I want to show the report as --
A: 5 B: 10
C: D: 1
C1: 4
C2: 2
E: 100
Preferably I would like to do this w/o creating a wrapper for the table.
How can I do it?
Thanks, Raka
Hi,
I am new to telerik.Can u please provide the step by step process to create the report in web application using sqldatasource.
I have table with millions of data.
My requirement is below
I have to generate report with grid and chart on single page.
Which should support 10000 record per page.
and in export it should export all data in table with images in html.
Can telerik report work as per my requirement.
We have the license copy of telerik.
Please Help me for it.it is our urgent requirement.
Based on previous years, Telerik Reporting Q1 releases usually occur in mid-late February. Since that date is a little more than 1 month away, when do you plan to post the Q1 2016 Roadmap?
http://www.telerik.com/support/whats-new/reporting/roadmap
Hi
Quick question to put out there, is it possible using Telerik Reporting to create a contents page that is built from either section names or sub reports within the main report.
This needs to reflect sub reports etc if they are programatically added too
Is this at all possible and if so could someone point me to some examples of how to do this.
Many Thanks
Tony