Change to FormReportCustom
Posted: Wed Nov 19, 2008 7:12 am
I'd like to change a line to set the Parameters value passed to RDL reports to the current patnum instead of null:
this.viewer.Parameters = "PatID="+FormOpenDental.CurPatNum.ToString();
This is so we can pass the currently selected patient number automatically for patient-specific RDL reports. If the report doesn't contain a parameter called "PatID," it ignores it. This only affects people who are specifically using the Open Dental Custom Reports menu. Used "PatID" instead of "PatNum" in case some might actually have "PatNum" designated as an RDL parameter. It would be nice to code it so "PatID" would be passed only if the report contained that parameter, but I don't know how that could be done.
this.viewer.Parameters = "PatID="+FormOpenDental.CurPatNum.ToString();
This is so we can pass the currently selected patient number automatically for patient-specific RDL reports. If the report doesn't contain a parameter called "PatID," it ignores it. This only affects people who are specifically using the Open Dental Custom Reports menu. Used "PatID" instead of "PatNum" in case some might actually have "PatNum" designated as an RDL parameter. It would be nice to code it so "PatID" would be passed only if the report contained that parameter, but I don't know how that could be done.