cancel
Showing results for 
Search instead for 
Did you mean: 

Print in WebDynpro

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

dhinakar,

Just add the following to XSLT (before <scipt>...</script>):

<style type="text/css" media="print"> 
  a { display: none; }
</style>

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com