I'm having problem in the following line:
rd.PrintOptions.PaperSize = PaperSize.PaperFanfoldStdGerman;
it throws an exception saying HRESULT: 0x8002000B (DISP_E_BADINDEX))
if I skip this line, the same error eccurs here:
rd.PrintOptions.ApplyPageMargins(config)
Did anyone have this problem before? thanks!
My guess is that your line before is failing and as such gets reported on the next call. Check the line before
rd.PrintOptions.PaperSize = PaperSize.PaperFanfoldStdGerman;
Fixed!
The problem was a field that did not exist in the DataSet.
User contributions licensed under CC BY-SA 3.0