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;