L
Larry Neylon
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.
Thanks alot,
Larry.
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.
Thanks alot,
Larry.