Telerik Forums
Reporting Forum
10 answers
1.4K+ views

Hello everyone

I'm using Telerik ReportViewer for about one or two years now without any problems. But since the last update, I'm not able to print a report using the printer name property. I'm using the following code to print a report:

IReportDocument repDocList = new Fertigungsliste("85856917", "1");
 
// set printer settings
PrinterSettings printSet = new PrinterSettings();
printSet.Copies = 1;
printSet.PrinterName = @"\\bbfs\ADM51";
 
// create print controller
PrintController printCtrl = new StandardPrintController();
 
// create report processor
ReportProcessor repProc = new ReportProcessor();
repProc.PrintController = printCtrl;
 
InstanceReportSource repSrc = new InstanceReportSource();
repSrc.ReportDocument = repDocList;
 
repProc.PrintReport(repSrc, printSet);

Unfortunately this code doesn't print the report anymore. If I delete

printSet.PrinterName = @"\\bbfs\ADM51";

it works. Then it uses the default windows printer. But this does not help me. I need to set the printer name like in the example above.

Is there a bug in the latest version of reporting?

Suggestions appreciated

Regards,
Danilo

Stef
Telerik team
 answered on 21 Jun 2016
6 answers
325 views
Hi,

according to the release history of Telerik Reporting R2 2016 the WPF ReportViewer now supports showing reports from Telerik Reporting REST Service. So I implemented a web application as described in the docs (http://docs.telerik.com/reporting/telerik-reporting-rest-host-http-service-using-web-hosting) and setup a WPF client application with the help of these articles:
http://docs.telerik.com/reporting/wpf-report-viewer-howto-use-it-with-reportserver
http://docs.telerik.com/reporting/report-engine-connectionstring#rest-service-engine

The XAML of the client now looks as follows:
1.<tr:ReportViewer x:Name="ReportViewer1" HorizontalAlignment="Stretch" ReportEngineConnection="engine=RestService;uri=http://localhost:19021/api/reports">
2.    <tr:ReportViewer.ReportSource>
3.        <telerikReporting:UriReportSource Uri="TestReport.trdp" />
4.    </tr:ReportViewer.ReportSource>
5.</tr:ReportViewer>


I also tried setting the Uri-Property of the UriReportSource to the full Uri or leaving out the trdp extension but the viewer only contains this error message:

Attempt by method 'Telerik.Reporting.Services.HttpClient.HttpRequestHelper.GetResponseFromPost(System.Net.Http.HttpResponseMessage)' to access method 'Telerik.Reporting.Services.HttpClient.HttpRequestHelper.GetResponseFromPost<T>(System.Net.Http.HttpResponseMessage, System.Collections.Generic.IEnumerable`1<System.Net.Http.Formatting.MediaTypeFormatter>)' failed.

Because I couldn't find much documentation about using the REST services with the WPF ReportViewer I could use some help.

Thanks
Matthias
Stef
Telerik team
 answered on 21 Jun 2016
1 answer
100 views

we have to display telerik report in asp.net mvc web page. We are using telerik report viewer to display report and able to generate report on first time, but when we try to see again (click again on report button to generate report) then it is not hitting controller method.

Any help in this regard is appreciated!

Stef
Telerik team
 answered on 20 Jun 2016
1 answer
858 views

Hi,

 

In HTMLTEXTBOX  value = &lt;b&gt; Response added s s&lt;b/&gt; &lt;br&gt; &lt;br&gt; Q1QuestionText edited  &lt;br&gt;  from database

output in reportviewer

 

<b> Response added s s<b/> <br> <br> Q1QuestionText edited <b>

line break and bold style not working

kindly assist , it is urgent

 

Regards,

Mary Jain

 

Mary
Top achievements
Rank 1
 answered on 19 Jun 2016
2 answers
306 views

So far I have set Datasource to ReportItem.DataObject.

Now in the table column I want to access the values of a field(property).  I am indicating the field as the following, but nothing works = ReportItem.DataObject.RawData.GetValueString("binderProperties.binderProperty.ProcessProperty")  or ReportItem.DataObject.RawData.GetValueString("ProcessProperty") or  ReportItem.DataObject.RawData.GetValueString("binderProperties.Value.binderProperty.ProcessProperty") 

Please see attached to see the data format that is coming from .NET.

 

Thank you in advance for any feedback.

Rocio

 

 

Stef
Telerik team
 answered on 17 Jun 2016
3 answers
586 views

Hi ,

Hi,

I have scenario like i need to filter either using Parameters.SelectAudience.Value( have multiple value) or Parameters.SelectInterviewee.Value ( have multiple value) .Below is the code snippet not working with In operator

 

            this.Filters.Add(new Telerik.Reporting.Filter("=Fields.TrackID In ('=Parameters.SelectAudience.Value')) OR Fields.IntervieweeID " +
            "In ('=Parameters.SelectInterviewee.Value'))", Telerik.Reporting.FilterOperator.Equal, "=True"));

 

Please help , it is urgent

Thanks,

Mary Jain

Mary
Top achievements
Rank 1
 answered on 17 Jun 2016
1 answer
309 views

We are using Telerik Reporting 9.0.15.422

I have defined a header with a size of 14px with details as 10px.  The viewer shows everything as 12px regardless of what is defined in the designer.  Please see the attached screen shots.

Thanks,

Greg

Stef
Telerik team
 answered on 15 Jun 2016
3 answers
1.7K+ views

Hi,

I have scenario where i have to make some report parameter visible based one Report parameter value like

in below screenshot attached if i select Audience in SelectCriteria ReportParameter  then report parameter listing all Audience value should display( and hide the Interviewee Report parameter), if Interviewee is selected in the  SelectCriteria ReportParameter then report parameter listing all interviewee should show (Audience report parameter should hide)

Please help me on this as it urgent.

Thank in advance

 

 

 

 

Stef
Telerik team
 answered on 15 Jun 2016
1 answer
443 views

I have to show a report of employees.

This will have columns ID, Name, Designation, Department etc.

User should have 2 options (using report parameters) to view report

1. Based on department

    If user chooses department option, a drop should be loaded with all departments

2. Based on designation

    If user choose designation, a drop should be loaded with all designations.

Is there any way to provide this functionality (selection of either department or designation) using report parameters?

Stef
Telerik team
 answered on 15 Jun 2016
3 answers
574 views
Hello,

My Master Report has 8 sub-Reports, each only returns 3 to 4 rows and they are all 5 columns. So there is no issue in terms of data size.
However when I run my master report it takes a long time to generate the report. I check in MS SQL and running and executing the store procedures, they all take less than 1 seconds to execute.

Is this because that I am using a Trial version (Evaluation) or Telerik Reporting are generally slow to generate?

Many Thanks,
Stef
Telerik team
 answered on 15 Jun 2016
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?