Telerik Forums
Reporting Forum
1 answer
118 views

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.

 

Stef
Telerik team
 answered on 19 Jan 2017
9 answers
264 views

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 - 

 

 

Katia
Telerik team
 answered on 19 Jan 2017
2 answers
406 views

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

Markus
Top achievements
Rank 1
 answered on 18 Jan 2017
3 answers
129 views

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?

Stef
Telerik team
 answered on 18 Jan 2017
16 answers
506 views
I am attempting to test Reporting in MVC 6, however, I am unable to find the Nuget package referenced in the documentation. Can someone please attach this package, or provide a link to where they can be found?
Stef
Telerik team
 answered on 18 Jan 2017
19 answers
356 views
I have a report where one parameter is to choose a user id (from a list, returned by a stored proc)
There is no default value, and you MUST select a user id before running the report.
For some reason, even though there is no default value and the user hasn't chosen an item, when the page loads, the report renders, without the needed parameter being supplied, which causes a missing parameter exception.

Can I 

a) Prevent the autoload altogether?
b) If not, is it a bug that is autorenders when a parameter hasnt been supplied?

    <ReportParameter Name="UserID" Type="Integer" Visible="True" AllowBlank="False">
      <AvailableValues DataSourceName="sqlDataSource2" DisplayMember="=Fields.Name" ValueMember="= Fields.ID" />
      <Value>
        <String></String>
      </Value>
    </ReportParameter>
Katia
Telerik team
 answered on 18 Jan 2017
6 answers
1.2K+ views
This is so frustrating. 

I've spend hours designing a report using your software. 

I have all the colunns lined up, the SQL query done, and the viewer installed on a web page.

I need to make 10 other reports just link this, only with slightly different queries from the same database and/or data source.

How can I do this quickly? I do not want to have to design each report from scratch using the designer because they are all on separate pages on the same web site and need to look identical---and it would be way too cumbersome to try and match pixel for pixel each new designed report from the previous.  There is no copy report or import report style, etc.

There must be a simple way to do this.  I'm under a tight deadline.

Chris
Richard
Top achievements
Rank 1
 answered on 17 Jan 2017
3 answers
95 views

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

Katia
Telerik team
 answered on 16 Jan 2017
8 answers
529 views

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?

 

harry
Top achievements
Rank 1
 answered on 14 Jan 2017
1 answer
139 views

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 ?

harry
Top achievements
Rank 1
 answered on 14 Jan 2017
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?