on 05-12-2006 5:05 AM
Dera All
***********The Below code is template in XSl
<?xml version="1.0"?>
<xsl:template xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<script language="javascript">
void printfun()
</script>
<body>
<form name="Form1">
<xsl:for-each select="Customer-Details">
<div>
NAME: DOB: SSN: State: Ph: <br />
<xsl:value-of select="CusName" />
<xsl:value-of select="CusAdd1" />
<xsl:value-of select="CusAdd2" />
<xsl:value-of select="CusState" />
<xsl:value-of select="phoneno" />
<hr />
</div>
</xsl:for-each>
</form>
<a href="javascript:print()">print</a>
</body>
</xsl:template>
**********************
The Below code in XML
<?xml version='1.0' ?><?xml-stylesheet type='text/xsl'
href='Sample.xsl'
?><Customer-Details><CusName>Dhina</CusName><CusAdd1>Dhina</CusAdd1><CusAdd2>Dhina</CusAdd2><CusState>Dhina</CusState><phoneno>Dhina</phoneno></Customer-Details>
***********
but in the browser window it will print exactly
or in the iframe in webdynpro.
but the output comes with Print Symbol i.e Print
button will appear in printed sheet
I have to remove the print button in the printed sheet
only not in the iframe or browser window
Give me the solution
Regards
Dhinakar
dhinakar,
Just add the following to XSLT (before <scipt>...</script>):
<style type="text/css" media="print">
a { display: none; }
</style>
Valery Silaev
EPAM Systems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.