We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

SfReportViewer with dynamic report

Thread ID:

Created:

Updated:

Platform:

Replies:

108402 Apr 18,2013 05:49 AM Apr 19,2013 08:33 AM WinRT 1
loading
Tags: SfReportViewer
Thorsten Liborius
Asked On April 18, 2013 05:49 AM

Hi there,

I've adopted your sample report demo (SSRSReportDemo.xaml) and tried to run it in my windows store app. I'd like the user to enter the report name, credentials, etc. and after pressing a button the report gets rendered.
I copied the following source from your sample, trying to dynamically load your Adventureworks-example-report:

this.reportViewer.ReportPath = @"/SSRSSamples/Territory Sales";
this.reportViewer.ReportServerUrl = @"http://76.74.153.81/ReportServer";
this.reportViewer.ReportServiceURL = @"http://ssrs.syncfusion.com/ReportSampleService/ReportingService.svc";
this.reportViewer.ProcessingMode = ProcessingMode.Remote;
this.reportViewer.ReportServerCredential = new System.Net.NetworkCredential("ssrs", "RDLReport1");
this.reportViewer.RefreshReport();
this.reportViewer.ReportLoaded += (sen, arg) =>
{
List<DataSourceCredentials> crdentials = new List<DataSourceCredentials>();

foreach (var dataSource in reportViewer.GetDataSources())
{
DataSourceCredentials credn = new DataSourceCredentials
{
Name = dataSource.Name,
UserId = "ssrs1",
Password = "RDLReport1"
};
crdentials.Add(credn);
}

this.reportViewer.SetDataSourceCredentials(crdentials);
};

As soon as I try to replace the hard coded credentials in the Report_Loaded-Event, the data isn't loaded anymore. It doesn't matter if I run the code in the UI-Thread, as Runasync, or if I get the username/password from member/static variable. Even when I tried putting the username/password in a constant - the data isn't loaded anymore!

So please have a look at this. 
Regards,
Thorsten


Ragavan G [Syncfusion]
Replied On April 19, 2013 08:33 AM

Hi Thorsten , 

Thanks for your interest in syncfusion products .

This issue will be fixed in our upcoming release , which will be available in mid of  May 2013.

Thanks ,

Ragavan G


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;