Hi there,

I have a servlet that is currently exporting form data to MS Word but it is doing this in Portrait mode. Is there any way to switch the output to Landscape?

I am building up the output as such:
Java Code:
sOutFile = "<html>"+
	           "<head>"+
	           "<body>"+
		"<table>"+
		   "<tr> "+
		      "<td colspan='13'><div align='center'><strong>Company Heading</strong></div></td>"+
		   "</tr>"+
		   "<tr>"+ 
		      "<td colspan='3'>Name:</td>"+
		      "<td colspan='10'>a</td>"+
		   "</tr>";
............
I then write it out with the code:

Java Code:
csvBytes = sOutFile.getBytes();
response.setContentType("text/comma-separated-values");
response.setHeader("Content-disposition","attachment; filename=statement.doc");

ServletOutputStream out = response.getOutputStream();
out.write(csvBytes);			
out.flush();
out.close();
Thanks,
mcquaim