General discussion

Locked

Page layout with a style sheet

By dennisbv ·
I am using Microsoft Log parser to pull out certain events from my event logs and the setup I decided to use and works great except for one thing. It will parse the records I want and displays them in an XML file that is linked to a style sheet. The problem is that when I print the report it will only print portrait and I miss some of the info (it displays correctly) How do control the page set up? here is the style sheet that I used from the documentation.

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

<xsl:template match="/">
<xsl:for-each select="ROOT">
<HTML>
<HEAD><TITLE><xsl:value-of select="@CREATED_BY"/> Generated Log</TITLE></HEAD>
<BODY style="page-orientation:landscape">

<CENTER><H1><xsl:value-of select="@CREATED_BY"/> Generated Log</H1></CENTER>
<CENTER><H2>Generated on <xsl:value-of select="@DATE_CREATED"/></H2></CENTER>

<CENTER>
<TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5">
<xsl:apply-templates select="ROW"/>
</TABLE>
</CENTER>

</BODY>
</HTML>
</xsl:for-each>
</xsl:template>

<xsl:template match="ROW">
<TR BGCOLOR="#F0F0F0">
<xsl:for-each select="*">
<TD>
<xsl:value-of select="."/>
</TD>
</xsl:for-each>
</TR>
</xsl:template>

</xsl:stylesheet>

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Web Development Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums