how to create print preview of the document printed
<p>I am developing a custom  pane which will show up when the user presses 'Print'. This custom pane need to have a print preview. Please tell me how to create dynamic print preview of a document/images,etc.</p>

<p>Thanks in advance</p>
