the following code gives a null reference exception object reference not set to the instance of an object.
I have also tried:
TelRpt.ReportParamenters["txtContract"].value = cheader.ContractNum;
gives the same error.
cheader.ContractNum has a value.
If I take out this line the report converst to docx with no problem excet the contract number does not appear.
((TelRptContract)TelRpt).ReportParameters["txtContract"].Value = cheader.ContractNum;