How to open window print dialog box ?

Hello experts,
i want to print the form degin with data in forms' field.
for this i add a button in my tools bar. i want when to call the windows print dialog box.
please help
Thanks
yash

You did not mention what Forms version you are using or the platform on which it is running. Although that doesn't really matter much in this case, please include this information in the future.
To print a screenshot of the currently displayed (running) form, use the PRINT built-in. Refer to the Builder online help for details. Here is the example from the online help:
/*** Built-in: PRINT **
Example: Print the current window. */
BEGIN
Print;
END;

Similar Messages

  • Print a vi using windows' print dialog box

    Hi,
    I want to print the graph that I plot using Labview. I want to know how to get windows’ print Dialog box in labview. After getting the dialog box, do I need to use the Print report.vi. if yes, why and how? Please reply soon. Cannot move ahead because of this.

    The attached example demonstrates how to select the a printer using the Windows printer dialog.
    Also, the Print Report vi is used to print a reported created by the example.
    Scott Y
    NI
    Attachments:
    Select Printer.zip ‏96 KB

  • How to suppress the Print Dialog Box?

    Running an (ASP.NET /Crystal Reports 2008) application and using CrystalReportViewer control. Is there way to suppress the print dialog box when I click the print icon on the report tool bar?
    Edited by: juRamz on Aug 26, 2009 2:54 PM

    Hello,
    Sort of, CR needs the info. Only option is to create your own print button that has all the info filled in. It's a Windows Framework Common dialog box that CR calls so it's the OS that is prompting for the info.
    Using ReportClientDoc here's a possible solution, note that this too has a dialog box to select the printer:
    private void button1_Click(object sender, System.EventArgs e) // Print To Printer button
        System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();               
        PrintReportOptions rasPROpts = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptionsClass();
        CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions newOpts = new PrintOptionsClass();
        //CrystalDecisions.CrystalReports.Engine.PrintOptions newOpts = new PrintOptionsClass();
        pDoc.PrinterSettings.PrinterName = cboCurrentPrinters.Text;
        rasPROpts.PrinterName = cboCurrentPrinters.Text;
        rasPROpts.PaperSize = (CrPaperSizeEnum)
            pDoc.PrinterSettings.PaperSizes[cboCurrentPaperSizes.SelectedIndex].Kind;
        rasPROpts.PaperSource = (CrPaperSourceEnum)
            pDoc.PrinterSettings.PaperSources[cboDefaultPaperTrays.SelectedIndex].Kind;
        // new API added to allow changing printing options
        newOpts = new CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions();
        newOpts.DissociatePageSizeAndPrinterPaperSize = true;
        rptClientDoc.PrintOutputController.ModifyPageMargins(0, 0, 0, 0);
        rptClientDoc.PrintOutputController.PrintReport(rasPROpts);
        MessageBox.Show("Printing report.", "RAS", MessageBoxButtons.OK,MessageBoxIcon.Information );
    Thank you
    Don

  • How can I get print dialog box to show accurately?

    My print dialog box shows the image too large. If I go to print it prints correctly. I have tried updating drivers and reinstalling Illustrator. It has been happening since new update to CC.

    When viewing the print settings, in the Summary List, it shows the Paper width as 9 inches rather than 8.5.
    The Navigator window shows (in my test file) 4 plus signs across the top of an 8.5 by 11 inch page.
    The Print Preview in the Print Dialog shows  only 3.  My printer is set to standard 8.5 by 11 page size.
    Everything prints perfectly in CS6 when I bring the file in.

  • I would like Adobe to utilize the non-legacy save/open Windows 7 dialog box

    So I downloaded the trial for CS5.5 Master Suite and found that the open/save dialog box is the same thing from CS5.  This is a huge disappointment.
    Reason being is explained right here: http://www.sanneblad.com/2010/06/18/customizing-the-open-and-save-dialogs-in-adobe-cs5-for -windows/
    Common File Dialog is being used still by CS5 and CS5.5 which is outdated and legacy.
    [Starting with Windows Vista, the Open and Save As common dialog boxes have been superseded by the Common Item Dialog. We recommended that you use the Common Item Dialog API instead of these dialog boxes from the Common Dialog Box Library.]
    The Open dialog box lets the user specify the drive,  directory, and the name of a file or set of files to open. You create  and display an Open dialog box by initializing an OPENFILENAME structure and passing the structure to the GetOpenFileName function.
    The Save As dialog box lets the user specify the drive, directory, and name of a file to save. You create and display a Save As dialog box by initializing an OPENFILENAME structure and passing the structure to the GetSaveFileName function.
    Explorer-style Open and Save As dialog boxes provide user-interface features that are similar to the  Windows Explorer. However, the system continues to support old-style Open and Save As dialog boxes for applications that must be consistent with the old-style user interface.
    In addition to the difference in appearance, the Explorer-style and  old-style dialog boxes differ in their use of custom templates and hook  procedures for customizing the dialog boxes. However, the Explorer-style  and old-style dialog boxes have the same behavior for most basic  operations, such as specifying a file name filter, validating the user's  input, and getting the file name specified by the user. For more  information about the Explorer-style and old-style dialog boxes, see Open and Save As Dialog Box Customization.
    The following illustration shows a typical Explorer-style Open dialog box.
    http://msdn.microsoft.com/en-us/library/bb776913%28v=VS.85%29.aspx
    http://msdn.microsoft.com/en-us/library/ms646960%28VS.85%29.aspx
    It appears it would be a simple retooling of the code in order for this to work.  I truly hope that Windows 8 will force all software developers to utilize the new Common Item Dialog API.

    We've been trying to - but we still have to support XP and Vista.
    It appears it would be a simple retooling of the code in order for this to work.
    Um, no, not that simple.

  • I need help - Open windows and dialog boxes are ghosting and flashing.

    Hi All,
    My Mac Pro has recently come down with a "bug". When i open multiple windows they don't seem to cope well with each other and parts of the window behind will still show through the window in front in fragments. When downloading, the loading bar will also flicker and partly show the dialog box behind. The only thing that fixes the broken up windows/dialog boxes is to minimize then maximize again. At first i thought it was a memory issue but the problem occurs with no applications running except for finder. I have done several restarts, updated my software and have checked my hard drive in disk utility and everything appears okay?
    I can still operate the machine but it's getting a little annoying. Can anyone help me here?

    Hi nayefo,
    Try installing multitouch, and then see, while in windows, if you've successfully installed multitouch and multitouch mouse, you should have those drivers. Also check if you've installed trackpad and trackpad enabler.
    Cheers,
    Erik

  • ID CS5 (7.0.4) painfully slow opening print dialog box

    I've been having this issue for quite some time and finally getting around to finding out what's going on.
    I counted 38 seconds between the time I hit Control-P, and the time the print dialog box opens up. ID looks like it has hung up until it finally opens the print dialog box.
    Edit: meant to say that my documents are all very simple text-based pages with a simple letterhead graphic file embedded, 5-6 pages usually.
    Any suggestions on how to fix this, such a lot of wasted time waiting.
    Thanks!
    System: Windows 7, 8 GB Ram
    ID CS5 7.0.4

    That would be MY first step. It takes no real time and will eliminate it as a possibility. Next thing I would do is trash prefs: see Replace Your Preferences
    If neither of those works, I'm not sure what I would do next...  Perhaps have a look at what else is running that could be slowing things down.

  • Print Dialog Box won't Open

    My husband has an Intel Mac Mini that has issues. He can't open the print dialog box from any application--Mail, Firefox, Quickbooks, Word, etc. He can't print anything at all because the dialog box won't open when selecting <file> and <print> or clicking the print icon if there is one in that application. I deleted the printers and reinstalled the drivers...nothing. I upgraded from OS 10.7 to 10.8...again nothing. I zapped the pram...still nothing. I've been using Macs for 15 years and this issue has got me stumped. Any suggestions?

    I was unable to find the SavedData file.  I am running Windows 7 and there seems to be two files there /Roaming/Adobe/InDesign and /Roaming/Adobe/AdobeInDesing5.5 and neither one has a clear file name "InDesign SavedData" for me to remove.  I think I found the "InDesign Debaults" under the /Roaming/Adobe/InDesign/version7.5/en_US/InDesignDefaults.  Is that one it?

  • 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.

  • Using the print dialog box of Windows

    Hallo,
    how can I use the Windows printing dialog box for selecting a printer ?
    (I use LabWindows 5.0.1)
    Regards HGalle

    Our printing functions (PrintCtrl, PrintPanel, etc.) will bring up the print dialog if you select to show it in the function call. If you weren't using our print function, you can bring up the Windows print dialog box with the Windows SDK function PrintDlg. Consult SDK documentation for help with this function.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • Opening a File Dialog Box

    Hi,
    could somebody help me with how to open a file dialog box.
    I have 1 class which has a window with the relevant widgets on it, I want to be able to click a button on the form and pop up a file chooser form then select a file or type in a new filename and then use the selected filename path in the original form to write data out to the chosen file.
    i understand that i need to use JFileChooser and it will need to be in a new class (like a dialog box would be).
    So basically what i have is 2 classes (the main app and a class called FileOpen.class) so how would i display the fileopen class with the JFileChooser component in it and return what ever is chosen into a string.
    e.g.
    String fileName = <what would go here?>
    kind regards

    thats the example filechooser i have working
    yet when i try and implement it in my program i just get countless exception errors, im not sure if its because my program extends Jframe and not JPanel
    here is my code:-
    package as4;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.util.*;
    import javax.swing.filechooser.*;
    import java.io.*;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2003</p>
    * <p>Company: </p>
    * @author unascribed
    * @version 1.0
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2003</p>
    * <p>Company: </p>
    * @author unascribed
    * @version 1.0
    public class Readap extends JFrame {
    JPanel contentPane;
    GridLayout gridLayout1 = new GridLayout();
    JPanel jPanel3 = new JPanel();
    GridLayout gridLayout3 = new GridLayout();
    JPanel jPanel1 = new JPanel();
    JTextArea txtaStatus = new JTextArea();
    JLabel jLabel1 = new JLabel();
    JTextField txtCon = new JTextField();
    JButton btnConnect = new JButton();
    JTextField txtPort = new JTextField();
    JTextField txtUser = new JTextField();
    GridLayout gridLayout2 = new GridLayout();
    JLabel jLabel6 = new JLabel();
    JPasswordField ptxtPass = new JPasswordField();
    JLabel jLabel5 = new JLabel();
    JLabel jLabel4 = new JLabel();
    JLabel jLabel3 = new JLabel();
    JLabel jLabel2 = new JLabel();
    JTextField txtHost = new JTextField();
    JPanel jPanel2 = new JPanel();
    JPanel jPanel4 = new JPanel();
    GridLayout gridLayout4 = new GridLayout();
    GridLayout gridLayout5 = new GridLayout();
    JCheckBox chbOracle = new JCheckBox();
    JCheckBox chbOdbc = new JCheckBox();
    JScrollPane jScrollPane1 = new JScrollPane();
    JRadioButton rbtnComma = new JRadioButton();
    JRadioButton rbtnTab = new JRadioButton();
    JRadioButton rbtnSpace = new JRadioButton();
    ButtonGroup delChoice = new ButtonGroup();
    JPanel delPanel = new JPanel();
    JFileChooser fc;
    int dbChoice = 1;
    int conStatus = 0 ;
    String delimiter=",";
    String output="";
    JButton btnClear = new JButton();
    Dbfuncs mydb=new Dbfuncs();
    JPanel jPanel7 = new JPanel();
    JPanel jPanel6 = new JPanel();
    JPanel jPanel5 = new JPanel();
    FlowLayout flowLayout1 = new FlowLayout();
    JButton btnExecute = new JButton();
    JTextField txtQuery = new JTextField();
    JLabel jLabel7 = new JLabel();
    JButton btnOutput = new JButton();
    JLabel jLabel8 = new JLabel();
    GridLayout gridLayout7 = new GridLayout();
    BorderLayout borderLayout1 = new BorderLayout();
    JButton btnExit = new JButton();
    TitledBorder titledBorder1;
    TitledBorder titledBorder2;
    JCheckBox chbQuotes = new JCheckBox();
    JPanel jPanel8 = new JPanel();
    JCheckBox chbHeading = new JCheckBox();
    JPanel jPanel9 = new JPanel();
    ButtonGroup fileChoice = new ButtonGroup();
    JRadioButton rbtnOverwrite = new JRadioButton();
    JRadioButton rbtnAppend = new JRadioButton();
    //Construct the frame
    public Readap() {
    fc = new JFileChooser();
    fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    //Component initialization
    private void jbInit() throws Exception {
    //setIconImage(Toolkit.getDefaultToolkit().createImage(Readap.class.getResource("[Your Icon]")));
    contentPane = (JPanel) this.getContentPane();
    titledBorder1 = new TitledBorder("");
    titledBorder2 = new TitledBorder("");
    contentPane.setLayout(gridLayout1);
    this.setSize(new Dimension(448, 434));
    this.setTitle("Read Database");
    gridLayout1.setColumns(1);
    gridLayout1.setHgap(2);
    gridLayout1.setRows(2);
    gridLayout1.setVgap(2);
    jPanel3.setLayout(gridLayout3);
    gridLayout3.setColumns(2);
    gridLayout3.setHgap(5);
    gridLayout3.setVgap(5);
    txtaStatus.setFont(new java.awt.Font("Dialog", 0, 10));
    txtaStatus.setBorder(BorderFactory.createLoweredBevelBorder());
    txtaStatus.setEditable(false);
    txtaStatus.setText(">>Program Loaded...");
    txtaStatus.setLineWrap(true);
    txtaStatus.setRows(5);
    txtaStatus.setWrapStyleWord(true);
    jLabel1.setFont(new java.awt.Font("Dialog", 1, 12));
    jLabel1.setToolTipText("");
    jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
    jLabel1.setText("Please choose a database...");
    txtCon.setText("Access");
    btnConnect.setText("Connect");
    btnConnect.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    btnConnect_actionPerformed(e);
    txtPort.setEnabled(false);
    txtPort.setToolTipText("");
    txtPort.setText("1521");
    gridLayout2.setColumns(2);
    gridLayout2.setHgap(5);
    gridLayout2.setRows(6);
    gridLayout2.setVgap(2);
    jLabel6.setHorizontalAlignment(SwingConstants.RIGHT);
    jLabel6.setText("Password");
    jLabel5.setHorizontalAlignment(SwingConstants.RIGHT);
    jLabel5.setText("Username");
    jLabel4.setHorizontalAlignment(SwingConstants.RIGHT);
    jLabel4.setText("ODBC Bridge");
    jLabel3.setHorizontalAlignment(SwingConstants.RIGHT);
    jLabel3.setText("Port");
    jLabel2.setHorizontalAlignment(SwingConstants.RIGHT);
    jLabel2.setText("Host");
    txtHost.setEnabled(false);
    txtHost.setText("alfgar.coventry.ac.uk");
    jPanel2.setLayout(gridLayout2);
    contentPane.setMinimumSize(new Dimension(100, 110));
    jPanel4.setLayout(gridLayout4);
    gridLayout4.setColumns(1);
    gridLayout4.setHgap(2);
    gridLayout4.setRows(3);
    gridLayout4.setVgap(2);
    jPanel1.setLayout(gridLayout5);
    gridLayout5.setColumns(1);
    gridLayout5.setHgap(5);
    gridLayout5.setRows(2);
    gridLayout5.setVgap(5);
    rbtnComma.setText("Comma");
    rbtnComma.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    rbtnComma_actionPerformed(e);
    rbtnTab.setText("Tab");
    rbtnTab.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    rbtnTab_actionPerformed(e);
    rbtnSpace.setText("Space");
    rbtnSpace.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    rbtnSpace_actionPerformed(e);
    rbtnComma.setSelected(true);
    jLabel8.setFont(new java.awt.Font("Dialog", 1, 12));
    jLabel8.setHorizontalAlignment(SwingConstants.CENTER);
    jLabel8.setText("Choose Delimiter Type");
    jPanel7.setLayout(gridLayout7);
    gridLayout7.setColumns(1);
    gridLayout7.setRows(6);
    jPanel6.setMinimumSize(new Dimension(434, 45));
    jPanel6.setPreferredSize(new Dimension(434, 45));
    btnExit.setText("Exit");
    btnExit.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    btnExit_actionPerformed(e);
    jPanel5.setBorder(titledBorder2);
    jPanel5.setMinimumSize(new Dimension(434, 187));
    jPanel3.setBorder(titledBorder1);
    btnExecute.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    btnExecute_actionPerformed(e);
    chbQuotes.setText("Wrap Data In Quotes");
    chbHeading.setText("Export Column Headings");
    rbtnOverwrite.setSelected(true);
    rbtnOverwrite.setText("Overwrite File");
    rbtnAppend.setText("Append File");
    jPanel7.setBorder(BorderFactory.createLineBorder(Color.black));
    btnOutput.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    btnOutput_actionPerformed(e);
    delChoice.add(rbtnComma);
    delChoice.add(rbtnTab);
    delChoice.add(rbtnSpace);
    delPanel.add(rbtnComma);
    delPanel.add(rbtnTab);
    delPanel.add(rbtnSpace);
    chbOracle.setAlignmentX((float) 10.0);
    chbOracle.setHorizontalAlignment(SwingConstants.CENTER);
    chbOracle.setText("Oracle");
    chbOracle.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    chbOracle_actionPerformed(e);
    chbOdbc.setAlignmentX((float) 10.0);
    chbOdbc.setHorizontalAlignment(SwingConstants.CENTER);
    chbOdbc.setSelected(true);
    chbOdbc.setText("MS ODBC");
    chbOdbc.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    chbOdbc_actionPerformed(e);
    btnClear.setText("Clear Status");
    btnClear.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    btnClear_actionPerformed(e);
    jPanel6.setLayout(flowLayout1);
    jPanel5.setLayout(borderLayout1);
    btnExecute.setText("Execute");
    txtQuery.setMinimumSize(new Dimension(280, 21));
    txtQuery.setPreferredSize(new Dimension(285, 21));
    jLabel7.setFont(new java.awt.Font("Dialog", 1, 12));
    jLabel7.setText("Enter Query");
    btnOutput.setText("Output To File");
    jPanel3.add(jPanel1, null);
    jPanel1.add(jPanel4, null);
    jPanel4.add(jLabel1, null);
    jPanel4.add(chbOdbc, null);
    jPanel4.add(chbOracle, null);
    jPanel1.add(jScrollPane1, null);
    jScrollPane1.getViewport().add(txtaStatus, null);
    jPanel3.add(jPanel2, null);
    jPanel2.add(jLabel2, null);
    jPanel2.add(txtHost, null);
    jPanel2.add(jLabel3, null);
    jPanel2.add(txtPort, null);
    jPanel2.add(jLabel4, null);
    jPanel2.add(txtCon, null);
    jPanel2.add(jLabel5, null);
    jPanel2.add(txtUser, null);
    jPanel2.add(jLabel6, null);
    jPanel2.add(ptxtPass, null);
    jPanel2.add(btnClear, null);
    jPanel2.add(btnConnect, null);
    jPanel6.add(jLabel7, null);
    jPanel6.add(txtQuery, null);
    jPanel6.add(btnExecute, null);
    jPanel7.add(jLabel8, null);
    jPanel7.add(delPanel, null);
    jPanel7.add(jPanel8, null);
    jPanel8.add(chbQuotes, null);
    jPanel8.add(chbHeading, null);
    jPanel7.add(jPanel9, null);
    jPanel9.add(rbtnOverwrite, null);
    jPanel9.add(rbtnAppend, null);
    jPanel7.add(btnOutput, null);
    jPanel7.add(btnExit, null);
    jPanel5.add(jPanel6, BorderLayout.NORTH);
    jPanel5.add(jPanel7, BorderLayout.SOUTH);
    contentPane.add(jPanel3, null);
    contentPane.add(jPanel5, null);
    fileChoice.add(rbtnOverwrite);
    fileChoice.add(rbtnAppend);
    //Overridden so we can exit when window is closed
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    System.exit(0);
    public static void main (String arguments[])
    JFrame frame = new Readap();
    WindowListener l = new WindowAdapter()
         public void windowClosing(WindowEvent e)
              System.exit(0);
    frame.addWindowListener(l);
    frame.pack();
    frame.setVisible(true);
    void chbOracle_actionPerformed(ActionEvent e) {
    dbChoice=0;
    chbOdbc.setSelected(false);
    jLabel4.setText("Conn String");
    txtCon.setText("acal");
    txtCon.setEnabled(true);
    txtPort.setEnabled(true);
    txtHost.setEnabled(true);
    txtaStatus.append("\n>>Oracle Database Selected");
    void chbOdbc_actionPerformed(ActionEvent e) {
    dbChoice=1;
    chbOracle.setSelected(false);
    jLabel4.setText("ODBC Bridge");
    txtCon.setText("Access");
    txtPort.setEnabled(false);
    txtHost.setEnabled(false);
    txtaStatus.append("\n>>MS ODBC Database Selected");
    void btnConnect_actionPerformed(ActionEvent e) {
    if (conStatus==0)
    String url = new String();
    String driver = new String();
    if (dbChoice==0)
    driver="oracle.jdbc.driver.OracleDriver";
    url = "jdbc:oracle:thin:@"+txtHost.getText()+":"+txtPort.getText()+":"+txtCon.getText();
    txtaStatus.append("\n>>Connecting to Oracle Database @ "+url+" via driver:"+driver);
    else
    driver = "sun.jdbc.odbc.JdbcOdbcDriver";
    url = "jdbc:odbc:"+txtCon.getText();
    txtaStatus.append("\n>>Connecting to MS ODBC Database @ "+url+" via driver:"+driver);
    String dbStatus=mydb.openDb(url, driver, txtUser.getText(), ptxtPass.getText());
    txtaStatus.append("\n>>"+dbStatus);
    if (dbStatus=="Connection Successful")
    btnConnect.setText("Disconnect");
    conStatus=1;
    else
    mydb.dbClose();
    txtaStatus.append("\n>>Database Connection Terminated");
    btnConnect.setText("Connect");
    conStatus=0;
    void btnClear_actionPerformed(ActionEvent e) {
    txtaStatus.setText(" ");
    void rbtnComma_actionPerformed(ActionEvent e) {
    delimiter=",";
    void rbtnSpace_actionPerformed(ActionEvent e) {
    delimiter=" ";
    void btnExecute_actionPerformed(ActionEvent e) {
    txtaStatus.append(mydb.runQuery(txtQuery.getText() ) );
    void btnOutput_actionPerformed(ActionEvent e) {
    if (chbHeading.isSelected()==true)
    output=mydb.getAllColName(mydb.getColumnName())+"\n";
    else
    output="";
    Vector mydata=mydb.getResultData();
         int cnt=0;
         for (int index = 0; index < mydata.size(); index++)
              cnt+=1;
              if (cnt>1) output=output+delimiter;
    if (chbQuotes.isSelected()==true)
              output=output+"\""+mydata.elementAt(index)+"\"";
    else
    output=output+mydata.elementAt(index);
              if (cnt>=mydb.getNumCols())
                   output=output+"\n"; cnt=0;
    txtaStatus.append("\n>>"+output);
    int returnVal = fc.showOpenDialog(Readap.this);
    if (returnVal == JFileChooser.APPROVE_OPTION) {
    File file = fc.getSelectedFile();}
    void rbtnTab_actionPerformed(ActionEvent e) {
    delimiter="\t";
    void btnExit_actionPerformed(ActionEvent e) {
    System.exit(0);
    }

  • Print Dialog Box using jdk1.4

    Is there a way to bring up print dialog box in jdk1.4. I am using the new api( javax.print.* ) for printing. But dont know how to get an interface to the Dialog Box.
    thx
    K

    Our printing functions (PrintCtrl, PrintPanel, etc.) will bring up the print dialog if you select to show it in the function call. If you weren't using our print function, you can bring up the Windows print dialog box with the Windows SDK function PrintDlg. Consult SDK documentation for help with this function.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • Print VI at completion, with a print dialog box??

    I'm trying to print a VI at completion, and want the user to be able to choose which printer they want to print to. Is there a way I can open the print dialog box from Labview??? (I'm relatively inexperienced with the program) Thank you!

    Not that I know of directly from LabVIEW. You could write a C code
    wrapper DLL that calls COMMDLG.DLL (the windows common dialog API
    calls) to give you the print dialog, or could write write an MFC DLL
    that uses a CPrintDialog.
    If you use MFC, then you will be writing C++ and will have to make
    sure to watch out for "decorated" names by by using the extern "C"{ }
    declaration around your function and explicitly declaring your
    function in your .def file
    Douglas De Clue
    LabVIEW developer
    [email protected]
    "Liz F." wrote in message news:<[email protected]>...
    > I'm trying to print a VI at completion, and want the user to be able
    > to choose which printer they want to print to. Is there a way I can
    > open
    the print dialog box from Labview??? (I'm relatively
    > inexperienced with the program) Thank you!

  • Print Dialog Box for Addon is not showing in Terminal Server

    Dear All,
    I have created a addon for Automatic Sales Invoice printing that prints the crystal report directly to the printer bu opening a
    print dialog box for printer selection through SDK code.
    The Same addon works fine on the server with print dialog box being showing through SDK code.
    But while running on Terminal Server , print dialog box is not showing any printer though printers are redirected to that
    terminal server.I am not getting whether the problem is in my addon or in the terminal server printer settings.
    Please suggest as i need to know the reason urgently.
    Thanks
    Amit

    Hello Edward,
    Thanks for your reply .
    But the problem is that while running on normal server the print dialog box appear with the printer name in my addon for printer selection .
    But while using terminal server , the print dialog box is not getting any printer in the dialog box .That's the major concern for me
    is their any way to check that why the printers are not showing in print dialog box.
    Thanks ,
    Amit

  • 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

Maybe you are looking for

  • No music when i burn my slide show to dvd in idvd

    I selected the share to burn I slide show. This opened the idvd and transfered the info to it. I was able to burn a dvd, but the music did not transfer. I am not able to open and edit the drop box to add music. I dont know what to try. Thanks.

  • ABAP-HR GET-PERAS , SlOW PERFORMANCE

    Hi All, I am using PNPCE LDB and while fetching records it takes lot of time .As per ST05 , time is taken by standard select statements inside GET PERAS. Can any one advice , what should we do so that performance increases . Should I use normal selec

  • I annoct empty my cache even using tools and tried Norton, need it for farmville, running really slow for over a week.

    I ave tried to uninstall twice and the second time removed everything and started over completely, went right to Farmville with same results, then went to tools to see if it would empty and would not. Is there any way to manually empty the cache, was

  • MacBook Pro freezes when using 3D software

    Every time I use heavy 3D software (such as Archicad or World of Warcraft) with the graphic card NVIDIA GeForce 9600M GT, after few minutes the system freezes, audio loops and I need to forcibly shutdown the MacBook Pro. It's a very BAD issue. How ca

  • My iPad 3G 2nd edition, won't stay connected to Wifi

    It will connect usually when I first wake it up from sleep, stay connected for a few min (2 min to 20 min) then suddenly stop, once I lose it I can't ever get it to reconnect for more than a minute, sometimes it loses the connection all together and