Telerik Forums
Reporting Forum
1 answer
1.0K+ views

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

Stef
Telerik team
 answered on 14 Jan 2016
3 answers
83 views
Do I need to buy Report Server in order to use the "interactivity" feature in Report Designer?
Stef
Telerik team
 answered on 13 Jan 2016
1 answer
1.5K+ views

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) 

Stef
Telerik team
 answered on 12 Jan 2016
5 answers
655 views
Hi there

I have a trdx file that contains the definition of my report, when I show it with the reportviewer, I would like to change the signature image to the user that is logged in.

at the moment I have this
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();
}

Im not sure how to access and set the picturebox image before I assign it to the reportViewer. There is no DB data being binded to this report.

Thank you
Rory
Top achievements
Rank 1
 answered on 11 Jan 2016
4 answers
138 views
Hi

I am trying to connect to Osisoft PI through Oledb but get "Index was outside the bounds of the array" message that prevents me from making the connection. I'm using the 32-bit Report designer and 32-bit oledb on 64-bit Windows.

Any ideas? Is there any way I can get more details about the error?
Paul
Top achievements
Rank 1
 answered on 11 Jan 2016
2 answers
240 views

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

Raka
Top achievements
Rank 1
 answered on 11 Jan 2016
1 answer
102 views

Hi,

I am new to telerik.Can u please provide the step by step process to create the report in web application using sqldatasource.

Stef
Telerik team
 answered on 11 Jan 2016
1 answer
53 views

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.

 

Nasko
Telerik team
 answered on 08 Jan 2016
1 answer
132 views

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

 

Iana Tsolova
Telerik team
 answered on 08 Jan 2016
3 answers
218 views

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

Nasko
Telerik team
 answered on 08 Jan 2016
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?