Page size in word
-
Hi, How to set the page size in word Response.ClearContent() Response.AddHeader("content-disposition", "attachment; filename=MyExcelFile.doc") Response.ContentType = "application/vnd.word" Dim sw As New System.IO.StringWriter Dim htw As New HtmlTextWriter(sw) Label1.RenderControl(htw) Response.Write(sw.ToString()) Response.End()
-
Hi, How to set the page size in word Response.ClearContent() Response.AddHeader("content-disposition", "attachment; filename=MyExcelFile.doc") Response.ContentType = "application/vnd.word" Dim sw As New System.IO.StringWriter Dim htw As New HtmlTextWriter(sw) Label1.RenderControl(htw) Response.Write(sw.ToString()) Response.End()
There's obviously nothing here to control a page size. ? If you mean size in lines, you can chop up the string in the string writer.
Christian Graus Driven to the arms of OSX by Vista.