I am writing an ASP program, and part of this program involves a mail-merge type feature to print a “Letter” (pre-fill name, address, and various other information). After the letter is generated and printed it will usually be discarded, although occasionally the user wants to save it in Word format.
The solution I have chosen (for now) is generating the letter in HTML and displaying it in the browser with Response.ContentType = "application/msword", at which time the user can edit the document if necessary, print it, and even save it as a .doc.
However, I need this file to print on legal size paper. I cannot get this application/msword file to display or print in legal size. On the client machine, I set the printer to default to Legal size, and I changed my normal.dot page setup to legal size. This works as expected… when I create a new word doc, it defaults to legal. When I print a web page, it prints legal. Everything displays/prints legal size EXCEPT for my HTML code with Response.ContentType = "application/msword".
Does anyone have any suggestions how to solve this problem?
Thanks!
- guitarzan
The solution I have chosen (for now) is generating the letter in HTML and displaying it in the browser with Response.ContentType = "application/msword", at which time the user can edit the document if necessary, print it, and even save it as a .doc.
However, I need this file to print on legal size paper. I cannot get this application/msword file to display or print in legal size. On the client machine, I set the printer to default to Legal size, and I changed my normal.dot page setup to legal size. This works as expected… when I create a new word doc, it defaults to legal. When I print a web page, it prints legal. Everything displays/prints legal size EXCEPT for my HTML code with Response.ContentType = "application/msword".
Does anyone have any suggestions how to solve this problem?
Thanks!
- guitarzan