Page 1 of 1

Stimulsoft Reports Blank Result

Posted: Fri Feb 19, 2016 2:03 pm
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:

Re: Stimulsoft Reports Blank Result

Posted: Fri Feb 19, 2016 7:17 pm
by Jan
Hello,

Please try to use:

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

Thank you.

Re: Stimulsoft Reports Blank Result

Posted: Sat Feb 20, 2016 5:34 am
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

Re: Stimulsoft Reports Blank Result

Posted: Mon Feb 22, 2016 6:49 am
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.