Delphi 3 code help - printing

I would like print in a D program and choose a printer like word or excel
program.

And when I choose the printer, the program tel me that the index is out.

How can I do like others software when printing ?

Thanks in advance ...

pe...@mandic.com.br