Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Print in WebDynpro

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

Not what you were looking for? View more on this topic or Ask a question