Stimulsoft Reports Blank Result

Stimulsoft Reports.WPF discussion
Post Reply
mazyar13
Posts: 4
Joined: Wed Feb 17, 2016 5:36 am

Stimulsoft Reports Blank Result

Post by mazyar13 »

hi i have a wpf program with date range result but when i wanted report result is blank page
this is my query from stimulsoft

Code: Select all

SELECT Type,Number,Date1,MajlesDate1,RecorderName,SahebeMajles FROM IssRecorder WHERE MajlesDate BETWEEN @From AND @To
And that is my c# code

Code: Select all

            StiReport rep = new StiReport();
            rep.Compile();
            rep.Dictionary.DataStore.Clear();
            rep.Load(System.AppDomain.CurrentDomain.BaseDirectory + @"\\Reports\RecorderReport.mrt");
            rep.Dictionary.DataSources["DataSource1"].Parameters["@From"].ParameterValue = _ConvertDate.ToMiladiDate(DateTime.Parse(txtDateFrom.Text));
            rep.Dictionary.DataSources["DataSource1"].Parameters["@To"].ParameterValue= _ConvertDate.ToMiladiDate(DateTime.Parse(txtDateTo.Text));
           rep.Render();
           rep.Show();

please someone help :oops: :oops: :oops: :oops: :oops: :oops:
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Re: Stimulsoft Reports Blank Result

Post by Jan »

Hello,

Please try to use:

rep.CompiledReport.Dictionary.DataSources["DataSource1"].Parameters["@From"].ParameterValue = _ConvertDate.ToMiladiDate(DateTime.Parse(txtDateFrom.Text));

Thank you.
mazyar13
Posts: 4
Joined: Wed Feb 17, 2016 5:36 am

Re: Stimulsoft Reports Blank Result

Post by mazyar13 »

thank you but dos not work .
i have An exception of type 'System.NullReferenceException' occurred in Union Managmnet System.exe but was not handled in user code error in my program
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Stimulsoft Reports Blank Result

Post by HighAley »

Hello.

Could you describe the issue more detailed?
What version of our product you use?
We need to see a sample that will help us to reproduce the issue.

Thank you.
Post Reply