oracle 直接从报告导出 PDF
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4536883/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
export PDF from report directly
提问by Amir
I use Oracle Report 6 for get my report, The problem is I want to get PDF export without displaying the report.I mean right now, I click on one button and make report (call a report from my Oracle form) then go to my report menu ->Generate to File -> PDF.
我使用 Oracle Report 6 获取我的报告,问题是我想在不显示报告的情况下导出 PDF。我的意思是现在,我单击一个按钮并制作报告(从我的 Oracle 表单调用报告)然后转到我的报告菜单 -> 生成到文件 -> PDF。
I dont want do this anymore... can I use any command from my form to export my report directly? I mean for example use some command to prepare report and get export in PDF automatically...
我不想再这样做了……我可以使用表单中的任何命令直接导出我的报告吗?我的意思是例如使用一些命令来准备报告并自动以 PDF 格式导出...
also if I can set the export file name and it's location when I try to generate PDF also can help me so much because I need to follow some rule for put name for my export files like use prefix and some digit and number....
此外,如果我可以设置导出文件名及其在我尝试生成 PDF 时的位置也可以帮助我很多,因为我需要遵循一些规则来放置导出文件的名称,例如使用前缀和一些数字和数字......
What is your suggestion?
你的建议是什么?
回答by Manim
You can do both request.
你可以做这两个请求。
You have to create parameter and pass to run_product built-in
您必须创建参数并传递给内置的 run_product
Syntax:
句法:
REPORT_DESTYPE: File, Printer, Mail, Cache -- SET File
REPORT_FILENAME: The report filename (not used with CACHE) -- Set your desirable file name format
REPORT_DESNAME: The report destination name (not used with Cache) --
REPORT_DESFORMAT: The report destination format -- <HTML|HTMLCSS|PDF|RTF|XML|DELIMITED> set PDF
Sample parameter list: SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT, '');
示例参数列表:SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT, '');
I hope this help.
我希望这有帮助。
If you still need full details let me know, i'll add a sample procedure.
如果您仍然需要完整的详细信息,请告诉我,我将添加一个示例程序。
回答by kashif
Use these parameter fields:
使用这些参数字段:
ADD_PARAMETER(p1,'DESTYPE',TEXT_PARAMETER,'FILE');
ADD_PARAMETER(p1,'DESFORMAT',TEXT_PARAMETER,'PDF');
ADD_PARAMETER(p1,'DESNAME',TEXT_PARAMETER,'C:\Downloads\MRP_PROCESSRATE.PDF');