Re: Previous () Function Not Working
Posted: Tue Dec 29, 2015 3:55 pm
1. Your solution works in the Report IDE but not when called from a program. When called from a program it gives the error message: "Unable to use Rport File C:\. . . \NA12.mrt. Please have its validity verified."
2. It was also throwing a 'Report Rendering' message in the IDE "Textxx Object reference not set to an instance of an object" for each text box. I changed this code from: rptNeedleAssignments.Op4_Thread != Previous (rptNeedleAssignments,"Op4_Thread").ToString() to: rptNeedleAssignments.Op2_Thread != (Previous (rptNeedleAssignments,"Op2_Thread") != null ? Previous (rptNeedleAssignments,"Op2_Thread").ToString() : null) to eliminate the error, which was caused by Nulls being returned. This corrected the Report Rendering messages.
3. The "Unable to use Rport File C:\. . . \NA12.mrt. Please have its validity verified." is still present when running the report in a live environment called by a program.
4. I can find no reference anywhere in the forum, the web or your Help documentation regarding the 'validity verified' message. I have spent many hours trying to make Stimulsoft work the way the documentation states it should work. Please tell me what is the correct answer.
2. It was also throwing a 'Report Rendering' message in the IDE "Textxx Object reference not set to an instance of an object" for each text box. I changed this code from: rptNeedleAssignments.Op4_Thread != Previous (rptNeedleAssignments,"Op4_Thread").ToString() to: rptNeedleAssignments.Op2_Thread != (Previous (rptNeedleAssignments,"Op2_Thread") != null ? Previous (rptNeedleAssignments,"Op2_Thread").ToString() : null) to eliminate the error, which was caused by Nulls being returned. This corrected the Report Rendering messages.
3. The "Unable to use Rport File C:\. . . \NA12.mrt. Please have its validity verified." is still present when running the report in a live environment called by a program.
4. I can find no reference anywhere in the forum, the web or your Help documentation regarding the 'validity verified' message. I have spent many hours trying to make Stimulsoft work the way the documentation states it should work. Please tell me what is the correct answer.