How to suppress print dialog box from popping up under a condition

Greetings...
There may be a better way to accomplish what I'm trying to do, so I'm open to outside-the-box suggestions.
I have a pretty simple page which lists a set of statuses and descriptions of each. The user can edit these status flags and their descriptions on the page as well. When I view the page in "printer friendly" mode, I see a nice simple report of what the statuses are and their descriptions. Everything works great so far.
In our work request system built in ApEx, there's a page where someone can view the details of a work request, including the current status. When someone clicks on the help of that item, what I'd love to do is simple show the "printer friendly" version the status page mentioned above in a pop up window. My problem is that the print dialog box automatically shows up when a page is displayed in "printer friendly" mode and I do not want this to happen in this case.
I see the javascript code in the Printer Friendly page template which causes the print dialog box to show up automatically, but I don't want to remove it in the template just for this one case. This would suppress the print dialog box on all "printer friendly" page views and the users are used to it showing up when they ask to print the page.
I guess I could create a custom request to pass to the master status page which would pretty much do everything that the "printer friendly" mode is doing, but that seems like a lot of work when I'm so close to using something that is built in.
Am I not seeing some simple other way of doing it or perhaps asking too much? Any suggestions?
Shane.

Hi,
I think you have to call the FM GET_PRINT_PARAMETERS and pass NO_DIALOG = 'X'.
Something like:
  CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
      no_dialog      = 'X'
    IMPORTING
      out_parameters = ls_params
      valid          = lv_valid
    EXCEPTIONS
      OTHERS         = 1.
  NEW-PAGE PRINT ON PARAMETERS ls_params NO DIALOG.
* Display Table
  lr_table->display( ).
add: Spool numbers can be found in TSP01 or in system field SY-SPONO available in the submitting program...
Hope it helps,
Kr,
m.
Edited by: Manu D'Haeyer on Sep 28, 2011 10:02 AM

Similar Messages

  • Prevent "Save As" dialog box from popping up when signing a form

    Is there a way to prevent the "Save As" dialog box from popping up when clicking on a Signature Field?  I have a form with multiple signature fields and I would like to disable this action from happening.

    Hi rus-tee,
    That's interesting--what are you using to convert your file to PDF? Are you using Word? Or are you using the Adobe PDF Pack online service. Please describe your process for converting to PDF, and we'll get to the bottom of this!
    Best,
    Sara

  • Compare PDF: How to suppress compare dialog box programmatically...

    Hi,
    We are using Acrobat 8.0. Using Visual Basic, we are opening two PDF files in Acrobat 8.0 professional.We are comparing those two documents using MenuitemExecute(DIGSIG:CompareDocuments ) command and generating the side by side comparison file programatically.
    During this process after executing the command "MenuitemExecute(DIGSIG:CompareDocuments )" adobe is displaying "Compare Documents" dialog box where the user need to click OK on it in order to continue with the comparison.
    My requirement is to suppress the dialog box and automate the process. Our application is developed in Visual basic.
    Could you please let me know how to suppress the dialog box using Visual basic. Is it possible using VB or any alternatives for this. Because we need to compare many PDF documents so clicking OK every time requires user intervention.
    Thanks for your help in advance.

    Acrobat Scripting Forum http://www.adobeforums.com/webx?13@@.3bbedaa6
    Acrobat SDK Developer Forum http://www.adobeforums.com/webx/.eed56a0/

  • Printing ALV report by suppressing print dialog box

    Hi,
      I want to print a alv report by passing value in IS_PRINT export parameter which is working prefectly. But I want to suppress the dialog box which is appearing while printing and printing should go to spool directly is it possible.

    Hi,
    You could try something like:
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          no_dialog      = 'X'
        IMPORTING
          out_parameters = ls_params
          valid          = lv_valid
        EXCEPTIONS
          OTHERS         = 1.
      NEW-PAGE PRINT ON PARAMETERS ls_params NO DIALOG.
    * Display Table
      lr_table->display( ).
    hope it helps,
    Kr,
    m.

  • Print Dialog Box from Report

    Can we open a Print dialog box ( as the one which opens from File->Print in MS Word document) which list all the configured Printers from an Oracle Report (9i/10G) deployed in web environment running on OAS.
    Thanks in Advance.

    Hi,
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname                 = l_c_form
        VARIANT                  = ' '
        DIRECT_CALL              = ' '
         IMPORTING
           fm_name                  = l_f_fname
         EXCEPTIONS
           no_form                  = 1
           no_function_module       = 2
           OTHERS                   = 3
    data :l_t_out TYPE ssfcompop,
            l_t_control LIKE ssfctrlop.
    Here pass the Selection screen printer name to the below variable*
    l_t_out-tddest    = p_print.
        IF sy-subrc = 0.
          CALL FUNCTION l_f_fname
          EXPORTING
                archive_index =  toa_dara
         ARCHIVE_INDEX_TAB =   TSFDARA
          archive_parameters =  arc_params
              control_parameters         = l_t_control
              output_options             = l_t_out
              user_settings              = space         "This should be passed as space then only it works
              p_langu                    = p_langu
            TABLES
              g_t_item               = g_t_final
       EXCEPTIONS
         formatting_error           = 1
         internal_error             = 2
         send_error                 = 3
         user_canceled              = 4
         OTHERS                     = 5.
    Hope it helps!!
    Rgds,
    Pavan

  • Suppressing Print Dialog box

    Hi Experts,
    We have a requirement where in we want the following:
    When Print Button / Option in web templates, is clicked, report gets printed in PORTRAIT mode, without showing the Print dialog box.
    Please let us know how could this be achieved.
    Thanks,
    Shantanu.

    In the Print Button option of your web template, unflag the "Show Export Dialog" in the "Command" sub menu, and select the print options (Portrait and so on ...)
    If you want to do so for all the queries, change the 0ANALYSIS_PATTERN, or the ZANALYSIS_PATTERN you've maybe created.

  • How to access Print Dialog boxe's "Pages" property

    Hi,
    I am using the following line to populate the Print dialog box.
    xfa.host.print(1, "0", (xfa.host.numPages-1).toString(), 0, 1, 0, 0, 0)
    Is there any way that I can access Pages option using JavaScript with Adobe LiveCycle Designer 8.0 where I can show the page range to print?
    I want to print 3 copies of 1st Page and then the one copy of full PDF. So in the Pages option of Print dialog box I want to display 1,1,1,1-9. Is there any way to accomplish this programmatically?
    Or is there any better way to print 3 copies of 1st page and then 1 copy of whole pdf?
    Thanks.
    Niketa Parekh

    Hi,
    I am using the following line to populate the Print dialog box.
    xfa.host.print(1, "0", (xfa.host.numPages-1).toString(), 0, 1, 0, 0, 0)
    Is there any way that I can access Pages option using JavaScript with Adobe LiveCycle Designer 8.0 where I can show the page range to print?
    I want to print 3 copies of 1st Page and then the one copy of full PDF. So in the Pages option of Print dialog box I want to display 1,1,1,1-9. Is there any way to accomplish this programmatically?
    Or is there any better way to print 3 copies of 1st page and then 1 copy of whole pdf?
    Thanks.
    Niketa Parekh

  • How to set print dialog box to sync with applications

    Dear all
    I am using different applications, such as photoshop, lightroom, etc. All these applications have their propper print dialog box with enhanced settings.
    BUT
    after hitting the print button, my computer takes me always to the mac print dialog box, where again I can set different things: I can set paper quality, paper format, the colors...
    to me it seems that the settings I have chosen in the application print dialog box are getting erased by this second set of (OS X) print-settings.
    WHY DO I NEED TO GO THROUGH TWO PRINT DIALOG BOXES?
    Can I omit the OS X print dialog?
    Or am I missing something?
    many thanks for your help,
    Hynek

    Thank you for this reply.
    I will work around it with presets.
    but just to understand this: *which dialog box is the one setting the printer* (when for example using photoshop)? is it the first dialog box, i.e. photoshop print dialog box - or is it the osX print dialog box?
    if it is the second, I can skip the photoshop-one... ?
    or do I need to experiment with a combination of both?
    greetings,
    Hynek
    p.s. I know, it is a rather late reply. But we became parents 7 months ago, and time at the moment just flies by...

  • How do I prevent the dialog box from popping up every time I click Clear Private Data?

    In v3.6 (and it looks like in v4.0 too), every time one clicks the Clear Private Data Now (using a toolbar button), a dialog box pops up to confirm that I indeed want to clear data and which data. Why?!!!
    Why can this be set like it was in previous versions where a person sets which data they want cleared and be done with it? It's annoying. As such, I've used a v3.0.## since this annoying pop-up began in v3.5 or v3.6 or whenever it was.
    And please don't ask, if I have it clear on close, why I want clear it during a browsing session. Just know that I do. And the fact that you have for a long time had the feature to clear during a session shows that you or someone thought it good to have this feature--not just when the browser closes.
    I'd like to move to the current version, but this is so annoying. I'd move to Chrome, but for a few reasons, I'd prefer to stay with Firefox. For the love of gawd, can you please fix this?

    *Sanitisminau: https://addons.mozilla.org/firefox/addon/5364/

  • How to call a dialog box from a frame

    I have an application with menu driven Frame. on clicking one of the options i have to open a dialog box. how can this done?
    any help is appreciated.
    thanks
    partha

    Just create the dialog resource in the resource editor, then create a class for it in class wizard. Next, include the header for that class in your view class, then install a menu event handler in the view class for the menu item you want to launch the dialog from. In that event handler create a object of the dialog class and call .DoModal() something like:
    CMyDialog dlg;
    dlg.DoModal();
    That's pretty much it.
    Best Regards,
    Chris Matthews
    National Instruments

  • How to restore Print Dialog Box file in Leopard?

    Does anybody know the location of the Print Dialog file in Leopard 10.5.3? Mine is gone corrupted!
    Many thanks!

    It sounds like you'll need to do a reinstall of the system software,

  • How do I stop the dialog box from popping up asking me Qs about updates when I start Firefox?

    I recall electing to have Firefox ask me at startup about updates and I would like to change that and just open a browser window whenever I start Firefox.

    *Sanitisminau: https://addons.mozilla.org/firefox/addon/5364/

  • How to not print a page of a report under a condition

    Hi,
    I need to build a report with a specific layoutdepending on a user paramater.
    Ex:
    If parameter value is 1, then display the layout of the first page of the report
    If parameter value is p_layout2, then display the layout of the second page of the report
    If parameter value is p_layout3, then display the layout of the third page of the report
    If parameter value is p_layout4, then display the layout of the fourth page of the report
    So I built a report, putting on page 1 the first layout, page 2 the second etc.
    I put each layout into a frame, with FormatTrigger as of: IF :paramater IS 'p_layoutx' THEN TRUE ELSE FALSE.
    The output prints only the frame needed (the one attached to the value passed by the parameter) BUT prints blank pages for all others (the 3 remaining ones).
    So, how would I do to make the report NOT to print these blank pages, having only one page printing, the one that matches the condition?
    Thank you in advance.

    I found a way to achieve my goal: Instead of creating a frame with formattrigger for each of my layouts and inserting in it all my objects (text fields and graphics), I don't create any frame, put all my objects on the desired pages and put the formattrigger conditions on these objects with vertical elasticity for all of them. When not the condition is not met, then all objects are shrinked. It is weird that the behavior is not the same with a frame (the frame with vertical elasticity should "shrink" itself; or maybe I missed something).

  • How can I stop the X509Anchors password box from popping up?

    I was messing around with some certificates trying to get Office Communicator to work on my Mac here at work.
    Ever since then the keychain dialog box continually pops up asking for my X509Anchors password. I know the password, my problem is that this dialog box continually pops up. CalendarAgent is the main app that keeps trying to access it, though others do occasionally as well.
    These are the steps I used to access the X509Anchors keychain and change certs:
    http://www.aikidokatech.com/?p=42
    How can I stop this dialog box from popping up asking for my password every 2 minutes?
    I'm currently on OS 10.8.2

    That entry in your keychain may be damaged. In the /Applications/Utilities/ folder, launch Keychain Access. At the left, the upper item selected should be login, and the lower on Passwords. At the right, locate (if it's obviously named), the item for X509Anchors and remove it. Close Keychain Access. Then next time you visit the site this is for, it will ask for your login information as if it were your first visit. Enter your info and a new keychain link will be created.

  • Suppressing smartforms Print dialog box

    Hi,
      I want to suppress Print Dialog Box in smartform and directly go to print preview. I have set the CONTROL_PARAMETERS ,NO_DIALOG to 'X' and PREVIEW 'X' but still print dialog box is not suppressed. i even set OUTPUT_OPTIONS-TDDEST but it disappear and each time it display the print dialog with output device(TDDEST) field empty.
    Thanks in advance.

    Hi,
    Chek this sample program in 4.7:SF_EXAMPLE_03
      control-no_dialog = 'X'.
      control-preview   = 'X'.
      control-no_open   = 'X'.
      control-no_close  = 'X'.
      call function 'SSF_OPEN'
        exporting
    *     ARCHIVE_PARAMETERS       =
    *     USER_SETTINGS            = 'X'
    *     MAIL_SENDER              =
    *     MAIL_RECIPIENT           =
    *     MAIL_APPL_OBJ            =
    *     OUTPUT_OPTIONS           =
          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.
    *   error handling
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        exit.
      endif.
    *   now call the generated function module
        call function fm_name
             exporting
    *                   archive_index        =
    *                   archive_parameters   =
                        control_parameters   = control
    *                   mail_appl_obj        =
    *                   mail_recipient       =
    *                   mail_sender          =
    *                   output_options       =
    *                   user_settings        = 'X'
                        customer          = customer
                        bookings             = bookings
                        connections          = connections
    *        importing  document_output_info =
    *                   job_output_info      =
    *                   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.
      endloop.
      call function 'SSF_CLOSE'
    *   IMPORTING
    *     JOB_OUTPUT_INFO        =
        exceptions
          formatting_error       = 1
          internal_error         = 2
          send_error             = 3
          others                 = 4.
      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.
    * analyse internal error table of Smart Forms
      call function 'SSF_READ_ERRORS'
           importing
                errortab = errtab.
      if not errtab is initial.
    *   add your handling
      endif.
    I hope this will work.
    Regards,
    Anjali

Maybe you are looking for

  • Object reference not set to an instance of an object on clicking BI Tab

    Hi, I have installed Oracle BI Publisher Desktop 11.1.1.6.0 for 32 bit Office on Windows XP, Microsoft Word 10. However, after successful installation, when I open word and click on BI Publisher Tab , it throws error "Object reference not set to an i

  • Need a new display to repair my iBook G4

    I´m new here and from Germany... Where can I order / buy here an iBook G4 Display 14 inch   :-) Does anybody has an Webshop adress for me?

  • PP DataSource 2LIS_04_P_ARBPL - Incorrect extraction of latest scheduled start dates (SSAVD)

    Hi experts, we use the SAP Business Content Standard DataSource 2LIS_04_P_ARBPL "Work Center View PP" and need the latest scheduled start date each production order operation. In the production order operation overview (t/code CO03) on the ERP-side w

  • SQL Server 2000 - Windows Auth

    We have a new install of MX 7.01 and are getting the following message creating a CF datasource to SQL SRV 2000 using Windows Authentication. We get the following error: Connection verification failed for data source: AccessRequest java.sql.SQLExcept

  • Creating a "welcome page" iView like "Tab Control"

    Hi, Does anyone know the steps i would need to go through to create a similar iview to the "content provided by sap" iview, "Tab Control" which can be found in : content provided by sap->admin interfaces->admin iview templates->tab control. Basically