Saturday, February 19, 2011

Crystal Reports problem

Hi, 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!

From stackoverflow
  • 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;
    
    Bruno : hi, the line before is rd.SetDataSource(dsReport); but what would be wrong with this?
  • Fixed!

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

0 comments:

Post a Comment