my requirement is as soon as sales order created. printout of that sales order will be taken at the same time email should be send to that particular customer.
the problem is the email is sent as soon as we check the print preview itself.
but the mail should be sent afte the pressing print button only.
how to fetch print or print preview by program