Opening print dialog box with "Selection" printing enabled

Hi all,
I have a JTable in which I wan to print only selected rows. When I open the Print dialog box using printDialog() method of PrinterJob, the dialog opens with "Selection" option disabled.
How can I enable this option ?
How can I print my selection using the standard Print Dialog ?

This I know.
Let me refrase my question:
I have a table with selected cells (Rows Cols
whatever ...) I wish to open the print dialog box
with Selection radio button enabled, such that when I
will check it and click print, the selected table
cell get printed.This I had understood.
Let me refrase my reply:
If you simply print a new table containing the selected data
then you don't need to have the Selection radio button enabled
in the print dialog box.

Similar Messages

  • Using ExcelExport without opening the dialog box to select all the channels in portal by default

    Hi,
        I need to export all the data in the Data portal to an Excel file without opening the Dialog for channels selection. In the ExcelExport command, it asks for a Config (*.stp) file as one of the parameters. Is there need to create a new stp file for selecting all channels or can the same file (Example_ASC.stp ) be reused ? If so, do I need to change any content in the system stp file ?
    Thanks
    Venkatesh Murthy

    http://forums.ni.com/ni/board/message?board.id=60&message.id=8565&query.id=128811#M8565

  • An open-file dialog box with image preview

    Hi Francois,
    I am trying your GetImageFileName and it works great.
    When using the filechooser in webutil, I can input abc* and press the
    open button and it will help me to filter out the files.
    But there is no such a function in GetImageFileName. Can you tell me how
    can I modify the java so that the filter function exist.
    Many thanks.
    Ivan

    JFileChooser.showOpenDialog

  • I've developed the problem that when I click on something I get a dialog box with a mess of stuff such as: Back,re;oad page ,Open in dashboard ,print page, etc. It's quite annoying!

    I have a problem that when I click on something I get a dialog box with Back,Reload page, Open in Dashboard,View Source Save page as ETC. I don't get the normal or expected respose to a simple "click". Another problem. For some reason the back and forth arrows it the tool bar of Safari have shifted from the upper left hand cornor to the uuuer rihht hand cornor.

    Something is seriously wrong then.  Did you move it?  There are several Library folders.  One of them should be inside your HOME folder.
    If WZZZ suggestion does not work, re-install your OS by using Mac OS X 10.6.8 Update Combo.  When done, repair permissions and restart your computer.

  • How to print a dialog box with all its components ?

    Hi !
    I've written an application.It has a dialog box [JDialog] containing following components:
    1) 2 JLabels.
    1) A JTextField.
    3) A JTable with some values.
    4) A JProgressBar.
    5) A JButton.
    6) An animated gif image.
    I want to print the dialog box with all its components exactly as the are [ Except the button & animated gif ].
    Would anybody please help me?
    My Operating System: Windows XP

    The article over at http://java.sun.com/developer/technicalArticles/Printing/Java2DPrinting/ has some helpful information on printing Swing components.
    It suggests creating a subclass of the JComponent that you want to print, and have it implement Printable interface.
    So, something like (note, uncompiled / untested code alert) :
    import java.awt.Frame;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.HeadlessException;
    import java.awt.print.PageFormat;
    import java.awt.print.Printable;
    import javax.swing.JDialog;
    public class PrintableDialog extends JDialog implements Printable {
          * Or whichever constructor you need...
         public PrintableDialog(Frame owner, String title, boolean modal) throws HeadlessException {
              super(owner, title, modal);
          * Implementation of the Printable interface.
           public int print(Graphics g, PageFormat pf, int pageIndex) {
              if (pageIndex != 0) return NO_SUCH_PAGE;
              Graphics2D g2 = (Graphics2D) g;
              g2.translate(pf.getImageableX(), pf.getImageableY());
              getContentPane().paint(g2);
              return PAGE_EXISTS;
    }Cheers,
    John

  • I get a dialog box with a copy of firefox is open and only one copy of firefox can be open at one time.

    I get a dialog box with the following: "a copy of firefox is open and only one copy of firefox can be opened at one time."
    I do not see where firefox is open.
    How do get back into firefox so that i can read the links that are in my emails?
    Thank you.

    Sometimes when FF is closing, not all of it shuts down properly.
    On Windows, start the '''Task Manager''' (Other systems may have
    different names and / or commands). Select '''Processes'''.
    Look down the list for Firefox. Right click and select '''End Task'''.
    If this problem keeps coming up, ask for more help.

  • When I try to add an RSS or Atom feed, I get a dialog box with Open or Save instead of adding the feed to NewsFox like it used to do.

    With Firefox 4.x, when I added a feed, it would open NewsFox in a new tab, and bring up a dialog box with info about that feed. I would click on "test this feed" and it would put all available items into NewsFox. Now, I get this dialog box with Open or Save. If I click on Open (declaring Firefox as the preferred app), then it opens the feed itself, it doesn't add it to NewsFox. I've tried going into Options and about:config but don't see anything to change that would fix this problem. I tried Search in Firefox Help but no relevant threads came up.

    Thanks Cor-El. I already have it set to "Use NewsFox." I'm stumped.

  • Open/Save Dialog Box Freeze

    Hello,
    Since updating to 10.4.7, the open/save dialog box freezes (beachball) after selecting a folder. Can anyone please point me in the right direction in solving my issue.
    I used the ComboPPC updater and then ran Cocktail to repair permissions, cron scripts, clear caches etc.
    I recently posted about the Finder freezing instead I should have mentioned that it was the Open/Save dialog box.
    Regards,
    David

    Hi,
    I am using model dialog box.
    on page header i have copy The code as given in this http://jqueryui.com/dialog/#modal-message link
    //  page header code
    <!doctype html> <html lang="en"><head>  <meta charset="utf-8" />  <title>jQuery UI Dialog - Modal message</title>  <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />  <script src="http://code.jquery.com/jquery-1.8.3.js"></script>  <script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>  <link rel="stylesheet" href="/resources/demos/style.css" />  <script>  $(function() {    $( "#dialog-message" ).dialog({      modal: true,      buttons: {        Ok: function() {          $( this ).dialog( "close" );        }      }    });  });  </script></head><body> <div id="dialog-message" title="Download complete">  <p>    <span class="ui-icon ui-icon-circle-check" style="float: left; margin: 0 7px 50px 0;"></span>    Your files have downloaded successfully into the My Downloads folder.  </p>  <p>    Currently using <b>36% of your storage space</b>.  </p></div> <p>Sed vel diam id libero <a href="http://example.com">rutrum convallis</a>. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.</p>  </body></html> My Button name is "DOWNLOAD" and on button actions "REDIRECT TO URL"
    on URL TARGET value is ==javascript: myFunction();
    where i have to write this code to bind my apex buttons with dialog box.
    apex.submit(myRequest);the steps i have written above, am doing right or not? Please help to place the code in apex with a right way.
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 28, 2013 12:53 AM

  • Why can't I preview indd files within InDesign's open file dialog box?

    Hello all,
    It is bad enough that Adobe doesn't add a plugin to preview any Adobe source file within Windows Explorer (well, except for PDF but I think Microsoft did that).
    But I find it ridiculous that I cannot preview .indd source files inside InDesign's Open File dialog box. It just states, "No preview available". I am sure this failure is tied into what Windows can preview... still, not a good excuse!
    This is also the same problem in both Illustrator and Photoshop.... neither Adobe program can preview their own file format!
    WHY?  OR How can I correct this?
    [UPDATE: SageThumbs | SourceForge.net seems to partially work on many Photoshop files (works reasonably well as long as I limit the file size to 70mb), it doesn't seem to work on Illustrator files (despite the claim), and it doesn't work on InDesign.]
    Still, the question remains, why isn't Adobe taking responsibility for this? 

    I think you all misunderstood.
    I am referring to opening files *within* the Adobe software. Example: Inside InDesign, I click File > Open... I see a list of my .indd files and to the right is a window with the words, "Select a file to preview."  If I select an .indd file, I think it is reasonable to assume that I will see a preview of the .indd file... but NO, I just see the message, "No preview available."
    In my opinion, this is a failing of Adobe!
    > Use bridge
    Why would I want to open a separate program just to see thumbnails? Sure Bridge has its uses when I want to look at a lot of different images but I am only talking about quickly seeing a thumbnail before I open a single file within either InDesign, Photoshop, or Illustrator.
    Q. If Bridge can render thumbnails, why on Earth would Adobe not place the preview code into the open file dialog of each program?

  • Filter in the Dialog box for selection

    I have report that contains a file selection dialog using the following code
    at selection-screen on value-request for p_file.
      perform f_get_file using cl_gui_frontend_services=>filetype_excel.
    form f_get_file using p_filetype type string.
      data: lt_filetable  type filetable,
            ls_file       type line of filetable,
            lv_filename   type string,
            lv_path       type string,
            lv_fullname   type string,
            lv_title      type string,
            lv_desktop    type string,
            lv_rc         type i,
            lv_action     type i.
      call method cl_gui_frontend_services=>get_desktop_directory
        changing
          desktop_directory    = lv_desktop
        exceptions
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          others               = 4.
      if sy-subrc <> 0.
        message e007(zspx) with 'Desktop not found'.
      endif.
    * Update View
      call method cl_gui_cfw=>update_view
        exceptions
          cntl_system_error = 1
          cntl_error        = 2
          others            = 3.
      lv_title = text-003.
      call method cl_gui_frontend_services=>file_open_dialog
        exporting
          window_title            = lv_title
          file_filter             = p_filetype
          initial_directory       = lv_desktop
        changing
          file_table              = lt_filetable
          rc                      = lv_rc
          user_action             = lv_action
        exceptions
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          others                  = 4.
      if sy-subrc = 0 and lv_action ne cl_gui_frontend_services=>action_cancel.
        read table lt_filetable into ls_file index 1.
        if sy-subrc = 0.
          p_file = ls_file-filename.
        else.
          clear p_file.
        endif.
      else.
        clear p_file.
      endif.
    endform.                    " f_get_file
    Currently while opening the dialog for file selection its showing the desktop directory. But user can select file from any other directory.
    My question is how to restrict this dialog box from which user can select only from desktop directory.
    PS : Please don't suggest  to validate the file after getting the file that its from desktop or not

    Hi,
    Like the bellow ?
    Replace following code
    if sy-subrc = 0 and lv_action ne cl_gui_frontend_services=>action_cancel.
        read table lt_filetable into ls_file index 1.
        if sy-subrc = 0.
          p_file = ls_file-filename.
        else.
          clear p_file.
        endif.
      else.
        clear p_file.
      endif.
    with the bellow
    IF sy-subrc = 0 AND lv_action NE cl_gui_frontend_services=>action_cancel.
        READ TABLE lt_filetable INTO ls_file INDEX 1.
        IF sy-subrc = 0.
          FIND FIRST OCCURRENCE OF lv_desktop IN ls_file-filename.
          IF sy-subrc = 0.
            p_file = ls_file-filename.
          ELSE.
            MESSAGE: 'Sorry! you can select file only from Desktop' TYPE 'I'.
            PERFORM f_get_file USING cl_gui_frontend_services=>filetype_excel.
          ENDIF.
        ELSE.
          CLEAR p_file.
        ENDIF.
      ELSE.
        CLEAR p_file.
      ENDIF.
    Regards,
    Faisal

  • Creating a dialog box with OK and Cancel buttons without OADialogPage

    Hi Experts,
    i want to create a dialog box for Delete Confirmation means after clicking on delete it should pop up a small dialog box with OK/Cancel buttons
    and need code for the same to handle the buttons.
    i have created with OADialogPage but its showing in a complete page but i want to show those buttons in a small box.
    Plz help.
    THANKS IN ADVANCE.
    Thanks
    Raja.

    Hi,
    I have not tried using javascript in destination URI as suggested by Mukul.
    I have tried the below code for opening a page as dialog box.
    You can try it for your requirement by creating a dialog page of your own, say XXDialogPage (with OK and Cancel button)
    StringBuffer l_buffer = new StringBuffer();
    l_buffer.append("javascript:mywin = openWindow(top, '");
    String url = "/OA_HTML/OA.jsp?page=/xx/oracle/apps/fnd/dialog/webui/OADialogPG";
    OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE );
    String strUrl = popupUrl.createURL(pageContext);
    l_buffer.append(strUrl.toString());
    l_buffer.append("', 'lovWindow', {width:500, height:500},false,'dialog',null);");
    pageContext.putJavaScriptFunction("SomeName",l_buffer.toString());
    In dialog page's controller, you can forward it to the page onc ethe user selects OK or Cancel.
    Pass the selected value back to the main page and further you can use it for deleting.
    Regards.

  • Open File Dialog Box (JS)

    I know that in order to open a file dialog box and get a file I have to use this code:
    myFile = File(File.openDialog("Import XML","XML Files: *.xml"))
    This is what I use to open XML files. Now I want to be able to open a folder based on the label of the textFrame. I can get the label and build the file path. How can I open a dialog box that already points to a specific folder? Also, how can I check with the script if there are files within the folder?
    Thanks,
    Justin M.

    >How can I open a dialog box that already points to a specific folder?
    var myFolder=Folder("/C/XYZ");
    var myMask="INDD:*.indd";
    var myFile=myFolder.openDlg("Select Files To Open", myMask, true);
    >Also, how can I check with the script if there are files within the folder?
    var myFolder = Folder.selectDialog("Please select path to files");
    if (myFolder!=null) {
    var fileList = myFolder.getFiles();
    alert("The selected folder contains " + fileList.length + " files.");

  • How to open a dialog box

    hi,
    I have a Button, after clicking that i should get a dialog box with 2 options 'yes' or 'No' .
    If i select 'yes' i need to insert data to db. o/w it redirects to the same page.
    I used the following code:-
    MessageToken[] tokens = { new MessageToken("ITEM", "Are You Sure You Want Book the Order")};
    OAException warningMessage = new OAException("AK", "FWK_TBX_T_EMP_UPDATE_CONFIRM", tokens);
    System.out.println(warningMessage);
    OADialogPage dialogPage = new OADialogPage(OAException.WARNING,
    warningMessage,
    null,
    String yes = pageContext.getMessage("ICX", "FWK_TBX_T_YES", null);
    String no = pageContext.getMessage("ICX", "FWK_TBX_T_NO", null);
    dialogPage.setOkButtonItemName("Yes");
    dialogPage.setOkButtonToPost(true);
    dialogPage.setNoButtonToPost(true);
    dialogPage.setPostToCallingPage(true);
    dialogPage.setOkButtonLabel(yes);
    dialogPage.setNoButtonLabel(no);
    java.util.Hashtable formParams = new java.util.Hashtable(1);
    formParams.put("empNum", "123");
    formParams.put("empName", "babu");
    dialogPage.setFormParameters(formParams);
    pageContext.redirectToDialogPage(dialogPage);
    am.invokeMethod("apply",parameters);
    but i am getting the error like:
    Error
    You have insufficient privileges for the current operation.
    can anybody help me to solve this problem.

    mouse listener on the tree, see if the click count is 2 and what node it clicked, open the dialog. MouseEvent can give you the click count and x/y coordinate, JTree can tell you what node is at that coordinate.

  • Windows Virtual PC (VMWindow.exe) does nothing but open a dialog box labeled user "Virtual Machines"

    Windows Virtual PC (VMWindow.exe)  does nothing but open a dialog box labeled <user> "Virtual Machines"
    Running Win 7 Pro 64 bit SP1 on an Asus Z97 Pro socket 1150 mobo, with Intel VT-d both Supported and Enabled in the BIOS.

    I am attempting to use Win Virtual PC as one would use VirtualBox or VMware Player.
    I thought I stated my case clearly.
    Are you proposing that Win Virtual PC functions ONLY  to run Win XP in a virtual machine environment? 
    Bill
    No, I just suspect you would like to install XP mode on virtual machine.
    Supported guest operating systems in Virtual PC:
    •Windows XP Service Pack 3 (SP3) Professional
    •Windows Vista Enterprise Service Pack 1 (SP1) and later versions
    •Windows Vista Ultimate Service Pack 1 (SP1) and later versions
    •Windows Vista Business Service Pack 1 (SP1) and later versions *
    • Windows 7 Professional *
    •Windows 7 Enterprise.
    •Windows 7 Ultimate
    • Windows 7 Professional (SP1)*
    •Windows 7 Enterprise (SP1)
    •Windows 7 Ultimate (SP1)
    *Note  Virtual applications are not supported on Windows Vista Business or on Windows 7 Professional or on Windows 7 Professional(SP1). All other features of Windows Virtual PC are supported on these two guest systems.
    In addition, refer to this guide to create virtual PC before using:
    How to Create a New Virtual Machine in Virtual PC
    http://support.microsoft.com/kb/826291
    Kate Li
    TechNet Community Support

  • Move an application "pop-up" (dialog box) with keyboard possible?

    Is there a way to move an application's pop up (dialog box) with a keyboard command/shortcut? I had a situation where I was not connected to my 2nd monitor and an application popup box was opening on that 2nd (*not connected*) monitor.
    I hate to say this; but on a PeeCee, a user can move a window via the keyboard. Is this possible on a Mac? Thanks!

    no, it's not possible on a mac. if the popup open on the other monitor connect the second monitor and move the popup with a mouse. it should open on the main monitor form now on.
    If you don't have a second monitor at all do the following.
    1) goto System Prefs - universal access - enable access for assistive devices.
    Paste the following into Script Editor and press run. This will move all offscreen windows currently open on the second monitor to the main screen.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 335px;
    color: #000000;
    background-color: #ADD8E6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    –– Example list of processes to ignore: {"xGestures"} or {"xGestures", "OtherApp", ...}
    property processesToIgnore : {}
    –– Get the size of the Display(s), only useful if there is one display
    –– otherwise it will grab the total size of both displays
    tell application "Finder"
    set _b to bounds of window of desktop
    set screen_width to item 3 of _b
    set screen_height to item 4 of _b
    end tell
    tell application "System Events"
    set allProcesses to application processes
    set _results to ""
    repeat with i from 1 to count allProcesses
    set doIt to 1
    repeat with z from 1 to count processesToIgnore
    if process i = process (item z of processesToIgnore) then
    set doIt to 0
    end if
    end repeat
    if doIt = 1 then
    tell process i
    repeat with x from 1 to (count windows)
    set winPos to position of window x
    set _x to item 1 of winPos
    set _y to item 2 of winPos
    if (_x < 0 or _y < 0 or _x > screen_width or _y > screen_height) then
    set position of window x to {0, 22}
    end if
    end repeat
    end tell
    end if
    end repeat
    end tell
    </pre>

Maybe you are looking for

  • Report output looking at the wrong server.

    Basically, I have split a customers application and data in two as the company is splitting in two. I have cloned the complete system (VMWare). However, one of the systems works fine (as it is unchanged) but the other still looks at the first one for

  • Prohibited characters when copying text from Adobe InDesign onto SAP

    Sap 4.7 Mac gui 7.10 rev3 Text is written on a MAC in Adobe InDesign Text is then Pasted into the outbound delivery through transaction VL02N When entering the text against the outbound delviery the characters get changed and the following error mess

  • Tracking User Login Activity

    Hi, Is there a simple Windows command I can use on a Windows server to find the latest login activity?  I'm looking for something simple that will show me the list of users who have logged in and when.  I originally tried the wmic command but it's re

  • Improving the performance of a Program

    How would we go about improving the performance of a Program which selects data from MSEG & MKPF?

  • Dataloaderror for cube loading  :Encountered Before All Dimensions Selcted

    Hi All In my out line(ASO) i have the 10 dimensions but i have to load the data for 8 dimension so for this in the rule file i created 2 extra field by using data source properties and wen iam mapping in daata lod properties for that fields i checked