How we can print directly a report without preview to a local printer in web
How we can print directly a report without preview to a local printer in web-environment, whith Oracle 9ias Report server release 6i patch 11.
The user want to print ticket, built by Oracle Report, without previuw on PDF format, in a web three-tier environment.
Please supply my documentation in detail and sample code if you can.
Hello,
Take a look to the example provided in the note :
Note.253881.1 How to Create a Report With a Frame Only on the Last Page at a Fixed Position
Regards
Similar Messages
-
Print crystal report without preview
Dear All,
i want print crystal report without preview.
when i click print button i want show printer list install in that computer.
so user can choose which printer that use to print. I means like if we printing document from office, we can choose the printer.
how that i can do that?
please help.
best regards,
SurbaktiSince this issue has little to do with sql server, I suggest you post your question to a forum for CR
SAP CR community -
How we can get an interactive report in alv grid display?
Hi experts
Plz tell me how we can get an interactive report in alv grid disply pls send me one sample code to understand this
thanks in advancehi,
check this one
*& Report ZALV_FIELD_GRID1
REPORT ZALV_FIELD_GRID1
NO STANDARD PAGE HEADING.
TABLES MARA.
type-pools :slis.
TYPES : BEGIN OF TMARA ,
MATNR LIKE MARA-MATNR,
MEINS LIKE MARA-MEINS,
ERSDA LIKE MARA-ERSDA,
color(4) type c,
SEL type c,
LIGHT TYPE C,
END OF TMARA.
TYPES: BEGIN OF TMAKT,
MATNR LIKE MAKT-MATNR,
MAKTX LIKE MAKT-MAKTX,
MAKTG LIKE MAKT-MAKTG,
SEL TYPE C,
COLOR(4),
END OF TMAKT.
DATA: ITAB TYPE TMARA OCCURS 0 WITH HEADER LINE,
ITAB1 TYPE TMAKT OCCURS 0 WITH HEADER LINE,
wa_fieldcat type slis_fieldcat_alv,
fieldcat type slis_fieldcat_alv occurs 0,
i_layout type slis_layout_alv,
WA_LISTHEADER TYPE SLIS_LISTHEADER,
i_LISTHEADER TYPE SLIS_LISTHEADER OCCURS 0,
V_EVENTS TYPE SLIS_T_EVENT ,
WA_EVENT TYPE SLIS_ALV_EVENT,
I_TITLE_MARA TYPE LVC_TITLE VALUE 'FIRST LIST DISPLAYED',
I_TITLE_MAKT TYPE LVC_TITLE VALUE 'SECONDRY LIST DISPLAYED',
SORT TYPE slis_t_sortinfo_alv WITH HEADER LINE,
PRINT_CONT type slis_print_alv.
SELECTION SCREE
selection-screen begin of block screen1 with frame title TEXT-001.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN COMMENT /32(35) COMM1.
SELECTION-SCREEN ULINE /27(35).
SELECTION-SCREEN SKIP.
SELECT-OPTIONS MATNR FOR MARA-MATNR.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN ULINE.
SELECTION-SCREEN COMMENT /30(50) COMM2.
SELECTION-SCREEN ULINE /27(40).
SELECTION-SCREEN SKIP.
SELECT-OPTIONS ERSDA FOR MARA-ERSDA.
SELECTION-SCREEN SKIP.
selection-screen end of block screen1.
INITIALIZATION
INITIALIZATION.
MATNR-low = '23'.
MATNR-high = '1000'.
MATNR-option = 'BT'.
MATNR-sign = 'I'.
APPEND MATNR.
ERSDA-low = '20030124'.
ERSDA-high = '20050302' .
APPEND ERSDA.
PERFORM FILLFIELD.
PERFORM FILLLAYOUT.
PERFORM build_print_params.
PERFORM FILL_SORT.
PERFORM EVENT_CALL.
PERFORM POPULATE_EVENT.
SELECTION-SCREEN OUTPUT
AT SELECTION-SCREEN OUTPUT.
comm1 ='SELECT MATERIAL NUMBER RANGE'.
comm2 ='SELECT MATERIAL CREATION DATE'.
START-OF-SELECTION
START-OF-SELECTION.
PERFORM READDATA.
PERFORM POPDATA.
*& Form READDATA
text
FORM READDATA .
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = MATNR-LOW
IMPORTING
OUTPUT = MATNR-LOW.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = MATNR-HIGH
IMPORTING
OUTPUT = MATNR-HIGH.
SELECT MATNR
ERSDA
MEINS
FROM MARA
INTO CORRESPONDING FIELDS OF
TABLE ITAB
WHERE MATNR IN MATNR AND ERSDA IN ERSDA.
LOOP AT ITAB.
data id_color type i VALUE 1.
data id_colors(2) type c.
IF ITAB-MATNR < '000000000000000100'.
ITAB-LIGHT = '1'.
ELSEIF ITAB-MATNR < '000000000000000150' AND ITAB-MATNR >
'000000000000000100' .
ITAB-LIGHT = '2'.
ELSE.
ITAB-LIGHT = '3'.
ENDIF.
id_color = id_color + 1.
if id_color > 7.
id_color = 1.
endif.
id_colors = id_color.
concatenate 'C' id_colors '10' into itab-color.
modify itab.
CLEAR ITAB.
endloop.
ENDFORM. " READDATA
Form FILLFIELD
FORM FILLFIELD .
WA_FIELDCAT-FIELDNAME = 'MATNR'.
WA_FIELDCAT-KEY = 'X'.
WA_FIELDCAT-COL_POS = '1'.
WA_FIELDCAT-outputlen = 20.
WA_FIELDCAT-HOTSPOT = 'X'.
wa_fieldcat-seltext_m = 'MATERIAL NUMBER'.
*WA_FIELDCAT-EMPHASIZE = 'C210'.
APPEND WA_FIELDCAT TO FIELDCAT.
clear wa_fieldcat.
WA_FIELDCAT-FIELDNAME = 'MEINS'.
WA_FIELDCAT-COL_POS = '2'.
*WA_FIELDCAT-EMPHASIZE = 'C510'.
WA_FIELDCAT-outputlen = 10.
wa_fieldcat-seltext_m = 'UNIT'.
APPEND WA_FIELDCAT TO FIELDCAT.
clear wa_fieldcat.
WA_FIELDCAT-FIELDNAME = 'ERSDA'.
WA_FIELDCAT-COL_POS = '3'.
WA_FIELDCAT-outputlen = 15.
*WA_FIELDCAT-EDIT_MASK = 'DD.MM.YYYY'.
*WA_FIELDCAT-EMPHASIZE = 'C710'.
wa_fieldcat-seltext_m = 'CREAT DATE'.
APPEND WA_FIELDCAT TO FIELDCAT.
clear wa_fieldcat.
ENDFORM. "FILLFIELD
Setup print parameters
form build_print_params.
PRINT_CONT-reserve_lines = '3'. "Lines reserved for footer
PRINT_CONT-no_coverpage = 'X'.
endform. " BUILD_PRINT_PARAMS
Form POPDATA
FORM POPDATA .
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 = ' '
I_CALLBACK_USER_COMMAND = 'USER-COMMAND'
I_CALLBACK_TOP_OF_PAGE = 'TOPPAGE'
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE = I_TITLE_MARA
I_GRID_SETTINGS =
IS_LAYOUT = I_LAYOUT
IT_FIELDCAT = fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT = SORT[]
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS = V_EVENTS
IT_EVENT_EXIT =
IS_PRINT = PRINT_CONT
TABLES
T_OUTTAB = ITAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
ENDFORM. " POPDATA
Form TOPPAGE
FORM TOPPAGE.
REFRESH I_LISTHEADER.
DATA: ld_lines type i,
ld_linesc(10) type c,
I_DATE(10) TYPE C,
I_INFO LIKE WA_LISTHEADER-INFO.
WA_LISTHEADER-TYP = 'H'.
WA_LISTHEADER-INFO = 'MATERIAL DETAIL'.
APPEND WA_LISTHEADER TO I_LISTHEADER.
CLEAR WA_LISTHEADER.
WA_LISTHEADER-TYP = 'S'.
WA_LISTHEADER-KEY = 'DATE :'.
CONCATENATE SY-DATUM+6(2) '.'
SY-DATUM+4(2) '.'
SY-DATUM(4) INTO I_DATE.
WA_LISTHEADER-INFO = I_datE.
APPEND WA_LISTHEADER TO I_LISTHEADER.
CLEAR WA_LISTHEADER.
describe table ITAB lines ld_lines.
ld_linesc = ld_lines.
concatenate 'TOTAL NUMBER OF RECORD SELECTED: ' ld_linesc
into I_INFO separated by space.
WA_LISTHEADER-TYP = 'A'.
WA_LISTHEADER-INFO = I_INFO.
append WA_LISTHEADER to I_LISTHEADER.
clear: WA_LISTHEADER , I_INFO.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = I_LISTHEADER
I_LOGO = 'ENJOYSAP_LOGO'.
ENDFORM. "TOPPAGE
Form FILLLAYOUT
FORM FILLLAYOUT .
i_layout-zebra = 'X'.
i_layout-info_fieldname = 'COLOR'.
i_layout-box_fieldname = 'SEL'.
I_LAYOUT-lights_fieldname = 'LIGHT'.
I_LAYOUT-EDIT ='X'.
I_LAYOUT-colwidth_optimize = 'X'.
I_LAYOUT-window_titlebar = 'EXAMPLE FOR ALV GRID'.
I_LAYOUT-no_totalline = 'X'.
ENDFORM. "FILLLAYOUT
Form FILL_SORT
FORM FILL_SORT .
SORT-DOWN = 'X'.
SORT-SPOS = 1.
SORT-FIELDNAME = 'MATNR'.
SORT-tabname = 'MARA'.
APPEND SORT.
ENDFORM. " FILL_SORT
Form EVENT_CALL
FORM EVENT_CALL .
DATA: I_EVENT LIKE V_EVENTS.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = V_EVENTS.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " EVENT_CALL
Form POPULATE_EVENT
FORM POPULATE_EVENT .
READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'USER_COMMAND'.
IF SY-SUBRC EQ 0.
WA_EVENT-FORM = 'USER_COMMAND'.
MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
WA_EVENT-NAME.
READ TABLE V_EVENTS WITH KEY NAME = SLIS_EV_END_OF_PAGE
INTO WA_EVENT.
IF SY-SUBRC = 0.
move 'END_OF_PAGE' to WA_EVENT-FORM.
MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
WA_EVENT-NAME.
endif.
ENDIF.
ENDFORM. "POPULATE_EVENT
FORM END_OF_PAGE.
write: sy-uline(50).
skip.
write:/40 'Page:', sy-pagno .
ENDFORM.
*& Form USER_COMMAND
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN '&IC1'.
CASE RS_SELFIELD-FIELDNAME.
when 'MATNR'.
read table itab with key matnr = RS_SELFIELD-VALUE.
if sy-subrc = 0.
PERFORM DATA_RETRIEVAL_MAKT USING RS_SELFIELD-VALUE.
PERFORM BUILD_FIELDCATLOG_MAKT.
PERFORM FILLLAYOUT_MAKT.
PERFORM DISPLAY_ALV_MAKT.
CLEAR RS_SELFIELD.
ENDIF.
ENDCASE.
ENDCASE.
ENDFORM. "user_command
Form DATA_RETRIEVAL_MAKT
FORM DATA_RETRIEVAL_MAKT USING TMATNR .
SELECT MATNR
MAKTX
MAKTG
UP TO 100 ROWS
FROM MAKT
INTO TABLE ITAB1
WHERE SPRAS = 'EN' AND MATNR = TMATNR.
LOOP AT ITAB1.
data id_color type i VALUE 1.
data id_colors(2) type c.
id_color = id_color + 1.
if id_color > 7.
id_color = 1.
endif.
id_colors = id_color.
concatenate 'C' id_colors '10' into itab1-color.
modify itab1.
CLEAR ITAB1.
ENDLOOP.
ENDFORM. "DATA_RETRIEVAL_MAKT
Form FILLLAYOUT_MAKT
FORM FILLLAYOUT_MAKT .
CLEAR I_LAYOUT.
i_layout-zebra = 'X'.
i_layout-info_fieldname = 'COLOR'.
i_layout-box_fieldname = 'SEL'.
I_LAYOUT-EDIT ='X'.
I_LAYOUT-colwidth_optimize = 'X'.
I_LAYOUT-window_titlebar = 'EXAMPLE FOR ALV GRID'.
ENDFORM. " LAYOUT_MAKT
Form BUILD_FIELDCATLOG_MAKT
FORM BUILD_FIELDCATLOG_MAKT .
REFRESH FIELDCAT.
WA_FIELDCAT-FIELDNAME = 'MATNR'.
WA_FIELDCAT-KEY = 'X'.
WA_FIELDCAT-COL_POS = '1'.
*WA_FIELDCAT-EDIT_MASK = 'DD.MM.YYYY'.
WA_FIELDCAT-EMPHASIZE = 'C510'.
wa_fieldcat-seltext_m = 'MATERIAL NUMBER'.
APPEND WA_FIELDCAT TO FIELDCAT.
clear wa_fieldcat.
WA_FIELDCAT-FIELDNAME = 'MAKTX'.
WA_FIELDCAT-COL_POS = '2'.
WA_FIELDCAT-EMPHASIZE = 'C710'.
wa_fieldcat-seltext_m = 'MATERIAL DESCRIPTION'.
APPEND WA_FIELDCAT TO FIELDCAT.
clear wa_fieldcat.
WA_FIELDCAT-FIELDNAME = 'MAKTG'.
WA_FIELDCAT-COL_POS = '3'.
WA_FIELDCAT-EMPHASIZE = 'C210'.
wa_fieldcat-seltext_m = 'MATERIAL DESCRIPTION'.
APPEND WA_FIELDCAT TO FIELDCAT.
clear wa_fieldcat.
ENDFORM. " BUILD_FIELDCATLOG_MAKT
Form DISPLAY_ALV_MAKT
FORM TOP-OF-PAGE.
REFRESH I_LISTHEADER.
DATA: ld_lines type i,
ld_linesc(10) type c,
I_DATE(10) TYPE C,
I_INFO LIKE WA_LISTHEADER-INFO.
WA_LISTHEADER-TYP = 'H'.
WA_LISTHEADER-INFO = 'MATERIAL DESCRIPTION FOR SELECTED NUMBER'.
APPEND WA_LISTHEADER TO I_LISTHEADER.
CLEAR WA_LISTHEADER.
WA_LISTHEADER-TYP = 'S'.
WA_LISTHEADER-KEY = 'DATE :'.
CONCATENATE SY-DATUM+6(2) '.'
SY-DATUM+4(2) '.'
SY-DATUM(4) INTO I_DATE.
WA_LISTHEADER-INFO = I_datE.
APPEND WA_LISTHEADER TO I_LISTHEADER.
CLEAR WA_LISTHEADER.
describe table ITAB1 lines ld_lines.
ld_linesc = ld_lines.
concatenate 'TOTAL NUMBER OF RECORD SELECTED: ' ld_linesc
into I_INFO separated by space.
WA_LISTHEADER-TYP = 'A'.
WA_LISTHEADER-INFO = I_INFO.
append WA_LISTHEADER to I_LISTHEADER.
clear: WA_LISTHEADER , I_INFO.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = I_LISTHEADER
I_LOGO = 'ENJOYSAP_LOGO'.
I_END_OF_LIST_GRID =
I_ALV_FORM =
ENDFORM. "TOP-OF-PAGE
*& Form DISPLAY_ALV_MAKT
text
FORM DISPLAY_ALV_MAKT .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_TOP_OF_PAGE = 'TOP-OF-PAGE'
I_GRID_TITLE = I_TITLE_MAKT
IS_LAYOUT = I_LAYOUT
IT_FIELDCAT = fieldcat
TABLES
T_OUTTAB = ITAB1
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " DISPLAY_ALV_MAKT
Rewards points -
How to call session directly in bdc without using SM35
how to call session directly in bdc without using SM35
HI
good
you r using the sm35 to see the session for calling teh session in your report
ATA: messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE ,
c_session LIKE apqi-groupid VALUE 'Z3PL_CUST' ,
c_job LIKE tbtcjob-jobname VALUE 'Z3PL_JOB_CUST' ,
c_flag TYPE c VALUE 'X' ,
g_qid TYPE apqi-qid .
thanks
mrutyun -
How Do I go directly to Desktop without disturbing the Opened pages? I am using Lion OS
How Do I go directly to Desktop without disturbing the Opened pages? I am using Lion OS
You can tap one of the keyboard Function (F) keys. Without knowing which keyboard you use it 's a little difficult to say. If you don't have a keyboard shortcut to do that, create one in System Preferences - Keyboard. I have my F6 key set to take me directly to the desktop. However the way your question is phrased I'm not positive that is what you are asking.
-
How i can reset my security questions without rescure email
Hi
How i can reset my security questions without rescue email because i didn't have it i to solve this problem but i failed and my account is blocked i can buy anything from store please someone help me to solve this with all step by step and all links I'm so confusing
ThanksIf you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
Contacting Apple about account security : http://support.apple.com/kb/HT5699
When they've been reset you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312 -
How i can turn on delivery report in georgia? on ios7 ?
how i can turn on delivery report in georgia? on ios7 ?please help me i need it !!
No such option. Only available for iMessage.
And why would it matter where you are located? -
how i can reset my security question without a rescue email? i have 10 dollars on it.
Go to https://getsupport.apple.com ; click 'See all products and services', then 'More Products and Services, then 'Apple ID', then 'Other Apple ID Topics' then 'Forgotten Apple ID security questions'.
-
Can you open a report in Excel/Word desktop instead of the web pugin?
using run_report_object( and web.show_document,
how or can you get a report to open in the desktop/full version of MS Excel/Word instead of the web plugin versions?
I can get the browser to open a report in pdf with my desktop adobe reader, but not with an rtf or xml/delimited desformat.
Currently I don't pass a mimetype when opening as a pdf, but I do pass one in the url when i am destypes of xml, delimited and rtf,
as this is the only way i have found out how to open the reports in word/excel.
I'm in the process of upgrading from forms 6 client/server to 10g developer suite, so this is my try with a web based system.
Does anyone have any suggestions, or where I should look.
Below I listed my code from a procedure.
the first part of the procedure is alot of converting, but if you skip down to the part between the 2 sets of double lines this fairly standard.
PACKAGE BODY pmc_lib IS
-- Procedure to run the report.
procedure run_reports(v_report_name in varchar2, -- Report Name with or w/o a path.
v_commode in number default synchronous, -- commode
v_execmode in number default runtime, -- execute mode
v_file_sys in number default filesystem, -- dummy
v_param_list in paramlist, -- parameter list
v_show_modes in varchar2 default null) is -- used for testing,
-- if set to anthing but null, the report properties will display
-- on the screen through an alert prior to printing.
v_errorcode number;
v_errortext varchar2(600);
v_initialized boolean := false;
v_prop_reportserver varchar2(200);
v_report_path varchar2(200);
v_user varchar2(100);
v_user_sessionid number;
v_forms_version varchar2(100);
v_default_report_server varchar2(200);
v_default_server_domain_path varchar2(200);
v_connect_string varchar2(3) := get_application_property(connect_string);
v_user_name varchar2(35) := get_application_property(username);
report_id report_object;
reportserverjob varchar2(100);
v_jobid varchar2(100);
rep_status varchar2(100);
v_url varchar2(500);
v_url2 varchar2(500);
v_parameter_value varchar2(100);
v_destype_param_value varchar2(100) := null;
v_desformat_param_value varchar2(100) := null;
v_desname_param_value varchar2(100) := null;
v_value_n number := 0;
v_param_type number := text_parameter;
v_prop_execmode number;
v_prop_commode number;
v_prop_destype number;
v_prop_filename varchar2(200);
v_prop_source_block varchar2(200) := null;
v_prop_query_name varchar2(200) := null;
v_prop_desname varchar2(200) := null;
v_prop_desformat varchar2(200) := null;
v_prop_reportserver varchar2(200) := null;
v_prop_other varchar2(200) := null;
v_mimetype varchar2(200) := null;
v_selected_mimetype varchar2(200) := null;
report_not_generated exception;
report_id_not_found exception;
BEGIN
v_forms_version := get_application_property(version);
v_prop_reportserver := get_report_object_property('report1', report_server);
v_report_path := null;
v_user := v_user_name || '/' ||
get_application_property(password) || '@' ||
v_connect_string;
if v_connect_string = 'NNN' then
v_default_server_domain_path := 'pmcoracapp01.aapmc.com/reports/rwservlet';
v_default_report_server := 'rep_pmcoracapp01_frhome1';
else
v_default_server_domain_path := 'oradevsrv.aapmc.com/reports/rwservlet';
v_default_report_server := 'rep_oradevsrv_frhome1';
end if;
v_initialized := true;
-- Check to see what version of forms is running.
if substr(v_forms_version, 1, 1) <> '6' then
-- Check to see if WEB version is running
-- This may be an unnecessary check.
if (get_application_property(user_interface) = 'WEB') then
report_id := find_report_object('report1');
-- id_null won't work on a report_id in Version 6, may put back in 10g once version 6 is gone completly
-- if id_null(report_id) then
-- raise report_id_not_found;
-- end if;
-- Because of Convertions from old system the following are needed.
-- 1) If 'execmode' is runtime, then change it to batch.
if v_execmode = runtime then
v_prop_execmode := batch;
else
v_prop_execmode := v_execmode;
end if;
-- 2) If Report name has an attached path, then remove it.
v_value_n := instr(lower(v_report_name), 'k:\pmc\new\');
if v_value_n = 0 then
v_prop_filename := v_report_name;
else
v_prop_filename := substr(v_report_name, v_value_n + 11);
end if;
-- From looking at the FORMS, 'destype' parameter is always passed in from the FORM.
-- It is either 'preview' or 'file'.
-- This is here for the converstion from Forms 6 to 10g.
-- If for some reason destype has not been passed in as a parameter, you will get a FORM error,
-- saying the parameter does not exists.
begin
-- 3) If 'destype' is one of the following, then change it to cache.
get_parameter_attr(v_param_list, 'destype', v_param_type, v_destype_param_value);
if lower(nvl(v_destype_param_value, 'null')) in ('preview', 'file', 'null') then
v_prop_destype := cache;
-- 3a) If 'destype' was = 'file' then check the 'desformat' and 'desname'.
if lower(nvl(v_destype_param_value, 'null')) = 'file' then
-- 3b) Get 'desformat' value
get_parameter_attr(v_param_list, 'desformat', v_param_type, v_desformat_param_value);
-- 'delimited' was not working, so change all 'delimited' to 'delimiteddata'.
if lower(nvl(v_desformat_param_value, 'null')) = 'delimited' then
v_desformat_param_value := 'delimiteddata';
end if;
-- 3c) If 'desformat' is NOT one of the following, then change it to pdf.
if lower(nvl(v_desformat_param_value, 'null')) not in ('pdf', 'xml', 'rtf', 'delimiteddata') then
v_prop_desformat := 'pdf';
else
v_prop_desformat := lower(v_desformat_param_value);
end if;
-- 4) Get 'desname' property.
get_parameter_attr(v_param_list, 'desname', v_param_type, v_desname_param_value);
v_prop_desname := lower(v_desname_param_value);
end if;
else
v_prop_destype := lower(v_destype_param_value);
end if;
exception
when others then
null;
end;
-- If a desformat is rtf, xml, or delimited then get a mimetype to pass to the url
if lower(v_prop_desformat) = 'rtf' then
v_mimetype := '&mimetype=application/msword';
elsif lower(v_prop_desformat) = 'xml' then
v_mimetype := '&mimetype=application/vnd.ms-excel';
elsif lower(v_prop_desformat) = 'delimiteddata' then
v_mimetype := '&mimetype=application/vnd.ms-excel';
end if;
-- 6) If the Following are not set within the Report Object then
-- set them to the following defaults.
-- These are al required to be set for the Report Object to Function.
-- These are the defaults for AAPMC.
v_prop_execmode := nvl(v_prop_execmode, batch);
v_prop_commode := nvl(v_prop_commode, synchronous);
v_prop_destype := nvl(v_prop_destype, cache);
v_prop_desformat := nvl(v_prop_desformat, 'pdf');
v_prop_reportserver := nvl(v_prop_reportserver, v_default_report_server);
-- Set All Report_Object Properties
set_report_object_property(report_id, report_execution_mode, v_prop_execmode);
set_report_object_property(report_id, report_comm_mode, v_commode);
set_report_object_property(report_id, report_destype, v_prop_destype);
set_report_object_property(report_id, report_filename, v_prop_filename);
set_report_object_property(report_id, report_source_block, v_prop_source_block);
set_report_object_property(report_id, report_query_name, v_prop_query_name);
set_report_object_property(report_id, report_desname, v_prop_desname);
set_report_object_property(report_id, report_desformat, v_prop_desformat);
set_report_object_property(report_id, report_server, v_prop_reportserver);
set_report_object_property(report_id, report_other, v_prop_other);
-- Run Report_Object
reportserverjob := run_report_object(report_id, v_param_list);
v_jobid := substr(reportserverjob, length(v_prop_reportserver) + 2, length(reportserverjob));
-- If Report Status is not 'FINISHED', then loop till it is.
if reportserverjob is not null then
rep_status := report_object_status(reportserverjob);
while rep_status in ('RUNNING', 'OPENING_REPORT', 'ENQUEUED') loop
rep_status := report_object_status(reportserverjob);
end loop;
if rep_status <> 'FINISHED' then
raise report_not_generated;
end if;
-- Create 1st part of url.
v_url := 'http://' || v_default_server_domain_path || '/getjobid' || v_jobid || '?server=' || v_prop_reportserver;
-- Check for mimetype.
if v_mimetype is not null then
v_url := v_url || v_mimetype;
end if;
-- Final part of url.
v_url2 := 'javascript:window.open("' || v_url || '", "", "fullscreen=no, titlebar=no, location=no, toolbar=no, menubar=no, status=no, resizable=yes"); self.close()';
-- This is the built-in that calls a new browser window
web.show_document(v_url2,'_blank');
else
raise report_not_generated;
end if;
end if;
-- Destroy the parameter list.
destroy_parameter_list(v_param_list);
else
-- This section if for Client Server, Version 6 of forms.
-- It will do the same as before the conversion.
-- It is only used before the complete conversion.
if v_report_name is null then
return;
end if;
v_value_n := instr(v_report_name, 'k:\pmc\new\');
if v_value_n = 0 then
v_prop_filename := 'k:\pmc\new\' || v_report_name;
else
v_prop_filename := v_report_name;
end if;
run_product(reports,
v_prop_filename,
v_commode,
v_execmode,
filesystem,
v_param_list,
null);
end if;
-- create history record of the report being run
insert into pmc_report_history values(
s_pmc_report_history.nextval,
v_prop_filename,
v_user_name,
sysdate,
v_forms_version,
v_jobid,
v_destype_param_value,
v_desformat_param_value,
v_desname_param_value,
v_prop_destype,
v_prop_desformat,
v_prop_desname,
v_mimetype,
v_window_open_params);
commit;
exception
when report_id_not_found then
show_user_alert('ERROR: Cannot Find Report Object!', null);
when report_not_generated then
show_user_alert('ERROR: Report Not Generated!', null);
when others then
v_errorcode := SQLCODE;
v_errortext := SQLERRM;
show_user_alert('ERROR : ' || v_errorcode || ' = ' || v_errortext, null);
end;
end;What you could try is downloading the report to the client pc using WEBUTIL_FILETRANSFER.URL_TO_CLIENT, then open the locally save file using something like:
CLIENT_HOST('cmd /c rundll32.exe url.dll,FileProtocolHandler "localfilename"'); -
How Can I print directly the report from the printer without showing it ?
I know how to run the report from Form as it illustrate on this site:
http://www.lv2000.com/articles/runreport.htm
but the question here how could i to generate the report directly to the printer without showing it on the screen???
I search on the net and I find that I should change this line :-
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE, cache);
to this
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE, printer);
but it is not working with me :-(
is there any suggest ?!Check if any of these helps
Re: Direct Printing in Forms10g
Web.Show_Document() print report directly
Direct Printing from client PC -
How can I get a report with total number of pages printed on my HP Officejet Pro 8610?
Since knowing the number of pages I print is so critical to a choice of using the "HP Instant Ink Plan" or not, how can I find the total number of pages I have printed on my brand-new (installed 2 days ago) 8610? And if I can, is it a "resettable" or rolling total? Don't see anything in user guide and a search yields nothing usable on this blog.
Printer is installed wirelessly on an older PC with Windows XP SP3. I can also of course intstall it with network cable but so far it works OK on my home network without network cable. If it matters which OS, I also have a Lenovo laptop running Vista on which I can install this printer.
Please do not respond that I can find the total by counting the number of pieces of paper I have. Surely the internals of this fine machine must have the requested data so that HP can tell my usage if I select the monthly ink plan!
This 8610 was a good buy (net $89.00 after trade-in of my six year old J36xx Deskjet) at Office Depot/Max which of course influenced my decision to buy it. So far I am very happy with printing qualities and speed, have not tried the scanner yet and will probably never use the fax since I have no land line phone.
Thanks,
Harry
This question was solved.
View Solution.Hi,
Section #2 of the Printer Ststus report will tell you. Please try:
Printer status report
Use the printer status report to view current printer information and ink cartridge status. Also use the printer status report to help you troubleshoot problems with the printer.
The printer status report also contains a log of recent events.
If you need to call HP, it is often useful to print the printer status report before calling.
To print the Printer Status Report
1. From the printer control panel display, touch and slide your finger across the screen and then touch Setup.
2. Touch Print Reports and then touch Printer Status Report.
Regards.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem. -
How to Print a interactive report without action button and search bar
Hello every one....
I am working on printing an interactive report. If there are 20 columns in that report i need to select some columns for printing. For this purpose i used actions button which is in the search bar of the interactive report. But i do not want to get that Actions button and search bar to get printed in the printing page. Can any one give a solution to sort out my problem
Thanks
Manoj.>
Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and ensure you have updated with your profile with a real handle instead of "886412".
You'll get a faster, more effective response to your questions by including as much relevant information as possible upfront. This should include:
<li>Full APEX version
<li>Full DB version and edition
<li>Web server architecture (EPG, OHS or APEX listener)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s)
I am working on printing an interactive report. If there are 20 columns in that report i need to select some columns for printing. For this purpose i used actions button which is in the search bar of the interactive report. But i do not want to get that Actions button and search bar to get printed in the printing page. Can any one give a solution to sort out my problemSee +{message:id=2475831}+
Always search the forum thoroughly before posting a question: 98% of questions (like this one) have been answered before. -
How to create new Custom XML Report without using Form Builder
Hi,
What are the steps to create new Custom XML Report without using Report Builder ?
Thanks and Regards,
AbhiHi,
Steps we now follow
1)Create Data Model in Reports Builder
2)Create xml
3)Insert xml in Publisher to build Fomat
4)FTp rdf
5)Create Data Definition and Template
6)Create executable and Concurrent Program
Is there any way we can build reports without use of Report Builder ? By writing PL SQL Package for Before Report and After Report etc ...
Thanks and Regards,
Abhijit Rode -
How do I print directly from my iPad to wireless Brother air printer ?
We cannot print directly from ipad1. We have a new Brother pie print compatible (supposedly) printer, given as a gift, model MFCJ825DW. It prints nicely from my MacBook Pro through our home wifi network. The iPad, however, will not connect to the printer directly and print. I have to have the MacBook Pro running also in order to print, and then only through an app I bought off iTunes for $9.99. That app is very difficult to use as well (Pro Center...). Is there simply no way to connect an iPad 1 to print directly to this printer ? I have to take my Macbbk Pro to work, and this leaves my wife and the iPad unable to print. That was the main reason for getting the wireless printer! Am I going to have to buy an HP printer, and to they really allow you to print directly from an iPad? I have spent hours trying to solve this and have tried everything I could find, including Google cloud (unable to load Google Chrome on iPad), iPrint and Scan, etc. Can anyone help us out here, or are we just stuck with an Apple product and a printer we cannot effectively use?
Your printer is on the list of supported printers.
http://support.apple.com/kb/ht4356
So it should work. I have not used a brother, but the drill for other airprint printers is:
Make sure the printer is on the same wifi network.
From the printer console, check for and install any firmware update that is available. Almost all airprint devices need the firmware up date. Do the update from the printer, not your computer.
Reboot the pad. Recycle the router. If it still is not working, goto the brother support sire and see if there is a discussion there that can help you. -
how we can show the following data in a flex tree (without having any
label field) ?
<?xml version="1.0"?>
<rootNode>
<childNode>
< subchildNode >
<valueNode>1000</valueNode >
< valueNode >999-888-777</valueNode >
< valueNode >STORTZ</valueNode >
< valueNode >PAM STORTZ</valueNode >
< valueNode >88 ST. MORTON ROAD</valueNode>
</subchildNode>
</childNode >
</rootNode >as is - no how
wrap those xml chunk with a class having clear public properties like:
public class dataRecord {
protected var xml:XML;
function dataRecord(xml:XML) {
this.xml = xml;
public function get id ():String {
return XML(xml.descendants("valueNode")[0]).toString();
// and so on
simpliest way is to change xml structure to use attributes than wrapping that thing with AS code, it's time consuming and non efficient.
Maybe you are looking for
-
Hi, I want to purchase one stock/non stock item for my order immediately.I did local purchase on urgent basis without any pr/po. So how can i book this against the order? Regards ebin <a href="http://www.isohunt.name/">isohunt</a>, <a href="http://ww
-
How to avoid @PostConstruct on page Faces beans during postback?
Hello, we're using GlassFishV2/JSAS9.1 with Mojarra 1.2_04-b22-p05 for a large project, and experiencing performance issues on form-less JSF commands when used in conjonction with @PostConstruct annotations. I feel this is an architectural issue I'm
-
Whenever I import an album off of iTunes, the songs are uploaded into my library in the reverse order, therefore when I burn it into a disc, all the songs are backwards! It irritates me and I was wondering if there was any way to change/fix this with
-
Import Elements catalog into Lightroom
Hi everybody, I used PSE on my notebook for a couple of years now. As i bougth a new pc recently I want to upgrade to Photoshop CC / Lightroom. So here is my question: Is it possible to import my elements catalog into Lightroom including my tags? I s
-
The argument "×_" is not handled correctly.
"×_" changed to "x" (%C3%97) A url like this: http://www.TheDomainName/file.php?q1=1×_=2 is translated by Firefox 4.01 into this: http://www.TheDomainName/file.php?q1=1%C3%97_=2 The argument "×_" is not handled correctly. Changed our s