Fail to load data from database.

Stimulsoft Reports.UWP discussion
Locked
brandnewkeith
Posts: 1
Joined: Tue May 01, 2018 6:55 pm

Fail to load data from database.

Post by brandnewkeith »

I have design a report using the designer, the data is loading from database using a query in the report designer.
After that, I try to view the .mrt in my UWP app.
The app can successfully load the mrt, however the data is not loaded from the database, and the report is blank.
What am I missing? I have search all over the internet and cannot find a solution.

Code: Select all

StorageFolder folder = Windows.ApplicationModel.Package.Current.InstalledLocation;
            string reportFile = @"Assets\Report.mrt";
            StorageFile storageFile = await folder.GetFileAsync(reportFile);

            StiReport report = new StiReport();            
            await report.LoadAsync(storageFile);      
await report.RenderAsync();                        
viewerControl.Report = report;   
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Fail to load data from database.

Post by HighAley »

Hello.

The databases are not supported by Reports.UWP.
You could use business objects only.

Please, find samples on GitHub.

Thank you.
Locked