Results 1 to 1 of 1
- 03-22-2012, 05:41 PM #1
Member
- Join Date
- Mar 2012
- Posts
- 1
- Rep Power
- 0
Export to MS Word to Landscape mode?
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:
I then write it out with the code: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>"; ............
Thanks,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();
mcquaim
Similar Threads
-
Export to Word
By shaikahmed in forum Advanced JavaReplies: 3Last Post: 11-23-2010, 09:15 AM -
3D Landscape
By quddusaliquddus in forum Java GamingReplies: 8Last Post: 04-12-2010, 06:28 PM -
Help with a program ro make a landscape picture
By no s e e d s in forum New To JavaReplies: 1Last Post: 12-16-2009, 12:03 AM -
help with a program to produce a landscape picture
By no s e e d s in forum New To JavaReplies: 1Last Post: 12-15-2009, 11:55 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks