As an intial check I am just displaying a messagebox to confirm I'm getting the right UOM.
- Code: Select all
MessageBox.Show(line.UnitOfMeasure.Name);
But I am getting an error 'object reference not set to an instance of an object.'
What am I doing wrong?