报告的某些部分在打印后不会出现 [英] Some portion of the report is not coming after printing it

查看:64
本文介绍了报告的某些部分在打印后不会出现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在报告页面. JavaScript函数用于打印到页面.但是在该报告的印刷版本中,该报告的某些部分没有提供.此问题的可能原因是什么?
这是JavaScript函数:

I am working in a report a page. A JavaScript function is used to print to page. But in the printed version of the report some portion of the report is not coming. What may be the probable reason of this issue??
Here is the JavaScript function:

function doprint()
			{
				document.all('btnPrint').style.visibility =  'hidden';
				document.all('btnClose').style.visibility =  'hidden';
				try
				{
					if (factory == null)
					{
					     window.print();
					}
					else
					{
						if (factory.printing == null)
						{
						    window.print();
						}
						else
						{
							var h = factory.printing.header;
							var f = factory.printing.footer;
							//set header and footer to blank
							factory.printing.header = "";
							factory.printing.footer = "";
							//print page without prompt
							factory.DoPrint(false);
							//restore user's info
							factory.printing.header = h;
							factory.printing.footer = f;
						}
					}  
				}
				catch(e)
				{
					window.print();
				}
       
				//show the print and close button
				document.all("btnPrint").style.visibility = 'visible';
				document.all("btnClose").style.visibility = 'visible';
			}


预先感谢


Thanks in advance

推荐答案

此问题的可能原因是什么?
可能是设计的报告不适合页面布局或打印机页面大小.

确保报告内容在有限的范围内并且可以打印在工作表中.
What may be the probable reason of this issue??
It might be that the report designed does not fit in the page layout or printer page size.

Make sure that the report content is within a limited boundary and can be printed in the sheet.


这篇关于报告的某些部分在打印后不会出现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆