How to generate oracle report in PCL format
Hi,
We are having an issue in our application where the output report(PDF) is getting generated in the Postscript format.
The first few lines of the output pdf are like this:
%!PS-Adobe-3.0
%%Creator: Oracle Toolkit 2 for Motif 10.1.2.0.2 PRODUCTION
%%Version: 10.1 2
%%CreationDate: (Tue Feb 12 09:37:10 2013)
However, the printer which we are using to print these PDF files accepts only PCL format and the print request is failing.
Is there a way we can change the generated report format into PCL format.
Any help would be greatly appreciated as this issue is very critical to our application.
Thanks in advance.
We are trying to do this directly passing the below parameters
desformat=PDF&destype=PRINTER&desname=<PrinterName>
But the issue is the cached file which is getting generated is in PS format(Its on unix server) and printer is not accepting it.
Even if we keep the output as file and then print the file using lpr command, result is same since the PDF file is in PS format.
Similar Messages
-
How to generate my report in HTML format
Hi
I am using Forms and reports 6i . How to generate a report in Html format.
Please explain what are the option available in reports and the way to do
thanks in advance
prasanth a.s.*specify desformat=html in cmd line
refer
* Forms Reports integration 6i
http://otn.oracle.com/products/forms/pdf/277282.pdf
[ All Docs for all versions ]
http://otn.oracle.com/documentation/reports.html
[ Publishing reports to web - 10G ]
http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
[ Building reports - 10G ]
http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
[ Forms Reports Integration whitepaper 9i ]
http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
--------------------------------------------------------------------------------- -
How to generate oracle report output in a comma separated format in reports
Pls any one can help in generation of oracle report in comma separated format in reports 10g.....
thanks,
prasad.
1,Chennai,Nokiasiemen,Convent junction,5535Use desformat=delimited.
http://download.oracle.com/docs/cd/E15523_01/bi.1111/b32122/orbr_howto007.htm#i1040102 -
How to generate jasper report in pdf format using swing
hi all,
im new to swing and jasper.. can anybody provide me some example on how to generate the jasper report in pdf format? i will call the reportManager from sessionBean.. below is my code:
1)delegate:
public GenerateReportDto generateIntoPdfReport(String fileName, String outputFileName, Map parameters){
GenerateReportDto generateReportDto = getAuditTrailServiceRemote().generateIntoPdfReport(fileName, outputFileName, parameters);
return generateReportDto;
2)sessionBean:
public GenerateReportDto generateIntoPdfReport(String fileName, String outputFileName, Map parameters){
//Map parameters = new HashMap();
ReportManager reportManager = new ReportManager();
3)ReportManager()
public void generateIntoPdfReport(String fileName, String outputFileName, Map parameters) {
Connection conn = null;
try {
conn = dataSource.getConnection();
//Generate the report to bytes
File reportFile = new File(fileName);
byte[] bytes =
JasperRunManager.runReportToPdf(
reportFile.getPath(),
parameters,
conn
//conn.close();
//Write the bytes to a file
ByteBuffer buf = ByteBuffer.wrap(bytes);
File file = new File(outputFileName);
// (if the file exists)
boolean append = false;
// Create a writable file channel
FileChannel wChannel = new FileOutputStream(file, append).getChannel();
// Write the ByteBuffer contents; the bytes between the ByteBuffer's
// position and the limit is written to the file
wChannel.write(buf);
// Close the file
wChannel.close();
} finally {
if (conn != null) {
conn.close();
Any help would be highly appreciated. Thanks in advanceHi ,
One 'simple' way is by using the DBMS_SCHEDULER db package and the procedure CREATE_JOB(....) using as job_type the value 'EXECUTABLE'...
Read for further info in 'PL/SQL Packages and Types Reference'.
If you have access to OEM ... you can configure this there using wizard.....
Other way is to use the External Procedure call capabiblity of Oracle DB Server...:
http://www.oracle.com/pls/db102/ranked?word=external+procedure+call&remark=federated_search
My greetings,
Sim -
How to generate one report in multiple formats with FOP or BIP?
Hi all,
Is it possible to generate multiple formats of one report in a single "call" using Apache FOP or BI Publisher? (something similar to reports bursting).
Right now I can only select one format at a time.
Thank you,
Ana-MariaHi Ana-Maria,
When you enable printing on a report region or add a button to download a report query to your application, then you get a single document download. How would you see this working with "multiple formats"? Given that APEX is a development environment, you can pretty much implement anything you like. The built-in printing capabilities in APEX come with an API that allow for customization of the default functionality, e.g. you can use apex_util.download_print_document to dynamically assign report layouts at rumtime or to use you own XML data sources or XSL-FO style sheets. More relevant to you question though, there's also apex_util.get_print_document. What that allows you to do is to generate report documents inside the database and e.g. store them in database tables or email them out to a list of recipients. You can call this API as often as you like to, requesting any combination of available report formats.
The API function is documented here:
http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_util.htm#CHDDECIA
Regards,
Marc -
How to send Oracle report automatically in format pdf by email with subject and body?
Hello,
How to send e-mail attachment and mail other details like from ,subject,cc,to,mail body. In Oracle Developer Suite 10g?
Regards.did you try to run report parameter form = yes ,
put to the parameter form following system parameters and set et.
run report with belove value
- DESTYPE = MAIL
- DESFORMAT = PDF
- DESNAME = mail adres
then according to the result ,rearrange your report forms side while invoke report from forms
- SET_REPORT_OBJECT_PROPERTY( reportobject_id , DESTYPE , mail ) ;
- SET_REPORT_OBJECT_PROPERTY( reportobject_id , DESFORMAT , PDF ) ;
- SET_REPORT_OBJECT_PROPERTY( reportobject_id , DESNAME , mail adres ) ; -
How to generate a report direct in PDF with oracle developer 6i
hi all
Please help me about this issue.
THAT How to generate a report directly in PDF using oracle developer 6i.
Regards
Yousuf Ahmed SiddiquiHi,
You can create the Report directly in PDF by setting some of the Report Parameters
i.e. DESTYPE, DESNAME AND DESFORMAT as follows before calling the Report.
DECLARE
PL_ID PARAMLIST;
PL_NAME VARCHAR2(10) := 'param_list';
BEGIN
PL_ID := GET_PARAMETER_LIST (PL_NAME);
IF NOT ID_NULL (PL_ID) THEN
Destroy_Parameter_List(PL_ID);
END IF;
PL_ID := Create_Parameter_List(PL_NAME);
Add_Parameter (PL_ID, 'DESTYPE', TEXT_PARAMETER, 'FILE');
Add_Parameter (PL_ID, 'DESNAME', TEXT_PARAMETER, 'c:\test.pdf');
Add_Parameter (PL_ID, 'DESFORMAT', TEXT_PARAMETER, 'PDF');
RUN_PRODUCT (REPORTS, 'REPORT_NAME', ASYNCHRONOUS, RUNTIME, FILESYSTEM, PL_ID, NULL);
END;Hope this helps.
Best Regards
Arif Khadas
Edited by: Arif Khadas on Apr 22, 2010 9:24 AM -
How do I generate a report in text format
How do I generate a report in text format and send it to both a file and to a printer?
Solved!
Go to Solution.I run a series of tests on multiple stations and I need to generate a report, both electronic and one to be printed for a DHR (device history record), for each station. If I use file i/o as you suggested is the preferred approach to generate an electronic file and make the report from that, or generate both the electronic and hard copy report from arrays as the measurement data is acquired. Note that the electronic data is more detailed than the data in the hardcopy report.
-
How can i convert oracle report in excel format using 8i
hi,
I want to convert oracle report in excel format using 6i reports. please give the solution with emp table.
millons of thanks in advance.You'll have to use the destype DELIMITEDDATA to render your Report in CSV format. Then set the mime type to Excel. I don't know the exact syntax, so please do a search in metalink for "reports excel" for examples and more info.
Regards,
Martin Malmstrom -
How to generate a report in Excel with multiple sheets using oracle10g
Hi,
I need a small help...
we are using Oracle 10g...
How to generate a report in Excel with multiple sheets.
Thanks in advance.
Regards,
RamThanks Denis.
I am using Oraclereports 10g version, i know desformat=spreadsheet will create single worksheet with out pagination, but my requirment is like the output should be generated in .xls file, and each worksheet will have both data and graphs.
rdf paperlayout format will not workout for generating multiple worksheets.
Is it possible to create multiple worksheets by using .jsp weblayout(web source) in oracle reports10g. If possible please provide me some examples
Regards,
Ram -
Blank Lines in Oracle Reports in Text Format
Hi all,
I m in a problem that , I generate an Oracle report in text format there is two additional blank lines in text format.But when I view this report in report editor there is no blank lines.There is actually only 15 lines in my report but in text format it shows 17 lines.How can I avoid this prblm.pls help.
thanks
jobuinIs the Design in Character Units set to Yes?
How are you viewing your layout in report editor? Are you viewing with Grid?
If it is Yes and with grid, try to fit your layout objects within the Grid. -
How to generate a report in pdf from a stored proc
Hi, i need guidance on how to generate a report in pdf from an oracle stored proc.
The environment is oracle 10gas + 10gdb.
On a specific event, a PL/SQL stored procedure is called to do some processing and at the end of the processing to generate report which has to be sent to the printer (and optionally previewed by the user).
Can anyone assist me with this?Hi ,
One 'simple' way is by using the DBMS_SCHEDULER db package and the procedure CREATE_JOB(....) using as job_type the value 'EXECUTABLE'...
Read for further info in 'PL/SQL Packages and Types Reference'.
If you have access to OEM ... you can configure this there using wizard.....
Other way is to use the External Procedure call capabiblity of Oracle DB Server...:
http://www.oracle.com/pls/db102/ranked?word=external+procedure+call&remark=federated_search
My greetings,
Sim -
How to get a report in pdf format.
Hi Experts,
Could any one let me know that, how to get the report in PDF format.
Once a report is generated it should be displayed in pdf format or downloaded in pdf format.
Thanks in Advance,
Regards,
Irfan HussainHi,
Check out this code:
REPORT zspooltopdf.
PARAMETER: p_email1 LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_sender LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_delspl AS CHECKBOX.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
* Spool IDs
TYPES: BEGIN OF t_tbtcp.
INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
wa_tbtcp TYPE t_tbtcp.
* Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
gd_eventparm LIKE tbtcm-eventparm,
gd_external_program_active LIKE tbtcm-xpgactive,
gd_jobcount LIKE tbtcm-jobcount,
gd_jobname LIKE tbtcm-jobname,
gd_stepcount LIKE tbtcm-stepcount,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
DATA: w_recsize TYPE i.
DATA: gd_subject LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des.
* Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
* Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE sy-sysid VALUE 'DEV',
c_no(1) TYPE c VALUE ' ',
c_device(4) TYPE c VALUE 'LOCL'.
*START-OF-SELECTION.
START-OF-SELECTION.
* Write statement to represent report output. Spool request is created
* if write statement is executed in background. This could also be an
* ALV grid which would be converted to PDF without any extra effort
WRITE 'Hello World'.
new-page.
commit work.
new-page print off.
IF sy-batch EQ 'X'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
*** Alternative way could be to submit another program and store spool
*** id into memory, will be stored in sy-spono.
*submit ZSPOOLTOPDF2
* to sap-spool
* spool parameters %_print
* archive parameters %_print
* without spool dynpro
* and return.
* Get spool id from program called above
* IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
PERFORM convert_spool_to_pdf.
if p_delspl EQ 'X'.
PERFORM delete_spool.
endif.
IF sy-sysid = c_dev.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.
ELSE.
SKIP.
WRITE:/ 'Program must be executed in background in-order for spool',
'request to be created.'.
ENDIF.
* FORM obtain_spool_id *
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> '0000000000'
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004(zdd) WITH gd_spool_nr.
ELSE.
MESSAGE s005(zdd).
ENDIF.
ENDFORM.
* FORM get_job_details *
FORM get_job_details.
* Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM.
* FORM convert_spool_to_pdf *
FORM convert_spool_to_pdf.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CHECK sy-subrc = 0.
* Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
* FORM delete_spool *
FORM delete_spool.
DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
ld_spool_nr = gd_spool_nr.
CHECK p_delspl <> c_no.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
spoolid = ld_spool_nr.
ENDFORM.
Regards,
Gayathri -
Oracle reports in xml format end with stat_low = 6 stat_high = 0
hi
i have a problem with my reports
i have oracle application 11.5.10.2 on linux 32 redhat 4 update 5
after apply the RUP 6
my character_set is :American_America.AR8MSWIN1256
base lang American
install lang ARABIC
when i generate the reports in xml format i get:
Inventory: Version : 11.5.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
ZMCINVTRREG1 module: ZMC Transaction Register Report
Current system time is 04-AUG-2009 14:32:30
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
P_BREAK_ID='1'
P_RPT_UOM='2'
P_ORG='223'
P_QTY_PRECISION='3'
P_GLCC_STRUCT_NUM='50289'
P_TXN_DATE_LO='2009/08/04 00:00:00'
P_TXN_DATE_HI='2009/08/04 00:00:00'
P_AUDIT_DETAIL='2'
P_REASON_DETAIL='2'
P_LOC_DETAIL='2'
P_CATEGORY_DETAIL='2'
P_SERIAL_DETAIL='2'
P_LOT_DETAIL='2'
P_CATG_SET_ID='1'
P_CATG_STRUCT_NUM='101'
-- Start of Reports Command --
ar60runb
P_CONC_REQUEST_ID=373985
P_BREAK_ID='1'
P_RPT_UOM='2'
P_ORG='223'
P_QTY_PRECISION='3'
P_GLCC_STRUCT_NUM='50289'
P_TXN_DATE_LO='2009/08/04 00:00:00'
P_TXN_DATE_HI='2009/08/04 00:00:00'
P_AUDIT_DETAIL='2'
P_REASON_DETAIL='2'
P_LOC_DETAIL='2'
P_CATEGORY_DETAIL='2'
P_SERIAL_DETAIL='2'
P_LOT_DETAIL='2'
P_CATG_SET_ID='1'
P_CATG_STRUCT_NUM='101'
report=/oraapp/prodappl/inv/11.5.0/reports/US/INVTRREG.rdf
batch=yes
destype=file
desname=/oraapp/prodcomn/admin/out/PROD_apps/o373985.out
desformat=XML
-- End of Reports Command --
Request language is :
AMERICAN
Request territory is :
AMERICA
XML_REPORTS_XENVIRONMENT is set to:
/oraapp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
Enabling XML_REPORTS_ENVIRONMENT based environment switching
The Character-Set of the System is:
AR8MSWIN1256
Environment will now switch to UTF-8 code-set.
Parts of this log file may not display correctly
as a result. This is an expected behavior.
Converting parameters to UTF-8
-- Start of Reports Command Converted to UTF-8 --
ar60runb
P_CONC_REQUEST_ID=373985
P_BREAK_ID='1'
P_RPT_UOM='2'
P_ORG='223'
P_QTY_PRECISION='3'
P_GLCC_STRUCT_NUM='50289'
P_TXN_DATE_LO='2009/08/04 00:00:00'
P_TXN_DATE_HI='2009/08/04 00:00:00'
P_AUDIT_DETAIL='2'
P_REASON_DETAIL='2'
P_LOC_DETAIL='2'
P_CATEGORY_DETAIL='2'
P_SERIAL_DETAIL='2'
P_LOT_DETAIL='2'
P_CATG_SET_ID='1'
P_CATG_STRUCT_NUM='101'
report=/oraapp/prodappl/inv/11.5.0/reports/US/INVTRREG.rdf
batch=yes
destype=file
desname=/oraapp/prodcomn/admin/out/PROD_apps/o373985.out
desformat=XML
-- End of Reports Command --
XML_REPORTS_XENVIRONMENT is :
/oraapp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
XENVIRONMENT is set to /oraapp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
Previous NLS_LANG Environment Variable was :
American_America.AR8MSWIN1256
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.UTF8
stat_low = 6
stat_high = 0
emsg:was terminated by signal 6
*** glibc detected *** double free or corruption (!prev): 0x08bf6a78 ***
Report Builder: Release 6.0.8.25.0 - Production on Tue Aug 4 14:32:30 2009
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Enter Username:
Reset original NLS_LANG in environment as :
American_America.AR8MSWIN1256
Program was terminated by signal 6
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 373985.
Review your concurrent request log and/or report output file for more detailed information.
Executing request completion options...
------------- 1) PUBLISH -------------
Beginning post-processing of request 373985 on node APPS at 04-AUG-2009 14:32:37.
Post-processing of request 373985 completed at 04-AUG-2009 14:32:38.
Finished executing request completion options.
Concurrent request completed
Current system time is 04-AUG-2009 14:32:38
can any one help me with it????hi,,,
it seems OS package version conflict
Please check glibc and openmotif version (its responsible for reports)
and
Set the environment variable MALLOC_CHECK_=0 and bounce the Concurrent Managers
MALLOC_CHECK_ can be changed in two places :-
1. Add this to the $APPL_TOP/custom<TWO_TASK>_<HOSTNAME>.env
MALLOC_CHECK_=0
Then restart the concurrent managers and retest
2. Change it in the adovars.env file
Again bounce the concurrent managers and retest
THANKS (ZzZ)
Edited by: zzz on Aug 5, 2009 8:59 AM
Edited by: ZzZ on Aug 5, 2009 9:00 AM -
How to convert Oracle reports previewer output into delimited file.
How to convert Oracle reports previewer output into delimited file if the report has more than 1000 pages.
I tried with previewer option File --> Generate to file --> Delimited file, but the report engine is crashing.Not generating .TXT file.
I observed that this option is not working for more than 400 pages.
I am using Oracle reports 6i version.
Plz suggest me to generate .TXT file from Report previewer.You can specify a delimiter (a character or string of characters) to separate the data (boilerplate or field objects) in your report output in either of the following ways:
On the command line using the DELIMITER keyword.
In the Delimited Output dialog box or DelimitedData Output dialog box (displayed with File > Generate to File > Delimited or File > Generate to File > DelimitedData) in Reports Builder.
for further information goto this link
http://download.oracle.com/docs/cd/B14099_17/bi.1012/b13895/orbr_concepts2.htm#sthref760
Maybe you are looking for
-
What are the infotypes required for maintaining benefits....
Hi Please help ... What are the ingotypes required for maintaing benefits....
-
Indicator for Generic Object Services
We are planning to use the Generic Object Services functionality to attach Word, Excel or PDF files to existing documents in SAP. Our plan is to use this in Accounts Receivable. The issue we have is when we are looking at the open items for a custome
-
Event Back ground scheduling information
Hello Guru's The start variant in the process chain has after event SAPXXXX. This is a user defined event. The process chain first executes the event and then executes the rest of the steps in the process chain. I would like to know the jobs performe
-
Access object attributes using other object JNI native method
Hi. I'm trying to change an attribute of object O1 from another object O2 without invoking a O1 method and without making the attribute as public or protected. The only possibility that comes to my mind for doing so is writting a JNI native method pu
-
Enjoy transactions for sales invoice
Hello SAP Gurus, Do we have any Enjoy Transaction Codes for Sales Invoice as we have for Purchase Invoice like FB65 and FB60? Please help me out on this. Satish