Telerik Forums
Reporting Forum
1 answer
1.2K+ views
Hello,
I am getting this error when running an application that loads my class library which presents a reportviewer in a windows form

"System.ArgumentException: Cannot bind to the target method because its signature or security transparency is not compatible with that of the delegate type."

My class library is built using Visual Studio 2010 and C#, targetting .Net Framework 4 and Platform is set to AnyCPU. I have tried with both Q3 2012 and Q1 2013 versions of Telerik Reporting but I get the same error.

I have also installed on the same machine Visual Studio 2012 and the .Net Framework version seems to be 4.5 (System.DLL version is 4.0.30319.18034).

Can you suggest how I may overcome this please?
Thanks
Craig
Craig
Top achievements
Rank 1
 answered on 06 Mar 2013
4 answers
111 views
Dear team,
i noticed in the documentation while reading about the chart control there is a smart tag right but i don't have it in my trail version of reporting,
is there a smart tag right for reporting controls in the full version like in Rad Ajax and WinForms  ?
Regards,
Mohammed
Mohammed
Top achievements
Rank 2
 answered on 05 Mar 2013
1 answer
260 views
Hi,

I have Telerik Report Viewer in my page with option Print.

when i click Print Option ,it prints a single report page in 3 pages of paper.

I want to print a report page in a page of paper.

if there is 2 pages in report,print in 2 pages of paper.

Paper im using is A4.

Can anyone please help me in this ??


Thanks in advance.

----
AGMRAJA
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 05 Mar 2013
3 answers
1.1K+ views
Hello,
in an ASP.NET application, I need to use an OCRB font for some reports. Unfotunately, the OCRB font is not installed in the server, but I have it in a TTF file. How can I use it inside the reports?
Patrick
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 05 Mar 2013
2 answers
74 views
Hi,

Im using Telerik Report Viewer in Project with my Master page Merged.

It works fine without the master page.

when im using it with my CSS,the Report Viewer shows two Print button,two Forward Navigation button.. etc.

that is one is with Enabled class (Green Colored Image) and another one is with disabled (Gray Colored Image)
 class.

so anyone please help me in this.

--

AGMRAJA
Agm
Top achievements
Rank 1
 answered on 05 Mar 2013
1 answer
199 views
Hello, I'm trying to print on my report the values a user selects. It's a multivalue paramter.

{Parameters.ParamName.Value} provides System.Object[]

I realize this is an array.

How do I print those values on my report? Furthermore, I'd like the DisplayMember, not the ValueMember.

Thanks,
-Mack
Squall
Top achievements
Rank 1
 answered on 05 Mar 2013
2 answers
365 views
Hi all,

I have a report localized in many languages and it works well when I request the contents from a report viewer and I set the threat to match the report's localized language.

Now, I would like to download the report without having to change the current threat or using the report viewer. The code below generates the PDF file directly and presents the document ready for download to the browser, this is what I would like to have but I cannot get it translated. I was trying to use the report parameters with the report's code behind to set the language in the report but unfortunately the report must be initialized before I can work with the parameters.
Is that possible?

The code looks like this:
Dim instanceReportSource As New Telerik.Reporting.InstanceReportSource()
instanceReportSource.ReportDocument = New Reporting_Service.doc_PO_ShippingInstructions
instanceReportSource.Parameters.Add(New Telerik.Reporting.Parameter("Id", 31))
instanceReportSource.Parameters.Add(New Telerik.Reporting.Parameter("LanguageID", 1))
 
Dim reportProcessor As New ReportProcessor()
Dim result As RenderingResult = reportProcessor.RenderReport("PDF", instanceReportSource, 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()
IvanY
Telerik team
 answered on 05 Mar 2013
0 answers
130 views
Hey, I got a problem with the following requirements:
By clicking a button a report has to be generated and immediately downloaded in special format. 
I would also prefer using trdx Files for designing reports. I found out that these files can be used by the report viewer, but using a report viewer doesn't meet the requirement. 

my problem in particular is that the second parameter of the method RenderReport is a ReportSource. But there is no way to use the trdx File. 
Maybe I use a wrong pattern, or do I have to serialize the trdx File and create a Report.cs File ?

Thank you in advance


EDIT:

Sorry, I found out, that it is possible to use the trdx file as ReportSource by using UriReportSource

So, problem solved
BigzampanoXXl
Top achievements
Rank 1
 asked on 05 Mar 2013
6 answers
287 views
Hello,
I've revisited my report upgrading it to last stable build (so I've to use InstanceReport for passing data to the subreports) but I've got a really ugly problem.... I've got data mixed.... for example report for user 1 contins data for user2 and so on...I'm afraid that the static InstanceReport is the problem... that the report on thread x reads data from thread y and so on...

any feedback on this?
Thanks
Svetoslav
Telerik team
 answered on 05 Mar 2013
2 answers
263 views
I want to show the Hashtable data in textbox of Telerik report. My class structure is like:

Public class MyClass
{
public Hashtable ValHash { get; set; }
}

MyClass obj = new MyClass();
obj.ValHash = new Hashtable();
obj.ValHash.Add("Name", "Prasant");

While setting Hahtable value to textbox, as:
this.textBox1.Value = "= Fields.ValHash[\"Name\"]";

I am getting an error as "Missing operator before '["Name"]' operand.

Am i doing anything wrong?
Prasant
Top achievements
Rank 1
 answered on 05 Mar 2013
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?