Crystal Reports problem

0

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!

crystal-reports
asked on Stack Overflow Nov 13, 2008 by Bruno

2 Answers

0

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;
answered on Stack Overflow Nov 13, 2008 by Gavin Miller
0

Fixed!

The problem was a field that did not exist in the DataSet.

answered on Stack Overflow Nov 13, 2008 by Bruno

User contributions licensed under CC BY-SA 3.0