Use of Print Management for printing document attached

Hi All,

Requirement : The client requirement is to send the document attached to a batch number directly to printer setting which is used in a report.

when packing slip report is printing a certification document is opening, this certification document is nothing but a standard document attached through document handling to a batch. The code has written to open the document while printing the report. This works fine when the report print destination is screen but the requirement is it also get the print destination setting used in the report and print accordingly to the print management used but the report.

can any one having idea how to do this will be great help for me.

Thanks in Advance