Rails and ireport
来源:互联网 发布:卢旺达种族灭绝 知乎 编辑:程序博客网 时间:2024/04/29 11:14
rails 使用iReport的方法:
本方法使用ireport设计生成报表文件,使用applet方式呈现报表,可以导出报表。
报表的输入数据暂时支持XML,mysql。
1.在controller目录下 新增document.rb
2. 在controller目录下新增send_doc.rb
3. 在action controller中加入 如下代码:
4. 把ireport的包放在/public/lib下
5. 把applet文件放入html.erb文件中
6. 在根目录下新增reports目录,用于存放ireport编译过的jasper文件
7.如果要导出报表需要增加mimetype, 在environment.rb中增加:
8.在route.rb中最后增加:
访问方法: http://localhost:3000/action/report
- Rails and ireport
- Ruby and Rails 当时
- rails layout and rendering
- rails and clound foundry
- Rails学习 note and
- rails ajax and csrf
- rails源码分析之rack and rails
- iReport
- iReport
- iReport
- ireport
- iReport
- ireport
- ireport
- ireport
- ireport
- ruby and ruby on rails
- Rails 2.2 and MySQL Problems
- SVN分支与合并
- 电脑族养生茶
- Android基础教程之-------Android中两种设置全屏的方法!!!
- 提升幽默感的句子
- malloc/free
- Rails and ireport
- 第二部分 第11章 认识Bash Shell
- 放苹果——递归
- 为什么jstl在页面中不起作用
- 最常用的JAVA编程风格
- Mac本
- 基于Visual C++2010 与office2010开发办公自动化(2)-自动生成excel与word并打开
- python程序返回值
- 输出文件句柄的值