Hope to be fine and everything is going well.
I'm using Stimulsoft Report veiwer on my Lightswitch application (Desktop Client). I follow the video you shared on youtube https://www.youtube.com/watch?v=F90vaVA1kMs you shared. Everything is going well. but my problem is about my report.mrt file. how i should design my .mrt file to be able to show my report? currently there is nothing to show. I think i have a problem with business objects on my report.
Code: Select all
partial void ShowViewer_Execute()
{
// Write your code here.
var findControl = this.FindControl("viewControl");
findControl.ControlAvailable += delegate(object sender , ControlAvailableEventArgs e)
{
StiReport report = new StiReport();
OpenFileDialog openFile = new OpenFileDialog();
if(openFile.ShowDialog() == true){
using(FileStream stream = openFile.File.OpenRead()){
report.Load(stream);
report.Dictionary.Clear();
report.RegBusinessObject("Demo " , "Demo", this.Patients);
report.Dictionary.SynchronizeBusinessObjects();
report.Render();
}
}
};
Code: Select all
int PID = this.Patients.SelectedItem.PatientID;
FYI:
Currently i have a designed report but work with stored procedure from sql server and not related to the LightSwitch application. if you need more details i can send you in this post or by email.
Kind Regards
Homayoon Azimi