The current setting of the WriteMode property …

Today I encountered an error I haven’t seen before:

The current setting of the WriteMode property is incompatible with the operation.

In this case, it was a Report.SaveAs that tried to save into an OutStream that was not initialized. So a stupid mistake on my part.

Blogged here, so I can find the answer the next time I Google it 🙂