1,
String printer_name=null;//定义一个全局参数
//以下代码是检测这个报表是否有相应的参数模板
String paramFile = report.substring(0,iTmp)+"_arg.raq";
File f=new File(application.getRealPath(reportFileHome+ File.separator +paramFile));
///
try {
String reportPath = request.getRealPath(reportFileHome+"/"+report);
ReportDefine rd = (ReportDefine)ReportUtils.read(reportPath);
request.setAttribute("reportDefine",rd);
System.out.println(rd.getPrintSetup().getPaper());//当前报表纸张类型
System.out.println(rd.getPrintSetup().getPaperHeight());
System.out.println(rd.getPrintSetup().getPaperWidth());
System.out.println(reportPath);
if(rd.getPrintSetup().getPaperHeight()==279 && rd.getPrintSetup().getPaperWidth()==216){
printer_name="Microsoft XPS Document Writer"; //当报表的高宽符合时指定打印机名称
}
} catch (Throwable e) {
e.printStackTrace();
}
----------------------------------------------------------------------------
2,
<report:html name="report1" reportFileName="<%=report%>"
funcBarLocation="both"
needPageMark="yes"
needImportExcel="yes,0"
printerName="<%=printer_name%>"//指定printerName的值
generateParamForm="no"
params="<%=param.toString()%>"
exceptionPage="/reportJsp/myError2.jsp"
appletJarName="runqianReport4Applet.jar,dmGraphApplet.jar,applet.jar"
/>
分享到:
相关推荐
report.jsp
Stimulsoft报表破解版下载,包含Base.dll Report.dll Report.Web.dll WebDesign.dll
ms report.zipms report.zipms report.zipms report.zipms report.zipms report.zipms report.zipms report.zipms report.zip
report.jsp页面 博文链接:https://xiaobo.iteye.com/blog/34777
订单数据数据集tmall_order_report.csv
PADS9.5用基本脚本导出坐标文件,但是出来的是BOM,没有坐标。 这是因为17 - Excel Part List Report.BAS脚本有问题,用这个替换就可以正常输出坐标
Quick.Report.Professional.v4.07.for.Delphi.7.Full.Source-SSG.rar
cactus-report.xsl cactus-report.xsl cactus-report.xsl
StimulSoft.Report.WebDesigner_2008.2_Cracked
My_ReportMachine.dll(报表工具) [Vb] 需求:My_ReportMachine.dll [Vb.Net/C#/J#] 需求:My_ReportMachine.dll/adodb.dll/Interop.My_ReportMachine.dll [C++] 需求:My_ReportMachine.dll/adodb.dll/Interop.My_...
sleepstudy-report.html
对Stimulsoft.Report.Silverlight 2015.3.0.0的报表控件,实现了去水印功能。 本控件只用于学习用途。
04.05 设置报表字段集 04.05.01 创建纵向/双向展开字段集 04.05.01.01 选择数据集 04.05.01.02 绑定数据集变量 04.05.01.03 数据集记录过滤 04.05.01.04 编辑字段集列表和属性 04.05.01.05 汇总 04.05.01.06...
runqian_report-4.jar 润乾报表相关的jar包文件......
Grid++Report是一款同时支持C/S软件(桌面程序)与B/S软件(WEB程序)开发的报表工具,功能全面易学易用。C/S开发适用于VB.NET、C#、VB6、VB、VC、Delphi、C++Builder、QT与易语言等。B/S开发适用于ASP.NET(C# & VB.NET)...
report.html
labview 自动生成WORD报表,按源码内容自行编辑文档模版,重点是标签(标签名称可自行修改)
有简单的打印功能,并有报表的设计,代码中的数据库连接自己建立。如果你想立即看到效果,请删除里面的代码,并建立jsp页面即可
护肤品零售可见性报告 Skin Care Retail Visibility Report.pdf
最好用免费报表开发工具 Grid++Report 6.7.5.1 (6.7.20.405) 20200405 免安装版 Grid++Report是一款同时支持C/S软件(桌面程序)与B/S软件(WEB程序)开发的报表工具,功能全面易学易用。C/S开发适用于VB.NET、C#、VB6、...