Client printing problems in ASP (recommended to join the elite area)
Source: Internet
Author: User
Previously in the ASP also encountered in the browser to print the problem, especially with some applications in the LAN, the previous implementation of the definition of a printing start tag, and an end of the tag, and then call the Window.print () method, and related to the use of frame when the printing problem, A more detailed description of these is available in the MSDN documentation. But, control all compare the trouble, and print more accurate control is more difficult to achieve, have a lot of friends also encountered this problem, recently read an article on the web in the implementation of printing (CSDN), slightly modified, Posted out for your reference, I hope to help you.
You can call the client's Word to print on the premise that the client must have Word installed.
The method is as follows:
<%
Response.ContentType = "Application/msword"
Response. AddHeader "Content-disposition", "inline"; Filename=report.doc "
%>
When the same content is added to the ASP, the client automatically calls word to open the current document, but do not forget to set the Response.Buffer property to False.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.