Larry Neylon wrote:
> Hi there,
>
> I've got a legacy app that is creating rtf documents for printing
> from Word.
>
> The problem I have is that for some users (not all) the Page Size
> defaults to Letter, rather than their default A4.
>
> I was hoping to be able to add some actual RTF code inline to force
> A4 size, but am unsure how to mix'n'match RTF and HTML.
>
> Sample Code:
>
> Response.Clear()
> Response.CacheControl = "Public"
> Response.Expires = -1
> Response.ExpiresAbsolute = Now() + 1
> Response.ContentType = "application/rtf"
> Response.AddHeader "Content-Disposition", "attachment;filename=" &
> Replace(Request.Form("DB_subject"), " ", "_") & ".rtf"
> Response.Write("<html><head></head><body>Test</body></html>")
>
> This opens fine, but I want to force a A4 size using RTF code, e.g.
>
> Response.Write("{\rtf1\paperh16838\paperw11906}")
>
> Playing about with this it either gives me a blank page or the actual
> html uncoverted.
>
> Any suggestions on how to force this to A4 or embed the RTF into
> streamed HTML.
>
In addition to Daniel's comments:
Unless forced, Word uses the default text formats & page size that the
recipient has set, so by not including any specfic RTF commands, the page
size used by the recipient should prevail. Of course, that has a lot of
implications regarding the general presentation of your document...
Best,
--
Neil Gould
Terra Tu Technical Publishing
www.TerraTu.com