HTML DB Printer popup

Hi everybody,
I have 10 pages in our application and we have our own printer friendly page model for those ten pages. In the header, we have
</head>
<body #ONLOAD#
onload="javascript:window.print()"
onLoad="javascript:window.focus()">
#FORM_OPEN#
But, the printer popup doesn't appear for three pages on 10.
Is there somebody can help me ?
Thanks. Bye.

Thank you very much Carl.
It's strange that my code has made the job for 7/10 pages.
I writed <body onload="window.focus();window.print()"> to replace my code and it's working very well.
Bye.

Similar Messages

  • How to suppress the Print Popup in the output ..Please Help Me.

    Hi All,
    <b>My customization is going in Adobe forms.</b>
    when i execute the print program,i am getting  the print popup and asking to enter Output Device.But i don't want to display this <b>Print Popup</B> .How to supress this .i want  to get direct print preview without asking Output Device.
    Please help me.
    I APPRICIATE(REWARD) IF ANY ONE HELPS ME...
    regards,
    Suresh.

    Hi
    See this sample code
    SAMPLE CODE FOR PRINTING
    data: carr_id type sbook-carrid,
    cparam type ssfctrlop,
    outop type ssfcompop,
    fm_name type rs38l_fnam.
    DATA: tab_otf_data TYPE ssfcrescl,
    pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE,
    tab_otf_final TYPE itcoo OCCURS 0 WITH HEADER LINE,
    file_size TYPE i,
    bin_filesize TYPE i,
    FILE_NAME type string,
    File_path type string,
    FULL_PATH type string.
    parameter: p_custid type scustom-id default 1.
    select-options: s_carrid for carr_id default 'LH' to 'LH'.
    parameter: p_form type tdsfname default 'ZAMIT_SMART_FORM'.
    data: customer type scustom,
    bookings type ty_bookings,
    connections type ty_connections.
    start-of-selection.
    <b>************ suppressing the dialog box for print preview*****
    outop-tddest = 'LP01'.
    cparam-no_dialog = 'X'.
    cparam-preview = SPACE.
    cparam-getotf = 'X'.</b>
    select single * from scustom into customer where id = p_custid.
    check sy-subrc = 0.
    select * from sbook into table bookings
    where customid = p_custid
    and carrid in s_carrid
    order by primary key.
    select * from spfli into table connections
    for all entries in bookings
    where carrid = bookings-carrid
    and connid = bookings-connid
    order by primary key.
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting formname = p_form
    variant = ' '
    direct_call = ' '
    importing fm_name = fm_name
    exceptions no_form = 1
    no_function_module = 2
    others = 3.
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    exit.
    endif.
    calling the generated function module
    call function fm_name
    exporting
    archive_index =
    archive_parameters =
    control_parameters = cparam
    mail_appl_obj =
    mail_recipient =
    mail_sender =
    output_options = outop
    user_settings = SPACE
    bookings = bookings
    customer = customer
    connections = connections
    importing
    document_output_info =
    job_output_info = tab_otf_data
    job_output_options =
    exceptions formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    others = 5.
    if sy-subrc <> 0.
    error handling
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    tab_otf_final[] = tab_otf_data-otfdata[].
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    format = 'PDF'
    max_linewidth = 132
    ARCHIVE_INDEX = ' '
    COPYNUMBER = 0
    ASCII_BIDI_VIS2LOG = ' '
    IMPORTING
    bin_filesize = bin_filesize
    BIN_FILE =
    TABLES
    otf = tab_otf_final
    lines = pdf_tab
    EXCEPTIONS
    err_max_linewidth = 1
    err_format = 2
    err_conv_not_possible = 3
    err_bad_otf = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD cl_gui_frontend_services=>file_save_dialog
    EXPORTING
    WINDOW_TITLE =
    DEFAULT_EXTENSION =
    DEFAULT_FILE_NAME =
    FILE_FILTER =
    INITIAL_DIRECTORY =
    WITH_ENCODING =
    PROMPT_ON_OVERWRITE = 'X'
    CHANGING
    filename = FILE_NAME
    path = FILE_PATH
    fullpath = FULL_PATH
    USER_ACTION =
    FILE_ENCODING =
    EXCEPTIONS
    CNTL_ERROR = 1
    ERROR_NO_GUI = 2
    NOT_SUPPORTED_BY_GUI = 3
    others = 4
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ************downloading the converted PDF data to your local PC*******
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    bin_filesize = bin_filesize
    filename = FULL_PATH
    filetype = 'BIN'
    APPEND = ' '
    WRITE_FIELD_SEPARATOR = ' '
    HEADER = '00'
    TRUNC_TRAILING_BLANKS = ' '
    WRITE_LF = 'X'
    COL_SELECT = ' '
    COL_SELECT_MASK = ' '
    DAT_MODE = ' '
    CONFIRM_OVERWRITE = ' '
    NO_AUTH_CHECK = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    WRITE_BOM = ' '
    TRUNC_TRAILING_BLANKS_EOL = 'X'
    IMPORTING
    filelength = file_size
    TABLES
    data_tab = pdf_tab
    FIELDNAMES =
    EXCEPTIONS
    file_write_error = 1
    no_batch = 2
    gui_refuse_filetransfer = 3
    invalid_type = 4
    no_authority = 5
    unknown_error = 6
    header_not_allowed = 7
    separator_not_allowed = 8
    filesize_not_allowed = 9
    header_too_long = 10
    dp_error_create = 11
    dp_error_send = 12
    dp_error_write = 13
    unknown_dp_error = 14
    access_denied = 15
    dp_out_of_memory = 16
    disk_full = 17
    dp_timeout = 18
    file_not_found = 19
    dataprovider_exception = 20
    control_flush_error = 21
    OTHERS = 22
    IF sy-subrc <> 0.
    ENDIF.
    Regards
    Anji

  • How to remove the print popup screen from module pool program

    Hi,
    In my project i am having one module pool program in which 7-8 screens are there.
    In the initial screen after entering the equipment number when i am executing the program then after loading second screen
    it is showing one screen is coming which is asking to print the content of the page.
    I want to remove this screen (printing popup) but i am not able to get the code or setting for it.
    Please help me to solve this problem.
    Thanks and regards.

    I think this is more to do with ABAP than EP so, the corresponding sections of forum could prove more helpful on this...
    Thanks,
    H

  • IW32 - Print - windows printer popup is shown

    Hi all,
    I use the sapscript print program in order to trigger a smartforms print program.
    The order will be printed in background by a BDC.
    Now after implementation of EhP5 the windows print popup is shown when the order should be printed.
    When I play the BDC in foreground the popup is coming.
    When I do the steps manually via IW32 the popup doesn't appear.
    Any ideas?
    regards

    I suggest to check your Shop Papers configuration and if, as part of your EhP installation, the SAP Note 208271 was implemented. We are testing it and found that behavior.
    I hope this helps.
    CAVA.

  • No Print Popup - Generate Spool

    Hi frnds,
    now i am calling the smartform thru report when i choose the one radio button. But when i select radiobutton and execute it is going to PRINT popup and asking for Print Preview or Print. But my requirement is this popup should not come. it has to generate the spool number of this layout.
    how to do this.
    points will be rewarded for your helpful answers.
    Thanks in Advance.
    Regards,
    Balu

    DATA:SSFCOMPOP1 TYPE SSFCOMPOP.
          DATA: SSFCRESCL1 TYPE SSFCRESCL.
          DATA: SPOOL TYPE RSPOID.
          DATA: CONTROL TYPE SSFCTRLOP.
          SSFCOMPOP1-TDNEWID = 'X'.
          SSFCOMPOP1-TDIMMED = 'X'.
         CONTROL-PREVIEW   = 'X'.
          CONTROL-NO_OPEN   = 'X'.
          CONTROL-NO_CLOSE  = 'X'.
          CONTROL-NO_DIALOG = 'X'.
          CONTROL-DEVICE = 'PRINTER'.
          CALL FUNCTION 'SSF_OPEN'
           EXPORTING
            ARCHIVE_PARAMETERS       =
             USER_SETTINGS            = ' '
            MAIL_SENDER              =
            MAIL_RECIPIENT           =
            MAIL_APPL_OBJ            =
             OUTPUT_OPTIONS           = SSFCOMPOP1
             CONTROL_PARAMETERS       = CONTROL
          IMPORTING
            JOB_OUTPUT_OPTIONS       =
          EXCEPTIONS
            FORMATTING_ERROR         = 1
            INTERNAL_ERROR           = 2
            SEND_ERROR               = 3
            USER_CANCELED            = 4
            OTHERS                   = 5
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    call ur fm_name
    then
        CALL FUNCTION 'SSF_CLOSE'
        IMPORTING
          JOB_OUTPUT_INFO        =
         EXCEPTIONS
           FORMATTING_ERROR       = 1
           INTERNAL_ERROR         = 2
           SEND_ERROR             = 3
           OTHERS                 = 4
        IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    regards
    Devanand

  • Print Popup should not come

    Hi,
    I want to pass default printer Name, whenever user click on print u201CPRINTu201D printer should select and automatically gets print.
    Without generating Spool Request.
    *--Call Smartforms--
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            FORMNAME           = 'ZZMM_PURCHASE_ORDER'
          IMPORTING
            FM_NAME            = L_FM_NAME
          EXCEPTIONS
            NO_FORM            = 1
            NO_FUNCTION_MODULE = 2
            OTHERS             = 3.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        CALL FUNCTION L_FM_NAME
          TABLES
            IT_IFINAL          = IT_IFINAL
            WA_HFINAL          = WA_HFINAL.

    This is not possible. if you can see a print preview there already is a spool. you cannot print without a spool...
    WHAT you can do is to mark the checkbox "delete after printing" in the print popup.
    ok now you want to tell that you cant mark it as you have suppressed the diablog.
    Well the standard interface of a smartforms has even more parameters. onbe of them is OUTPUT_OPTIONS. It has an attribute
    TDDELETE. set is as 'X'.

  • HTML DB Printer options

    Thanks Vikas,
    I work with version 1.6. and I have a navigation bar entry name "Print Version". When I click on this entry because I put on Printer Friendly, a new window appears in front in a printer way. But, If a write on "OnClick Javascript'' window.print() , I want the printer options on this new page which I newly get the focus but the printer options is related to my first window; I do not want this.
    Another question, Is it possible to combine many window.xxxxxx on "OnClick Javascript" ?
    Thank you. Bye.

    Sorry, but I really dont understand what you are trying to say.
    window.print() invokes your browser's builtin File/Print function, typically that would popup a dialog box with Printer options.
    For me (Firefox, Windows 2003), it brings up (see screenshot)
    http://tinypic.com/eq7ebo.jpg
    This has nothing to do with HTML DB.
    The [Print] navigation bar in HTML DB would just redisplay the same page but pass in YES for the printer friendly mode (9th argument in f?p= syntax). This displays the target page using the "Printer Friendly" page template (if present in the theme you are using)
    Another question, Is it possible to combine many window.xxxxxx on "OnClick Javascript" Instead of calling a bunch of Javascript functions inline, you can always put them in a function of your own and call that function. Is that what you mean by "combine"?

  • Reports 3/6i HTML Output Print problem

    Hi!
    I am using Reports 3 to generate HTML output but when I print this HTML output, it does not break at Oracle Reports Page break. It looks like the browser takes its default settings for margins. I am using IE 5.5.
    I tried the following options
    1. Using { page-break-after: always } option in 'After Page Value' of Report Escapes property (Report)
    2. Changing margin settings of browser, but was not able to change them to 0.
    I want to print the HTML report with page breaks where Oracle marks as Page Break.
    If possible, Please do write me at [email protected]
    Thanks,
    Praveen Kumar

    Praveen,
    When you generate a HTML page in Reports, you are generating a single page document that is then intepretted by the browser. You are correct that when you then print this page from the browser then it will not necessarily break at the same point as the reports page breaks.
    The only way to guarantee that you will get the same breaks is to use a different format. Most commonly people use PDF format when they want the printed page to match exactly what's on the screen. Alternatively you could include a link on the HTML rendition of the report that resubmits the report to the server but instructs the server to print the report directly.
    Hope this helps,
    Danny

  • Html region print report in APEX 3.0

    Hi all!
    I have some HTML regions on some pages of my application.
    Do you know how to receive print reports of this regions in some formats e.g. PDF, EXCEL, HTML, rtf ?
    Is't any idea or any link ?
    Regards,
    Roman

    Hi all!
    I have some HTML regions on some pages of my application.
    Do you know how to receive print reports of this regions in some formats e.g. PDF, EXCEL, HTML, rtf ?
    Is't any idea or any link ?
    Regards,
    Roman

  • Can print popups, but they're halfway off the page

    Greetings,
    Using Acrobat 9 Extended and have received edits (Text edits and sticky notes).
    I figured out how to print the comments on the page, but even though the balloons are on the left-hand side of the page, the popups appear on the right. I wouldn't mind, except that they also print on the right, actually halfway off of the page so I see half a popup.
    Is there a way to have all popups appear in the center or something without having to go to each one and drag it?
    Alternately, since I'm a flexible guy, I opted to print just the comments, and that went fine except for one thing: Each page's comments printed on a separate page. That means a page with 1 comment got an entire printed page of mosty empty space. I tried sorting by date, author, page, and whatever else it gave me, to no avail. Is there a way to just print the comments as a list without a lot of 90% empty pages?
    Thanks,
    Solon

    You would not be able to get them back. They do warn you that this could happen at any time so it is your responsibility to have backups of everthing.

  • Reg: Suppress Print popup while printing ALV

    Hi Experts,
    I am using FM REUSE_ALV_LIST_DISPLAY to print the report and convert the spool to PDF and email it as attachment.
    When iam calling the FM for printing by passing parameter IS_PRINT, it is asking me to enter printer details as popup. I need to suppress this popup. I tried passing the default print parameters to this IS_PRINT, but still no result.
    Can anyone help me on this.
    Thanks
    Naveen

    Hi
    You need to pass first ALV data to spool and a PDF doc as email and then again call the FM grid display .
    Clear Spool Number
      CLEAR: gv_spool.
    Check for presence of any recipients
      IF s_reclst[] IS NOT INITIAL.
        sy-batch = 'X'.                                       "#EC WRITE_OK
        gs_alv_print-print =  'X'.
        gs_alv_print-prnt_info = ' '.
        gs_alv_print-no_print_selinfos = 'X'.
        gs_alv_print-no_print_listinfos = 'X'.
        gs_alv_print-no_coverpage = 'X'.
        gs_alv_print-reserve_lines = 1.
        gs_alv_print-print_ctrl-pri_params-pdest = 'PRINTER'.
        gs_alv_print-print_ctrl-pri_params-primm = 'X'.
        CALL FUNCTION 'REUSE_ALV_list_DISPLAY'
          EXPORTING
            i_callback_program = gv_repid
            is_layout          = gs_alv_layout
            is_variant         = gs_alv_variant
            it_fieldcat        = gt_alv_fieldcat
            it_sort            = gt_alv_sort
            it_events          = gt_alv_events
            is_print           = gs_alv_print
          TABLES
            t_outtab           = gt_final[]
          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.
    Get the Spoolnumber
        gv_spool = sy-spono.
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = gv_spool
          TABLES
            pdf                      = gt_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.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ELSE.
    Transfer the 132-long strings to 255-long strings
          LOOP AT gt_pdf_output INTO gs_pdf_output.
            TRANSLATE gs_pdf_output USING ' ~'.
            CONCATENATE gt_buffer gs_pdf_output INTO gt_buffer.
          ENDLOOP.
          TRANSLATE gt_buffer USING '~ '.
          DO.
            gs_objtxt = gt_buffer.
            APPEND gs_objtxt TO gt_objtxt.
            SHIFT gt_buffer LEFT BY 255 PLACES.
            IF gt_buffer IS INITIAL.
              EXIT.
            ENDIF.
          ENDDO.
        ENDIF.
      ENDIF.
    the above code will help you.
    Thanks
    kishore

  • Contains HTML tags & print

    Hi,
    Reports6i patch10
    Scenario is: I have a column (database colummn text with embedded HTML ) where I set property 'Contains HTML tags'
    I get the column incl html rendered find where desformat=html&destype=file&desname=myfile.html '
    but when setting
    destype=printer&desformat=html&desname=myqueue and sending output straight to printerqueue the html is not being rendered in fact the column is not rendered at all
    HAs anyone similar experience ? solutions ?
    TIA
    Per

    Hello Per Elmgreen,
    When DESTYPE is specified as PRINTER, Reports formats output in PS or PCL format (depending on the printer language understood by the destination printer). Since these formats do not understand HTML tags, any such markup in the output will remain unformatted.
    In order to get properly formatted output using HTML tags, you could generate the report to a HTML file (with the 'Contains HTML tags' property set) and then print the file using a browser.
    Thanks,
    The Oracle Reports Team.

  • HTML DB - Print tools

    Hi everybody,
    Our users want to print the screen application with all the data in pages.
    Is it possible to call "Gadwin Print screen" directly by the HTML DB application ?
    Thank. Bye.

    Hello,
    You can not execute a desktop application from a webpage.
    If this application somehow connects itself to the standard windows print dialog you could call that but from a brief overview it doesn't look like it does. This is more a question for the developers of that product not HTML DB.
    Carl

  • Html db - confirmation popup

    Hi everyone,
    I would like a "popup" which is posted when I press on Close button in my page and I've forgotten to record my data.
    Is this with Javascript which I can create this popup confirmation or HTML-DB offers something in this case ?
    Thank you very much. Bye.

    Do you mean a close button in HTMLDB or the browser window's close button? [HTMLDB cannot help much with the latter!]
    For buttons you created, just add a URL target as
    javascript:if(confirm("Are you sure?")) doSubmit('CLOSE');
    That will popup the box and if OK is clicked submit the page with REQUEST set to CLOSE

  • Display static html page in popup

    Hello all,
    I have to display a popup that alerts the user to the fact that a file has been written successfully (or not). The popup has to auto-close after 2 seconds or so; so that the user doesn't have to always press the "OK" button like with javascript alert. If there is a way to close the javascript alert box I'd be happy to know though.
    So I thought the javascript;
    win = window.open('',.....
    followed by;
    win.document.write('<html>.......
    would be the way to go. I see now that it isn't. I guess because the popup opens on the client while the code is run on the server and this causes a permissions problem.
    Then I figured that I could add the html file to my .par and open it locally from my java code. I can't seem to get that working however.
    I also figure that since the J2EE server is a server then there must be someplace there I can put an html file and then just call it over http.
    Any help with this will be greatly appreciated.
    Thanks for your time,
    Patrick.
    Message was edited by: Patrick O'Neill
    So that I could mark it as a question

    Hello,
    You get the server, port etc... from the standard J2EE objects like
    request.getServerName()
    or
    request.getServerPort()
    They return Strings so You can add then by using
    +
    So, mix up Your J2EE (web) knowledge with SAP Portal knowledge.
    I hope this helps...
    Walter

Maybe you are looking for

  • Java Stored Procedure in EXECUTE IMMEDIATE

    Hi, I need advice for the following. I'm on Oracle 11g R2. I'm testing application in Oracle 11gR1 and R2 and Oracle Express. Purpose is to generate XML reports. I have PLSQL Stored Procedure which does that, but since there is bug in Oracle11gR2 rel

  • Is it possible to purchase a non-english keyboard in the US?

    We often have users that would like a different langugage keyboard on their laptops. I have a brazillian user that would like a Portuguese keyboard, and was told that needs to be purchased in Brazil, or a custom laptop needs to be ordered straight fr

  • OPENING VIDEO I LOSE IMAGES THAT DON'T SHOW

    GREETINGS, I COMPLETED A RECENT PRODUCTION. BUT WHEN I OPEN THAT FILE IN ELEMENTS PREMIERE THE IMAGES I INSERTED INTO PRODUCTION ARE NOT DISPLAYING. WHERE MIGHT THEY BE? WHILE IN PRODUCTION THEY WERE DISPLAYING IN MY PROJECT ASSETS, EASY TO UPLOAD IN

  • Reading PE3 TIFF LZW exports in other applications

    When I try to read PE3 TIFF LZW exports in another application, I sometimes get problems. For example, certain images generate "Tiff image message: wrong data type 7 for 'XMLPacket'; tag ignored" from the latest version of GIMP, and cannot be read at

  • Can't find home sharing button on itunes 12

    I want to transfer music using home sharing, but I can't find the button you push for Home Sharing. I have iTunes 12.1 on both computers, one Mac and one Windows. Please help me!