SAP BO报表数据导出
来源:互联网 发布:甩棍和匕首 知乎 编辑:程序博客网 时间:2024/05/06 01:23
Check if the document has been refreshed
If there are mandatory prompts that are not answered, setPrompts() will not refresh document. If so we print error message.
if (doc.getMustFillPrompts()) { System.out.println("ERROR: Mandatory prompts has not been entered"); }
Also it is possible that there are multiple contexts and one need to be selected in order to run the document. In most cases the documents are designed to avoid prompting about contexts, so here we assume that there is no need to select one. But just in case, we check this also.
if (doc.getMustFillContexts()) { System.out.println("ERROR: Context has not been selected"); }
Export to PDF
We can export complete document, a report of the document, or data providers.
For instance to export the document to PDF, we can get view in the PDF format and write the contents to a file.
BinaryView binaryView2 = (BinaryView)doc.getView(OutputFormatType.PDF); String title = infoObject.getTitle(); writeBytes(binaryView2.getContent(), title + ".pdf");
Here we use an auxiliary function that writes byte array to a file.
public static void writeBytes(byte[] data, String filename) throws IOException { File file = newFile(filename); FileOutputStream fstream = new FileOutputStream(file); fstream.write(data); fstream.close(); }
Exp
- SAP BO报表数据导出
- SAP BO 报表工具
- 谈谈SAP报表导出
- Sap BO 水晶报表Crystal report BO analysis(二)
- 使用sap BO sap BO报表制作财务三栏明细账
- 【SAP BO】Data services初学---动态报表系统开发
- 水晶报表导出数据
- ALV 导出报表数据
- sap bo 中导入员工主数据漏项
- SAP BO学习之二:数据7种插入类型
- 基于hana的BO报表数据权限的控制方法
- 对数据进行报表导出
- 数据报表导出Excel功能
- SAP BO 报表和FineUI(ASP.NET)的无缝集成
- SAP BO是什么
- SAP BO 技术
- SAP BO 学习地址
- bo报表迁移
- linux LCD驱动(四) --- 驱动实现
- 消息队列
- 自定义struts日期显示格式
- Python读取文件目录树——os.walk
- mysqli预处理得到结果集
- SAP BO报表数据导出
- java如何获取本地输入框焦点并向其输入内容
- ACM Steps_Chapter Four_Section1
- Quartz触发器的使用(Spring实现)
- 创业随想--从网站建设开始(6,五一不回家,继续搞网站)
- 编译器定义的C/C++语言各种基本数据类型的取值范围用程序输出
- Android 应用界面设计
- php 后端socket服务长链接,多并发开发备忘
- 快速排序的java实现