Telerik Forums
Reporting Forum
0 answers
150 views

Hi all,

facing quite strange behavior in WPF application where print button in Telerik ReportViewer does not show Print Dialog, insteadd the application crashes.

any ideas

Thanks

Khalid
Top achievements
Rank 2
 asked on 30 Dec 2017
0 answers
138 views

Hi All,

I Deploy a Web Application in Windows Server 2012 Virtual Machine.The UI is Working fine.But the Report is not Working.But It works fine in Local host and the godaddy Sever.Same code is used for all environment i attached the Screen shot.Please any one try to help me to Resolve the Problem.

 

Thank you...

Ramasamy
Top achievements
Rank 1
 asked on 30 Dec 2017
2 answers
647 views

I am having a problem getting a report parameter to work in an MVC application.  The goal is to have the report results filtered by student number.  I have the parameter and filter configured in the report designer.  I can apply the student number to the report when running the report in the designer so this problem is isolated to the MVC application specifically.  Here is some of the key code that (I think) should be sufficient to understand what I am trying to do:

Inside HomeController:

  public ActionResult StudentReport()
        {
           var uriReportSource = new UriReportSource();
            uriReportSource.Uri = "Report1.trdp";
            uriReportSource.Parameters.Add(new Parameter("StudentNumber", "120432"));
            return View();
        }

 

Inside StudentReport.cshtml:

<body>
    @(Html.TelerikReporting().ReportViewer()
        .Id("reportViewer1")      
        .ServiceUrl(Url.Content("~/api/reports"))
        .ReportSource(new UriReportSource() { Uri = "Report1.trdp" })
        .ViewMode(ViewMode.Interactive)
        .ScaleMode(ScaleMode.Specific)
        .Scale(1.0)
        .PersistSession(false)
        .PrintMode(PrintMode.AutoSelect)
        .EnableAccessibility(false)
    )

</body>

 

The error I am getting is: An error has occurred while processing Report 'Report1': Cannot perform '=' operation on System.Double and System.String.

Ivan Hristov
Telerik team
 answered on 28 Dec 2017
3 answers
216 views

     Could someone please explain to me how to do the following.  I have the following ADO.NET table created in the report source (shown below).  How do I make the data available in a report. 

     Our company has been creating a DataSet.xsd in the solution and then add a report dataset that is set to the table in the DataSet.xsd.  Then we add a ObjectDataSource, set it's DataSource to the DataSet in the report and then bind the report (ie: set the report datasource) to the ObjectDataSource.  This will make it's fields available in the report.  Note: We load the ObjectDataSource in the report source, ie: DataSet.ObjectDataSource.Load(dtSource).  The problem with this method is that it requires you to add a new table for your report to the DataSet.xsd everytime you want to pass something that hasn't already been created to the xsd.

     Is there a way to just add a blank dataset to the report, set a ObjectDataSource.DataSource to the dataset and then just load the dataset in the source?  ie:  Skip the DataSet.xsd part?

dt As New DataTable
Dim row As New DataRow

dt.Columns.Add("Id", GetType(Integer))
dt.Columns.Add("FirstName", GetType(String))
dt.Columns.Add("LastName", GetType(String))

row = dt.NewRow()

row("Id") = 1
row("FirstName") = "John"
row("LastName" = "Smith"

dt.Rows.Add(row)

 

Thanks in advance.

 

 

David
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 27 Dec 2017
0 answers
115 views

I have Telerik report with a sub report attached. Both have .trdx extension
There is a exe program which passes parameters to the main report and call to print.

The report prints fine when clicking the print button of the exe program.

But when the exe is scheduled using windows task scheduler it gives an error saying
"Could not find file 'C:\Windows\system32\MySubreportName.trdx'."

Please help.
Kulasegaran
Top achievements
Rank 1
 asked on 27 Dec 2017
0 answers
63 views

Hi Team,

I had to upgrade Telerik Report Designer from 11.0.17.222 to 11.2.17.1025,  

It is working well for Telerik HTML viewer But in WPF, it is previewing the report well, but when I export the report to PDF, the report is very bad, I attached two files, one for the exported report from the pervious version and anther from the new one.

It is affect in many thing all of the Images is not working fine, it streched and the images is far away from the table

 

Thanks,

Ammar Assem.

Ammar
Top achievements
Rank 1
 asked on 25 Dec 2017
1 answer
106 views

Hi. I have a report and I set report's documentanme in Needdatasource event like below:

((Telerik.Reporting.Processing.ProcessingElement)(sender)).Report.DocumentName = string.Format("{0}{1}_Report", dto.Name,dto.Surname);

I wrote this code before setting the report's Datasource. (I also try after setting the report's datasource).

When I click export button on report, it downloads document right name(for exmaple johnwhite_Report). Then I click refresh. Then I click export button again. This time, document  name becomes Report. It does not show person name and surname.

Why does this happen. Any idea?

Thanks in advance.

 

kmnd
Top achievements
Rank 1
 answered on 22 Dec 2017
1 answer
209 views

I am trying to use the WPF report viewer with Telerik Reporting REST service deployed on a web farm using FileStorage. Previously, with the WCF service and Silverlight viewer, I was able to deploy on a web farm using cookie-based persistence on our load balancer. After migrating to the WPF viewer, it appears as though the WPF client is not persisting cookies properly between sessions.

When I first load a report, the viewer registers a new client, the response contains a Set-Cookie header, and then subsequent requests to create instance, create document, get document info, and get document page all include the persistence cookie.

If I refresh the report, however, the viewer makes a request to get report parameters or create a new instance and does _not_ include the persistence cookie with the request.

Does the WPF report viewer create a new HttpClient with each request? It should be using a shared singleton instead, as per: https://docs.microsoft.com/en-us/azure/architecture/antipatterns/improper-instantiation/

Todor
Telerik team
 answered on 22 Dec 2017
1 answer
324 views
I am interested in whether there is compatibility between Telerik Reporting and Microsoft Reporting. For example, in Microsoft Reporting, data can be passed as a Collection object to the ReportDataSource. Would Telerik Reporting accept in a similar way a Collection object (assuming the Data Source Object is set to ObjectDataSource)? Do Report Parameters behave similarly? In general, I am trying to determine how much of a (data structure) reorganization might be needed to switch from Microsoft to Telerik Reporting. Thanks.
Todor
Telerik team
 answered on 22 Dec 2017
0 answers
81 views
public TestReport()
        {
            var report1 = DeserializeReport(@"~\ReportBook.trdx");
            var report2 = DeserializeReport(@"~\ReportBook2.trdx");
            report1.DataSource = "DefaultConnection";
            report2.DataSource = "DefaultConnection";
            this.Reports.Add(report1);
            this.Reports.Add(report2);
            Reports[0].ReportParameters["templateId"].Value = 0;
            Reports[0].ReportParameters["scheduleId"].Value = 1953;
            Reports[1].ReportParameters["templateId"].Value = 0;
            Reports[1].ReportParameters["scheduleId"].Value = 1953;
        }
Aris
Top achievements
Rank 1
 asked on 22 Dec 2017
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?