Report output to PRINTER
I posted this in Application server forums. I didn't get any resolution for this.
We migrated forms 6i application to 10g. Our apllication has three options for the report output.
1. Output to preview
2. Output directly to printer
3. Output to file.
I have couple of questions regarding the output to printer and file.
1. Right now the application server uses the unix printer commands in /usr/bin to print. We need to print the report output from the application server with the printer commands in /opt/cups/bin instead of /usr/bin.
How to do this?
2. If the report output destination is set to FILE. Then the server generates and store the ouput in the default directory /exports/../.../../. How do I change the default destination location.
Thanks,
Vijay.
Hello,
1) Since, 9.0.2, Reports uses the script rwlpr.sh (OH/bin) to send the ouput to a printer when DESTYPE=PRINTER. If you want to change the executable used to print, modify this script
2) When DESTYPE=FILE, it is possible to specify a "full path name " in DESNAME
Regards
Similar Messages
-
Unable to send report output to printer when using RUN_REPORT_OBJECT in 10g
Hello All,
When I try to send my report output to a file from my form(10g), I get 'FRM-41213: Unable to connect to report server'. I can sucessfully send my report to printer when I set the REPORT_DESTYPE to 'PRINTER'.Here is the code from my when-button-pressed trigger.
Am I missing something?
declare
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := find_report_object('PWRR_CTRL_TYP_MAINT');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_ipkcaf7vm');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'DFLT');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,'C:\TEST1.doc');
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
msg_alert('Report print successfully', 'I', FALSE);
ELSE
msg_alert('Error when running report', 'I', FALSE);
END IF;
END;
Thanks,
AnnaHi,
its because
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,'C:\TEST1.doc');
references the report rdf pr rep file to run, not the output file. The Reports output file is always specified with DESNAME
Frank -
Error when sending report output to printer from Forms 10g
Hi,
I have a simple report that I am running from a form using run_report_object built-in. I can successfully send the report output to a file but when I send the report output to a printer my report is
terminated with report status of 'TERMINATED_WITH_ERROR'. I am using the default forms service and reports server that comes with the forms builder. How do I specify the reports server to user my default network printer ?Following is the code that runs my report.
Thanks,
Anna
PROCEDURE SEND_TO_PRINTER IS
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(50);
rep_server system_variables.reports_server%type;
alldone exception;
BEGIN
select reports_server
into rep_server
from system_variables;
if rep_server is null then
msg_alert('Error getting the reports server name', 'I', FALSE);
raise alldone;
end if;
:ctrl.run_report_errors := 'N';
repid := find_report_object('REP_OBJ1');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,rep_server);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
IF :ctrl.rg_print = 'P' THEN
--Send the output to printer.
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,PRINTER);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'dflt');
ELSIF :ctrl.rg_print = 'R' THEN
--Rich Text Format
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'rtf');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,:ctrl.filename);
END IF;
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
null;
ELSE
:ctrl.run_report_errors := 'Y';
msg_alert('Error when running report.' || rep_status, 'I', FALSE);
END IF;
EXCEPTION
when no_data_found then
msg_alert('Error getting the reports server name', 'I', FALSE);
when alldone then
null;
END;If you use Windows the user that runs the reports server is usually LocalSystem. Check this in the Windows Services panel.
LocalSystem has no printer access. To be able to print, you have to use a real domain user that has access to the printer. So, change the Log on properties in the Services panel. -
Scheduled Report Output to Printer
Hi Guys,
hope you are all well.
Can someone help me. I am have created a report and set this to be schedule at X time. I need the report output via Business Objects XI to be to Printer.
I have set up a printer and set it as a shared printer on the same server BO runs on. I have also set the printer to Default. When I schedule the report and set the Print Settings to Default Printer it does not print...no error messages...but no print. Helppppp as I am going mad.
Many thanksWe just recently migrated to XI R2 on a new server, and did not consider the print settings...until a user noticed they could not print like normal
We recreated the printers on the new server, and people could then choose a specific printer now. (We named the printers the same as the print ID on the server.)
However, people could not choose Default Printer in Infoview (during Schedule). When they chose it, the report would be successful, but we were not sure where the output would go.
I found a few articles on Knowledge base, and I think #1 and #2 may be our best alternatives.
1202786 - A Crystal report printed through InfoView does not use the default printer on the client computer
1203768 - The default printer is not chosen when printing from Infoview
This last one seems little drastic - all scheduled reports on a jobs server would take the behavior of the job server. This seems excessive.
1217095 - Report does not print when scheduled to printer in Crystal Enterprise or BusinessObjects Enterprise
Article #1 &2 will require retooling of the rpt files, but we plan to address the user issues on a per report basis.
Walter -
How to send report output to printer
Hi,
In Oracle applications one of my AR report has printer parameter
when user submitting the request he needs to choose the printer name for that
parameter then this report output needs to go to automatically to that printer after completion of report.
Do I need to change report system parameter values for this?
Could you help me in this?
Thanks in advance.Hi,
If you use ORARRP, you reports will automatically go to the default printers.
Regards,
Soumyajit -
Sending report output to printer directly (on Unix)
Hello.
Please help.
I was previously using LPD for printing my oracle character mode reports. Now we have migrated to a new versions which has more graphics and colours. Also, some of my new reports are in PDF format.
I would need some help sorting out how to configure my new printers (Deskjets and Laser - replacing some of my dot matrix).
I had created all my printers using SAM->Printers and Plotters->LP Spooler->Printers and Plotters
Also, i use Print Server Emulator programs running under Microsoft Windows to accept printjobs from queues and print.
Thank you in advance for a reply
YDCheck the reports job queue for the exact error message.
I doubt if this is a valid printer name. Check if this printer is defined on the server. It can also be that the user that runs the Oracle reports service has no access to the printer. -
Urgent -Oracle 10g - report is getting printed square of no of copies
Hi All,
I am printing oracle 10g report from form using server side printer. If I specify the number of copies to 1 then it prints 1 copy of report. but if I specify 2 then it prints 4 copies of the report.
It prints square of no of copies.
Pl. give me some pointer to resolve this issue.
Thanks in AdvanceHello,
This is a known problem and documented in the note :
Note 316849.1 With 'destype=printer' and 'copies=n', 'n*n' Copies of Report Output are Printed
A workaround is suggested in this note.
Regards -
Printing logo with ALV report output?
Hi all,
I have written a sinple program to display a report output in ALV grid format and inserted a logo in it usingh standrad FM. Though the logo is inserted successfully displaying with list , but when i am clicking on print preview the logo is missing.
Please help me on how to print the logo with the list?
Thanks,
Vamshi.Hi Krishna,
-->Firstly go to T-Code OAER.
-->Give Class Name as PICTURES
-->Give Class Type as OT
-->Give Object Key as(watever the name you wish to give)
-->Example key 1000
-->Click on Execute.
Here you will get Standard Document Types.
Select which ever you want i.e., Attachment,Screen,Template ,etc.
Double click on Attchment it will ask you the File on the Desktop.
Upload the image.
Now you can see the Image in the Folder PICTURES.
Now go to the Report.
Function Module 'REUSE_ALV_COMMENTARY_WRITE'.
i_logo = '1000'.
Hope this will Help you.
With Regards,
Sharmishta. -
Report output different when sent directly to printer
I have a report that if formated for 8.5 x 11 paper and has an address at the bottom of the page. When the report is generated as a pdf the address is in the corrent postion. When the report is sent directly to a printer from the report server the bottom 2 inches of the report are not printed. If i send the pdf version to the same printer it prints correctly.
Any help with this issue would be greatly appreciated.Thanks for your answer, Ramachandra!
However I need some more specific information to solve this.
Which printer layout settings are relevant for the handling of margins and duplex printing for Adobe Forms?
I have not set up the printer myself but when talking to the printer guy which settings should I recommend him to look at?
I can see in transaction SPAD that there are settings specific to SmartForms but there is nothing said about Adobe Forms. Is there some way to make Adobe Forms related setting appear in SPAD for a device type?
Maybe my problem is not related to the printer device settings but rather to the way the printer is being called. When printing duplex we will have to override the default settings of the printer anyway.
Function module FP_JOB_OPEN has a parameter structure of the type SFPOUTPUTPARAMS. Which fields in this parameter structure are to be manipulated to get duplex print and output fitted to page size? -
Printing issue of report output list display
Dear All,
I need to print the report output display list. So, for this I have used the following code. But it's not printing.
Will you please check the below code and kindly let me where should I change/modify in the code.
START-OF-SELECTION.
SET PF-STATUS 'ZGUI_STATUS1'.
END-OF-SELECTION.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'PRNT'.
DATA: l_params TYPE pri_params,
l_valid TYPE c,
l_arc_params TYPE arc_params.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = l_v_usr01-spld
copies = 1
list_name = 'TEST'
list_text = 'Test NEW-PAGE PRINT ON'
immediately = 'X'
line_size = 220
release = 'X'
mode = 'CURRENT'
no_dialog = 'X'
IMPORTING
out_archive_parameters = l_arc_params
out_parameters = l_params
valid = l_valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
NEW-PAGE PRINT ON PARAMETERS l_params ARCHIVE PARAMETERS
l_arc_params NO DIALOG.
PERFORM display_data.
NEW-PAGE PRINT OFF.
ENDCASE.
Many Thanks,
RanjanDear Amit,
The font size is not increasing, in-fact, if I use the code like the below, it's not even printing, I am checking different ways,
DATA: lay TYPE pri_params-paart,
lines TYPE pri_params-linct,
rows TYPE pri_params-linsz.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'PRNT'.
lay = 'X_60_85'.
lines = 60.
rows = 85.
DATA: l_params TYPE pri_params,
l_valid TYPE c,
l_arc_params TYPE arc_params.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = l_v_usr01-spld
destination = 'LPIN'
copies = 1
list_name = 'TEST'
list_text = 'Test NEW-PAGE PRINT ON'
immediately = 'X'
layout = lay
line_count = lines
line_size = rows
line_size = 220
release = 'X'
mode = 'CURRENT'
no_dialog = 'X'
IMPORTING
out_archive_parameters = l_arc_params
out_parameters = l_params
valid = l_valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
NEW-PAGE PRINT ON PARAMETERS l_params NO DIALOG.
PERFORM display_data.
NEW-PAGE PRINT OFF.
ENDCASE.
Kindly let me know if you have some new answer?
Kind Regards,
Ranjan -
Report output directly to printer on web
I am using Forms 6i & Reports 6i to build an application.
I run report from forms 6i using Run_Report_Object (Output to
printer).
It works fine when using Client/Server.
But When on the web the output of report to printer goes to the
printer of the server instead of printer of the client.
I want to print the report from the printer of client who
requested the report directly.
Please help me out.
Thanks
ZulqarnainStephen,
use destype=printer and desname=<network printer>. The format by default is set to postscript.
Frank -
Printing ABAP List(Report output - SE38) in A3 format
I have a requirement to print the ABAP report in A3 page format. I am using LP01 printer and in in SPAD transcation I Changed the Tab "Output Attributes"
Paper tray = "Paper tray 3" and Tab "Tray Info" Tray 3 = "DINA3" still the report gets print in A4 page format.
Even i tried by changing the lize size and line count...still .... it prints in A4 format only.
Could you let me know what exactly I need to in order to print my report output in A3 Page format.
Waiting for your reply.
Thanks in Advance,
SteevanHi,
Check this below link
http://www.sap-img.com/basis/how-can-i-print-a3-format-in-sap.htm
Cheers!!
VEnk@ -
How to Print Selection-Screen along with ALV Report output
Hi,
I have a requirement wherein i need to also print the Selection Screen of a report when I print the ALV report output.
Basically i need to print the ALV output along with selection screen.
Could you plz suggest me the way.
Regards,
NitinHi,
My selection Screen is a very big one. It contains around 30 select-options.
So is their any standard method in which you can choose whether you want to take the output printout with or without Selection screen.
Regards,
Nitin -
Hi,
I have generated a ALV Report Output. Fine, but when I have selected 'Print' button or 'Download' button in Application Tool Bar I get dump 'GETWA_NOT_ASSIGNED'.
What should I do to rectify the error?
Thnx,
Shivaa...This is my declaration....
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
i_callback_program = sy-repid
i_callback_pf_status_set = gs_user_status
i_callback_user_command = gs_user_command
i_callback_top_of_page = 'TOP-OF-PAGE'
I_CALLBACK_HTML_TOP_OF_PAGE = 'HTML_TOP_OF_PAGE '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = 'ALV_BACKGROUND'
I_GRID_TITLE =
I_GRID_SETTINGS =
is_layout = gs_layout
it_fieldcat = itfc
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
i_save = 'A'
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
tables
t_outtab = it_alv
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
Plz let me know the changes I have to do.. -
Need to Print the Report Output
Hi,
I want to print the report output. How to install a printer in Oracle Appls. If i give number of copies 1 or morethan 1(from SRS Window)...the report is completed-warning. pls advice
Thanks in advance.Hi,
I changed the printer to Epson LQ2170 and Epson LQ2180 but since I don't know the initialization and reset parameter (already search for the manual but couldn't find it, downloaded from Epson's website but couldn't find it either) so I register it with LQ1070. I'd tested to print the reports directly from Reports Builder 6i and it printed just as I wanted to but when I tried to print from oracle apps it only printed up to about 3/4 width of the paper. I tried to change the report's height and width, paper size, orientation but no luck. What should I do? Thanks
Maybe you are looking for
-
Hyper-V Failover Cluster Node Corruption
Dear All, Some of my nodes are showing abnormal behavior. They are restarting every now and then. I had updated the cluster nodes, but all updates were OS specific, there was nothing specific with respect to hardware update. I have anal
-
CL_RSBK_DTP - How to use...
Hi Guys, I'm currently trying to automate some loades. For that reason i want to modify my Data Transfer Packages by some ABAP. The CL_RSBK_DTP is the class for a DTP in abap. But i cant quite figure out how to use it. I want to be able to: 1. Modify
-
Exception Handling Error DBMS_XMLSave
I am running this script and I get the following error: declare ERROR at line 1: ORA-29540: class oracle/xml/sql/save/OracleXMLStaticSave does not exist ORA-06512: at "SYS.DBMS_XMLSAVE", line 91 ORA-06512: at "SYS.DBMS_XMLSAVE", line 92 ORA-06512: at
-
PS Elements 9 Missing Shares to Facebook Features
Hi everyone, I just installed PSE9, only to find that the Shares to Facebook features is missing as you can see from the screenshots. Anyone idea what should I do to 'enable' this feature back?
-
Web Applet Problem OnDemandRdrtLogin Iframe
Hi, we have multiple Web Applets attached to one object. The Administrator has no problem. We see all the Web Applet with the correct results. But if we login into the system with the standard user the first time we see the following link in each web