3.Web中使用iReport 整合----------创建PDF格式的
转自:https://wenku.baidu.com/view/104156f9770bf78a65295462.html
1.
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQMAAAGJCAIAAAABmMEiAAAgAElEQVR4nO2dfVRTV97vUx/nz2ltb58707nrWc88s2ata+88Y1ftrJmWdR8fr50R23orQy+PHda048htnnqZjlPRoiKWoWAtgkYJ1BcUxAYRiVqQ1JciKBrrSyNFsbQIGKgNhhcjKDkkgX3/OEnOPufsc5LASc45Ob/POstFDmefszH7k713cr7ZOoSQC9AYW0oPt48iHyJvW0oPT+20VemzvHc+9t75uCp9ltAxeXl5Dx8+FD/PlStXiouLjwQoLi6+cuXK1KoUPjowQYNsKT0svk3ttLQJIhq4wjPB5XJduXKloqKiuLi4oqIiBhq4wARAQqrSZ4lr4ArbhNgDJgAxBUwAAEUDJgCAy0WbAAAAmAAACElowrXWFuPxopX19cbjRddaWxBCZZ8cHX3wkHPY7OWlUl0RACREGhOutbasrK/vvFpBOb5YWV+f0HD9WmtLR3tr8a4DnCPBBECZSGNC9ekO9KDn67aSC12bGm7s/kNJzdK11c6W7F0frVuzoWDNhoLcD4vvOoeQkAmdhgRdgqFTkroAwFSQxoSV9fW139w80Lz3E8tL+/b+Nj27/A9/rUb3z/k3jFAmdBoSdAyxssOi13HRW2JyZUApCJowOTkZck+QlfX1C87a/2BqyP7PF9f89W/Jfz36blYRGj7t3xBasvEQfWSo0VGnIYFphBZ9VFsk61qBC07hevzzAOqDbEJ5eXlmZqbX6w3u8Xq9mZmZFRUVxOOvtbb8cd+lF7fdWP5u7X8sP/Afyz+41tqCnJ/6N0yAiEyYYssMFzABYCCY4PP5MjMz58+fH5SB1oDe4/P5iCe61tpSlH0w7f/u3rDKQL93lJNXvTLjwMqMAwihw+e+nr28dPby0vJTXxEKM20Jb1Wc2QMzhAnspA9m9mPNER/vBHdjxyckMKMw5hp8E/gXxQdwegt+IZjpqBlyn+DxeIJNf2xsjCNGmHxqnwhu+P7/XGX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PCwcM42VVRswvDZFSXMM9d31Rj4ub0g8PQTd7Loqgk2C6IJfVeNwQPwnyOoJN62Ag/7rhoTS7ILTtZwTfafv72gxFg9TO/0/0D8E4jnwYsHYZ88rPOE+C/9/1/hPyLvn08qAAAAAElFTkSuQmCC" alt="" />
2.导入ireport的所有jar包和创建report包导入编译好的sample.jasper和sample.jrxml文件
3.testPDF.jsp文件
<%@page import="net.sf.jasperreports.engine.JasperRunManager"%>
<%@page import="java.sql.DriverManager"%>
<%@page import="java.sql.Connection"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.Map"%>
<%@page import="java.io.File"%>
<%@ page language="java" contentType="application/pdf; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="application/pdf; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body> <%
response.reset();
File reportFile = new File(this.getServletConfig().getServletContext().getRealPath(
"/report/sample.jasper"));
String url = "jdbc:oracle:thin:@192.168.100.9:1521:Alpha";
Class.forName("oracle.jdbc.driver.OracleDriver");
Map parameters = new HashMap();
//"SQLSTR"是报表中定义的一个参数名称,其类型为String 型
parameters.put("SQLSTR",
"select * from employee where employee_id like 'Z%'");
Connection conn = DriverManager.getConnection(url, "MLP_BONDED",
"password");
byte[] bytes = JasperRunManager.runReportToPdf(
reportFile.getPath(), parameters, conn);
response.setContentType("application/pdf");
response.setContentLength(bytes.length);
ServletOutputStream outStream = response.getOutputStream();
outStream.write(bytes, 0, bytes.length);
outStream.flush();
outStream.close();
out.clear();
out = pageContext.pushBody();
%>
</body>
</html>
3.Web中使用iReport 整合----------创建PDF格式的的更多相关文章
- 2.Web中使用iReport 整合----------创建html格式的
转自:https://wenku.baidu.com/view/104156f9770bf78a65295462.html 1.
- web中简单wcf的创建和应用
以前做过wcf控制台作为宿主,今天回顾一下,不过公司用的web直接创建就把这种过程写下来. 第一步:创建wcf页面如图 第二步:创建wcf时候已经自动生成了接口(契约)和实现类(契约),但是我们可以修 ...
- java web中cookie的永久创建与撤销
一.首先是创建cookie 当在数据库中查找知道所输入的用户名和密码正确之后,就开始创建: String cb=request.getParameter("cb");//cb就是登 ...
- C# /VB.NET 创建PDF项目符号列表和多级编号列表
使用项目符号和编号,可以让文档的层次结构更清晰.更有条理,也更容易突出重点.在编辑文档的过程中,我个人也比较偏爱项目标号来标注文章重点信息.在之前的文章中,介绍了如何在Word中来创建项目标号和编号列 ...
- ABBYY FineReader 14创建PDF文档功能解析
使用ABBYY FineReader,您可以轻松查看和编辑任何类型的 PDF,真的是一款实至名归的PDF编辑转换器,您知道的,它能够保护.签署和编辑PDF文档,甚至还可以创建PDF文档,本文和小编一起 ...
- MVC中使用RazorPDF创建PDF
这篇文章主要介绍使用Nuget package中的RazorPDF简单的创建PDF的方法. 关于RazorPDF 这个Nuget Package由Al Nyveldt创建.它内部使用ITextShar ...
- C#中如何创建PDF网格并插入图片
这篇文章我将向大家演示如何以编程的方式在PDF文档中创建一个网格,并将图片插入特定的网格中. 网上有一些类似的解决方法,在这里我选择了一个免费版的PDF组件.安装控件后,创建新项目,添加安装目录下的d ...
- HTML5 UI框架Kendo UI Web中如何创建自定义组件(二)
在前面的文章<HTML5 UI框架Kendo UI Web自定义组件(一)>中,对在Kendo UI Web中如何创建自定义组件作出了一些基础讲解,下面将继续前面的内容. 使用一个数据源 ...
- ABBYY PDF Transformer+从文件选项中创建PDF文档的教程
可使用OCR文字识别软件ABBYY PDF Transformer+从Microsoft Word.Microsoft Excel.Microsoft PowerPoint.HTML.RTF.Micr ...
随机推荐
- Mybatis(三)MyBatis 注解方式的基本 用法
在 MyBatis注解 SQL 中,最基本的就是@Select.@Insert.@Update 和@Delete 四种.
- bui拍照上传、相册上传注意事项
1.控制台输入 bui.currentPlatform 可查看工程项目基于什么平台 如:bingotouch 2.如果是 bingotouch , 在 index.js 或者其它配置的地方, 加上 ...
- PL/SQL 条件控制
------ PL/SQL 条件控制 IF-THEN语句 DECLARE a ) :; BEGIN a:; -- check the boolean condition using if statem ...
- python全栈开发,Day42(Thread类的其他方法,同步锁,死锁与递归锁,信号量,事件,条件,定时器,队列,Python标准模块--concurrent.futures)
昨日内容回顾 线程 什么是线程? 线程是cpu调度的最小单位 进程是资源分配的最小单位 进程和线程是什么关系? 线程是在进程中的一个执行单位 多进程 本质上开启的这个进程里就有一个线程 多线程 单纯的 ...
- Pycharm创建模板头部默认
PyCharm 打开,点击左上角 “FILE” 进入 “Settings”,进行头文件设置: 如下: 我的模板: #!/usr/bin/env python# -*- coding:utf-8 -*- ...
- 20180708-Java基本数据类型
public class PrimitiveTypeTest{ public static void main(String[] args){ //byte System.out.println(&q ...
- js 和jquery
1. js 全称 javascript 是 web客户端 运行的 解释性语言.. 2. jquery 只不过是 js 封装 简化了 ajax 和 dhtml 的 一款js 框架而已. 简单来说 Jqu ...
- BaseFragment 基类
package com.test.mvp.mvpdemo.mvp.v6.basemvp; import android.os.Bundle;import android.support.annotat ...
- docker 搭建gitlab
https://docs.gitlab.com/omnibus/docker/ https://blog.csdn.net/m0_37444820/article/details/81147452 h ...
- sqlalchemy.exc.IntegrityError: (mysql.connector.errors.IntegrityError) 1062 (23000): Duplicate entry '1' for key 'PRIMARY'
排错: 看到 Duplicate entry '1' for key 'PRIMARY'是主键错误 看一看自己添加的数据id是1 再查询一下数据库中的表,发现id=1的记录已经存在了 所以在代码中让i ...