Hi, We have a silverlight application. We are using this technique to pass data to report parameters using a WCF service (the reports locate in another class library application):
public
void
SaveBtn()
{
var deviceInfo =
new
NameValueDictionary();
var parameters =
new
NameValueDictionary();
parameters.Add(
"name"
, name);
// other fields
var serviceClient =
new
ReportServiceClient(
new
Uri(App.Current.Host.Source,
"../ReportService.svc"
));
serviceClient.RenderAsync(
"IMAGE"
,
"ReportProject.Reporting.Letter.Preview, ReportProject.Reporting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
,
deviceInfo,
parameters);
serviceClient.RenderCompleted +=
new
EventHandler<RenderEventArgs>(serviceClient_RenderCompleted);
}
void
serviceClient_RenderCompleted(
object
sender, RenderEventArgs e)
{
var result = e.RenderingResult;
File.WriteAllBytes(
"f:/file.tiff"
, result.DocumentBytes);
}
This process works fine in local host. But when we publish silverlight web application in IIS when SaveBtn is called this exception will be thrown (the attached image):
[Async_ExceptionOccurred]
.....
As I mentioned this process works on local host.
PS: We followed this technique for using WCF Telerik Reporting Service.
We also added a file called clientaccesspolicy.xml to root of the report project (the class library I mentioned):
<
access-policy
>
<
cross-domain-access
>
<
policy
>
<
allow-from
http-request-headers
=
"*"
>
<
domain
uri
=
"*"
/>
</
allow-from
>
<
grant-to
>
<
resource
path
=
"/"
include-subpaths
=
"true"
/>
</
grant-to
>
</
policy
>
</
cross-domain-access
>
</
access-policy
>
Any idea? Thanks in advance.
Yesterday I installed a service pack of new version of Telerik (Telerik_Reporting_Trial_Installer_R3_2016_SP1_10_2_16_1025) as suggested by Telerik to resolve few bugs in version R3_2016_10_915 - After the upgrade, when i opened my application where the report viewer is plugged in, it asked to run upgrade wizard and it upgraded files on my machine, please see attached (Telerik Upgrade Wizard.png) to see list of files it upgraded - Though doing all this resolved my initial issue, but now in report viewer in our web api, it is showing tool bar at the bottom of the viewer which is kind off odd.
Can you please guide me how shall i re-position my toolbar for it to appear on the top again -
Hi there
I tried different setting for docking and anchoring but the panels in exported report are always overlapping instead of „stacking“.
Can you please help me with this issue?
Many thanks
Markus
Hi,
So the report I'm trying to create is kinda funky, and I've found that a table seems to be my best bet for this, but I can't quite get the subreport to do what I want it to do. So here's the basic layout:
________________________________________________________________
|Detial|Detail |subreportdetail | subreportdetail |detail | detail | detail|
|_____|_____________|______________|_____________|_____|_____|_____|
Unfortunately, the vertical lines are a must, and must grow with the detail section. Is there a way to do this or am I just gonna tear my hair out?
The report I'm trying to create now has information from a .ini file which is housed on the server. This is all the information I need, so other than grabbing all the text out of the file and putting it in the textbox is there a way to just use the file as the page footer for the report?
Thanks in advance
I want to pass a param from html5 viewer to the report book,then generate the report,like this
var p=params.split(',');
foreach(var c in p)
{
var bill = new ReportBill();
bill.ReportParameters["BillCode"].Value = c;
this.Reports.Insert(0, bill);
}
but i cant find any way to pass it,can anyone help me?
I want to create a custom MyResolver : IReportResolver
in method public ReportSource Resolve(string report)
the report string is a type name ,how to resolove it ?