I have a iframe with print button.For that i have used jquery.printElement.min.js plugin.
After clicking on print it should print the iframe content.



HTML Code for it:
Code:
<Table width="100%"  border="0"> 	    
					<tr>
						<td>
						<div id="report_page_content_no_tab_nav_noscroll" >
							<iframe src="/delegate/TransmissionReportServlet?&<%=PCSWebConstants.REPORT_TYPE_CODE%>=<%=reportTypeCode%>&websiteNotificationId=<%=websiteNotificationId%>#toolbar=1&navpanes=1&pagemode=bookmarks" 
								type="application/pdf" 
								name="pdfFrame" 
								id="pdfFrame" 
								width="200%" 
								height="640" 
								frameborder="0">
							</iframe>
						</div>
						</td>
					</tr>	
				<tr>
					<td align="left" valign="bottom">
					</td>
					<td class="input_table_button" valign="bottom">
						<td height="50" width="20%" align="center" class="input_table_button" valign="center">												
													
						</td>	
					</td>
					<td height="40" width="10%" align="center" class="input_table_button" valign="center">&nbsp;&nbsp;</td>
					<td height="40" width="20%" align="center" class="input_table_button" valign="center">
						 <div style="overflow:hidden;">
							<div id="edit-section" style="width: auto;float:left;margin:0;" >
									<span class="edit-button">
										<a href="#" onClick="Javascript:popupWin.dialog('close')" style="padding:0;"> <spring:message code='<%=PCSLabelNameConstants.LABEL_CANCEL%>' /> </a>
									</span>
							</div>						
							<div id="edit-section" style="width: auto;float:left;margin:0;" >
								<span class="edit-button">
									<a href="javascript:;" onclick="javaScript:$('#printContentDiv').printElement({ printMode: 'iframe' });" style="padding:0;"> <spring:message code='<%=PCSLabelNameConstants.LABEL_PRINT%>'/> </a>
								</span>
							</div>
						</div>		
					</td>										
				</tr>
				</Table>