How to list printers on the client machine to print the documents in ADF

Hi,
I have a requirement to print multiple documents stored on the server. I am trying to find out how to list the printers or get a default printer on the client machine and print the documents using ADF.
Thanks
Sukarna

I tried that solution. but I am not getting any printer list.
public void printDocument(ActionEvent actionEvent){
BindingContainer bindings =
BindingContext.getCurrent().getCurrentBindingsEntry();
PrintService[] service = PrintServiceLookup.lookupPrintServices(null, null);
if (service.length == 0){
JOptionPane.showMessageDialog(null, "No Printer Selected");
The printer Service is not returing any data.
Thanks
Sukarna
Edited by: 911653 on Oct 5, 2012 9:01 AM

Similar Messages

  • Stopping the player at the client machine independent of the server playing

    can anyone help me i need to allow the client to stop a player independent of the server transmitting the movie. can anyone help me plz!!
    here are rhe codes for the client and the client gui
    import javax.swing.*;
    import javax.swing.UIManager;
    import java.awt.*;
    import java.awt.event.*;
    public class ClientChoice
         public static void main(String args[])
              try
                             UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
                        catch(Exception e)
         }//main
         JFrame frame=new JFrame("--- New Line Movie ---");
         //Create the menu bar
         JMenuBar menuBar;
         JMenu menu;
         menuBar = new JMenuBar();
         //Build the file menu in the menu bar
         menu = new JMenu("File");
         menu.setMnemonic(KeyEvent.VK_F);
         menuBar.add(menu);
         JMenuItem menuItem= new JMenuItem("Exit",KeyEvent.VK_X);
         menuItem.addActionListener(new ActionListener()
              public void actionPerformed(ActionEvent e)
                        System.exit(0);
         menu.add(menuItem);
         //Build help menu in the menu bar.
         menu = new JMenu("Help");
         menu.setMnemonic(KeyEvent.VK_H);
         menuBar.add(menu);
         JMenuItem help_item=new JMenuItem("Help Topics",KeyEvent.VK_T);
         menu.add(help_item);
         JMenuItem about_item=new JMenuItem("About Us");
         menu.add(about_item);
         frame.setJMenuBar(menuBar);
              ImageIcon icon=new ImageIcon("images/potter.jpg","");
              JButton clickmovie=new JButton(icon);
              //final JLabel latest=new JLabel("<html><caption>Harry Potter</caption></html>");
              //clickmovie.add(latest);
              final JLabel welcome1=new JLabel("<html><font color=blue face=arial size=3><strong>New Line Movie</strong> gives you the possibility to view your favorite movies.<br>You can choose your category of movies below and click on any movie to get more information about it. <br>Latest News about new movies are also available. ENJOY!!!</font></html>");
              frame.getContentPane().add(welcome1,BorderLayout.EAST);
              final JLabel copyright=new JLabel("<html><font color=blue face=arial size=3><p align=center>&copy Copyright 2004</p></font></html>");
              //frame.getContentPane().add(copyright,BorderLayout.EAST);
              JPanel actionPanel=new JPanel();
              JPanel cartoonPanel=new JPanel();
              JPanel comedyPanel=new JPanel();
              JPanel fictionPanel=new JPanel();
              JPanel mainPanel=new JPanel();
              mainPanel.setLayout(new GridLayout(2,1,5,5));
              mainPanel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
              mainPanel.add(actionPanel);
              mainPanel.add(cartoonPanel);
              mainPanel.add(comedyPanel);
              mainPanel.add(fictionPanel);
              //mainPanel.add(copyright);
              actionPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder("Action"),BorderFactory.createEmptyBorder(5,5,5,5)));
              cartoonPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder("Cartoon"),BorderFactory.createEmptyBorder(5,5,5,5)));
              comedyPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder("Comedy"),BorderFactory.createEmptyBorder(5,5,5,5)));
              fictionPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder("Science Fiction"),BorderFactory.createEmptyBorder(5,5,5,5)));
              frame.getContentPane().add(mainPanel,BorderLayout.SOUTH);
              frame.getContentPane().add(clickmovie,BorderLayout.WEST);
              // Create combo box with action movies choices
              final JComboBox actionChoices;
              String[] actionmovie={"-Select a movie-","X-Men","Spiderman"};
              actionChoices=new JComboBox(actionmovie);
              actionChoices.setSelectedIndex(0);
              actionPanel.add(actionChoices);
              actionChoices.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        JComboBox cb = (JComboBox)e.getSource();
                        String act = (String)cb.getSelectedItem();
                        if(act=="X-Men")
                             JFrame action_xmen= new JFrame("--- New Line Movie: X-Men --- ");
                   action_xmen.setSize(400,350);
                   JPanel main=new JPanel();
                   main.setLayout(new GridLayout(2,1,5,5));
                             main.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
                             ImageIcon icon_men=new ImageIcon("images/x-men.jpg","");
                   JButton clickmovie_men=new JButton(icon_men);
                   final JLabel xmen_overview=new JLabel("<html><font color=blue face=arial size=3><b>Title:</b></font> <font color=black><strong>X-Men 2 </strong></font> <br><br><font color=blue face=arial size=3><b>Starring:</b> Hugh JACKMAN and Halle BARRY<br><br><b>Story:</b> The time has come for those who are different to stand united. <br><br>A military officer with a link to Wolverine's mysterious past conspires <br><br>to eradicate the mutant population for once and all. In order to defeat <br><br>this new menace, the X-men will be forced to join forces with Magneto. <br><br><b>Duration:</b> 1hr45min </font></html>");
                   final JLabel copyright=new JLabel("<html><font color=blue face=arial size=3><p align=center>&copy Copyright 2004</p></font></html>");
                             action_xmen.getContentPane().add(copyright,BorderLayout.SOUTH);
                   JButton view=new JButton("View");
                   view.setLayout(new BoxLayout(view,BoxLayout.X_AXIS));
                                            view.add(Box.createHorizontalGlue());
                             view.add(Box.createRigidArea(new Dimension(30,0)));
                   view.setMinimumSize(new Dimension(20,100));
                   view.setPreferredSize(new Dimension(20,100));
                   view.setMaximumSize(new Dimension(Short.MAX_VALUE,Short.MAX_VALUE));
                   view.setMnemonic('v');
                   view.addActionListener(new ActionListener()
                                  public void actionPerformed(ActionEvent e)
                                            String a="172.22.45.44/42050";
                                            String b="172.22.45.44/42052";
                                            String argv=a+b;
                                            Client cl= new Client(a,b);
                                            String[] c={a,b};
                                            cl.mainCl(c);
                                            //this is the code i added so that on clicking the view button
                                            //the client is automatically connected to the server and the player
                                            //plays on the current machine
                   main.add(clickmovie_men);
                             main.add(view);
                             //action_xmen.getContentPane().add(view,BorderLayout.SOUTH);
                   action_xmen.getContentPane().add(main,BorderLayout.WEST);
                   action_xmen.getContentPane().add(xmen_overview,BorderLayout.EAST);
                   action_xmen.show();
                        else if(act=="Spiderman")
                             JFrame action_spider= new JFrame("--- New Line Movie: Spiderman --- ");
                             action_spider.setSize(400,350);
                   action_spider.show();
              //Create combo box with cartoon movies choices
              JComboBox cartoonChoices=null;
              String[] cartoonmovie={"-Select a movie-","Le Roi Lion"};
              cartoonChoices=new JComboBox(cartoonmovie);
              cartoonChoices.setSelectedIndex(0);
              cartoonPanel.add(cartoonChoices);
              //cartoonChoices.addActionListener();
              //Create combo box with comedy movies choices
              JComboBox comedyChoices=null;
              String[] comedymovie={"-Select a movie-"};
              comedyChoices=new JComboBox(comedymovie);
              comedyChoices.setSelectedIndex(0);
              comedyPanel.add(comedyChoices);
              //comedyChoices.addActionListener();
              //Create combo box with fiction movies choices
              JComboBox fictionChoices=null;
              String[] fictionmovie={"-Select a movie-","ET"};
              fictionChoices=new JComboBox(fictionmovie);
              fictionChoices.setSelectedIndex(0);
              fictionPanel.add(fictionChoices);
              //fictionChoices.addActionListener();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.pack();
              frame.setVisible(true);
    //Implement player function here
    import java.io.*;
    import java.awt.*;
    import java.net.*;
    import java.awt.event.*;
    import java.util.Vector;
    import javax.media.*;
    import javax.media.rtp.*;
    import javax.media.rtp.event.*;
    import javax.media.rtp.rtcp.*;
    import javax.media.protocol.*;
    import javax.media.protocol.DataSource;
    import javax.media.format.AudioFormat;
    import javax.media.format.VideoFormat;
    import javax.media.Format;
    import javax.media.format.FormatChangeEvent;
    import javax.media.control.BufferControl;
    * Client to receive RTP transmission using the RTPConnector.
    public class Client implements ReceiveStreamListener, SessionListener,
         ControllerListener
    String sessions[] = null;
    RTPManager mgrs[] = null;
    Vector playerWindows = null;
    boolean dataReceived = false;
    Object dataSync = new Object();
    public Client(String sessions[]) {
         this.sessions = sessions;
    public Client(String a, String b)
         }//constructor
    protected boolean initialize() {
    try {
         mgrs = new RTPManager[sessions.length];
         playerWindows = new Vector();
         SessionLabel session;
         // Open the RTP sessions.
         for (int i = 0; i < sessions.length; i++) {
              // Parse the session addresses.
              try {
              session = new SessionLabel(sessions);
              } catch (IllegalArgumentException e) {
              System.err.println("Failed to parse the session address given: " + sessions[i]);
              return false;
              System.err.println(" - Open RTP session for: addr: " + session.addr + " port: " + session.port + " ttl: " + session.ttl);
              mgrs[i] = (RTPManager) RTPManager.newInstance();
              mgrs[i].addSessionListener(this);
              mgrs[i].addReceiveStreamListener(this);
              // Initialize the RTPManager with the RTPSocketAdapter
              mgrs[i].initialize(new RTPSocketAdapter(
                             InetAddress.getByName(session.addr),
                             session.port, session.ttl));
              // You can try out some other buffer size to see
              // if you can get better smoothness.
              BufferControl bc = (BufferControl)mgrs[i].getControl("javax.media.control.BufferControl");
              if (bc != null)
              bc.setBufferLength(350);
    } catch (Exception e){
    System.err.println("Cannot create the RTP Session: " + e.getMessage());
    return false;
         // Wait for data to arrive before moving on.
         long then = System.currentTimeMillis();
         long waitingPeriod = 30000; // wait for a maximum of 30 secs.
         try{
         synchronized (dataSync) {
              while (!dataReceived &&
                   System.currentTimeMillis() - then < waitingPeriod) {
              if (!dataReceived)
                   System.err.println(" - Waiting for RTP data to arrive...");
              dataSync.wait(1000);
         } catch (Exception e) {}
         if (!dataReceived) {
         System.err.println("No RTP data was received.");
         close();
         return false;
    return true;
    public boolean isDone() {
         return playerWindows.size() == 0;
    * Close the players and the session managers.
    protected void close() {
         for (int i = 0; i < playerWindows.size(); i++) {
         try {
              ((PlayerWindow)playerWindows.elementAt(i)).close();
         } catch (Exception e) {}
         playerWindows.removeAllElements();
         // close the RTP session.
         for (int i = 0; i < mgrs.length; i++) {
         if (mgrs[i] != null) {
    mgrs[i].removeTargets( "Closing session from AVReceive3");
    mgrs[i].dispose();
              mgrs[i] = null;
    PlayerWindow find(Player p) {
         for (int i = 0; i < playerWindows.size(); i++) {
         PlayerWindow pw = (PlayerWindow)playerWindows.elementAt(i);
         if (pw.player == p)
              return pw;
         return null;
    PlayerWindow find(ReceiveStream strm) {
         for (int i = 0; i < playerWindows.size(); i++) {
         PlayerWindow pw = (PlayerWindow)playerWindows.elementAt(i);
         if (pw.stream == strm)
              return pw;
         return null;
    * SessionListener.
    public synchronized void update(SessionEvent evt) {
         if (evt instanceof NewParticipantEvent) {
         Participant p = ((NewParticipantEvent)evt).getParticipant();
         System.err.println(" - A new participant had just joined: " + p.getCNAME());
    * ReceiveStreamListener
    public synchronized void update( ReceiveStreamEvent evt) {
         RTPManager mgr = (RTPManager)evt.getSource();
         Participant participant = evt.getParticipant();     // could be null.
         ReceiveStream stream = evt.getReceiveStream(); // could be null.
         if (evt instanceof RemotePayloadChangeEvent) {
         System.err.println(" - Received an RTP PayloadChangeEvent.");
         System.err.println("Sorry, cannot handle payload change.");
         System.exit(0);
         else if (evt instanceof NewReceiveStreamEvent) {
         try {
              stream = ((NewReceiveStreamEvent)evt).getReceiveStream();
              DataSource ds = stream.getDataSource();
              // Find out the formats.
              RTPControl ctl = (RTPControl)ds.getControl("javax.media.rtp.RTPControl");
              if (ctl != null){
              System.err.println(" - Recevied new RTP stream: " + ctl.getFormat());
              } else
              System.err.println(" - Recevied new RTP stream");
              if (participant == null)
              System.err.println(" The sender of this stream had yet to be identified.");
              else {
              System.err.println(" The stream comes from: " + participant.getCNAME());
              // create a player by passing datasource to the Media Manager
              Player p = javax.media.Manager.createPlayer(ds);
              if (p == null)
              return;
              p.addControllerListener(this);
              p.realize();
              PlayerWindow pw = new PlayerWindow(p, stream);
              playerWindows.addElement(pw);
              // Notify intialize() that a new stream had arrived.
              synchronized (dataSync) {
              dataReceived = true;
              dataSync.notifyAll();
         } catch (Exception e) {
              System.err.println("NewReceiveStreamEvent exception " + e.getMessage());
              return;
         else if (evt instanceof StreamMappedEvent) {
         if (stream != null && stream.getDataSource() != null) {
              DataSource ds = stream.getDataSource();
              // Find out the formats.
              RTPControl ctl = (RTPControl)ds.getControl("javax.media.rtp.RTPControl");
              System.err.println(" - The previously unidentified stream ");
              if (ctl != null)
              System.err.println(" " + ctl.getFormat());
              System.err.println(" had now been identified as sent by: " + participant.getCNAME());
         else if (evt instanceof ByeEvent) {
         System.err.println(" - Got \"bye\" from: " + participant.getCNAME());
         PlayerWindow pw = find(stream);
         if (pw != null) {
              pw.close();
              playerWindows.removeElement(pw);
    * ControllerListener for the Players.
    public synchronized void controllerUpdate(ControllerEvent ce) {
         Player p = (Player)ce.getSourceController();
         if (p == null)
         return;
         // Get this when the internal players are realized.
         if (ce instanceof RealizeCompleteEvent) {
         PlayerWindow pw = find(p);
         if (pw == null) {
              // Some strange happened.
              System.err.println("Internal error!");
              System.exit(-1);
         pw.initialize();
         pw.setVisible(true);
         p.start();
         if (ce instanceof ControllerErrorEvent) {
         p.removeControllerListener(this);
         PlayerWindow pw = find(p);
         if (pw != null) {
              pw.close();
              playerWindows.removeElement(pw);
              //p.close(); //i added to know if player close when click
         System.err.println("Client internal error: " + ce);
    * A utility class to parse the session addresses.
    class SessionLabel {
         public String addr = null;
         public int port;
         public int ttl = 1;
         SessionLabel(String session) throws IllegalArgumentException {
         int off;
         String portStr = null, ttlStr = null;
         if (session != null && session.length() > 0) {
              while (session.length() > 1 && session.charAt(0) == '/')
              session = session.substring(1);
              // Now see if there's a addr specified.
              off = session.indexOf('/');
              if (off == -1) {
              if (!session.equals(""))
                   addr = session;
              } else {
              addr = session.substring(0, off);
              session = session.substring(off + 1);
              // Now see if there's a port specified
              off = session.indexOf('/');
              if (off == -1) {
                   if (!session.equals(""))
                   portStr = session;
              } else {
                   portStr = session.substring(0, off);
                   session = session.substring(off + 1);
                   // Now see if there's a ttl specified
                   off = session.indexOf('/');
                   if (off == -1) {
                   if (!session.equals(""))
                        ttlStr = session;
                   } else {
                   ttlStr = session.substring(0, off);
         if (addr == null)
              throw new IllegalArgumentException();
         if (portStr != null) {
              try {
              Integer integer = Integer.valueOf(portStr);
              if (integer != null)
                   port = integer.intValue();
              } catch (Throwable t) {
              throw new IllegalArgumentException();
         } else
              throw new IllegalArgumentException();
         if (ttlStr != null) {
              try {
              Integer integer = Integer.valueOf(ttlStr);
              if (integer != null)
                   ttl = integer.intValue();
              } catch (Throwable t) {
              throw new IllegalArgumentException();
    * GUI classes for the Player.
    class PlayerWindow extends Frame {
         Player player;
         ReceiveStream stream;
         PlayerWindow(Player p, ReceiveStream strm) {
         player = p;
         stream = strm;
         public void initialize() {
         add(new PlayerPanel(player));
         public void close() {
         player.close();
         setVisible(false);
         dispose();
         public void addNotify() {
         super.addNotify();
         pack();
    * GUI classes for the Player.
    class PlayerPanel extends Panel {
         Component vc, cc;
         PlayerPanel(Player p) {
         setLayout(new BorderLayout());
         if ((vc = p.getVisualComponent()) != null)
              add("Center", vc);
         if ((cc = p.getControlPanelComponent()) != null)
              add("South", cc);
         public Dimension getPreferredSize() {
         int w = 0, h = 0;
         if (vc != null) {
              Dimension size = vc.getPreferredSize();
              w = size.width;
              h = size.height;
         if (cc != null) {
              Dimension size = cc.getPreferredSize();
              if (w == 0)
              w = size.width;
              h += size.height;
         if (w < 160)
              w = 160;
         return new Dimension(w, h);
    public static void mainCl(String argv[])
         if (argv.length == 0)
         prUsage();
         Client avReceive = new Client(argv);
         if (!avReceive.initialize()) {
         System.err.println("Failed to initialize the sessions.");
         System.exit(-1);
         // Check to see if Client is done.
         try {
         while (!avReceive.isDone())
              Thread.sleep(1000);
         } catch (Exception e) {}
         System.err.println("Exiting Client");
    static void prUsage() {
         System.err.println("Usage: Client <session> <session> ...");
         System.err.println(" <session>: <address>/<port>/<ttl>");
         System.exit(0);
    }// end of Client

    hi,
    i have try compile your source code...anyway, there is 28 errors..I m not sure where is the errors come from. Currently , i m working on the same project as you. Trying to play the media at client machine, but stil can't manage to do so. Can i have your email address? I want to consult you a bit about my project .Is it ok? Thanks =).

  • How to get the IP address of the Client machine???

    Hi All,
    I am trying to get the IP address of the Client machine and using the code
    SELECT SYS_CONTEXT('USERENV','IP_ADDRESS') FROM DUAL;
    but this query only return server ip address but i want Client machine IP .
    How can I get that. Please help.

    SowmyRaj wrote:
    Hi All,
    I am trying to get the IP address of the Client machine and using the code
    SELECT SYS_CONTEXT('USERENV','IP_ADDRESS') FROM DUAL;
    but this query only return server ip address but i want Client machine IP .
    How can I get that. Please help.Which client's IP addess?
    SYS_CONTEXT('USERENV','IP_ADDRESS') should give you the IP address of the machine from which the client is connected. So you are running sqlplus from Server?
    To check other session's information, you can check V$SESSION view.

  • Accessing print services in the client machine(browser)

    Query: We had migrated a forms-3 form to forms-6i. The forms-3 form used a userexit to call a related Pro*C functionality that helped finally to print the report file generated during the process into the client machine's printer.
    How do we take care of this functionality in forms-6i? That is, the user should be able to do the printing from the forms screen in the browser..
    Please help..

    Thank you for replying..
    We have earlier tried the web.show_document procedure to call the .html or .txt file....But in forms-3(back-end on a UNIX server with the Pro*Cs), an ascii file was created at the server side in the client's home directory, and this file was accessed and used from the front-end machine(a UNIX terminal or a QVTTerm like application on Windows), to be printed out onto the printer device configured on the client machine...As in your reply, through web.show_document also the printing can be finally done..But the user has to wait for the new browser window to get opened and show the content and then print it...These steps were not needed in forms-3, that is, on a click of the print-related-button, it did the job...So, in the same way, can something be done on the forms-6i form(use a printer-javabean or something else), to get the functionality???
    Please help..

  • IP address of the client machine ???

    I want to know how to get the IP address of the user who has logged in from a client machine through Oracle forms. Does anyone how to get it from Oracle forms.
    In fact i tried Sys_context (function) which returned the IP address of the client machine through SQL plus.
    Select SYS_CONTEXT('USERENV','IP_ADDRESS') From Dual;
    For testing sake, created a custom server side function using sys_context. From Oracle forms called the sever side custom function. During run time (from client machine), i got the IP address of the server (application server/DB server/forms server all in one NT box),not the IP address of the client machine.
    Any ideas, welcome.
    Thanks in advance
    Sai
    [email protected]
    null

    SowmyRaj wrote:
    Hi All,
    I am trying to get the IP address of the Client machine and using the code
    SELECT SYS_CONTEXT('USERENV','IP_ADDRESS') FROM DUAL;
    but this query only return server ip address but i want Client machine IP .
    How can I get that. Please help.Which client's IP addess?
    SYS_CONTEXT('USERENV','IP_ADDRESS') should give you the IP address of the machine from which the client is connected. So you are running sqlplus from Server?
    To check other session's information, you can check V$SESSION view.

  • EJB deployment/access from the Client Machine

    I want to deploy/access the EJB on the Oracle 8i server from the
    Client Machine. From the Oracle 8i server machine i am able to
    deploy and access the EJB
    When i am trying to deploy/access the EJB i am getting the
    following message
    javax.naming.CommunicationException: Unknown service : sess_iopp
    url
    Please tell me what to do ?
    Thanks in advance
    null

    Are you using JDeveloper? If yes then go to File|New->Snippets
    and select 'Example JServer EJB Client' to create an EJB client.
    : javax.naming.CommunicationException: Unknown service :
    sess_iopp
    It's sess_iiop not iopp ;-)
    Regards,
    Arun
    Manish Patel (guest) wrote:
    : I want to deploy/access the EJB on the Oracle 8i server from
    the
    : Client Machine. From the Oracle 8i server machine i am able to
    : deploy and access the EJB
    : When i am trying to deploy/access the EJB i am getting the
    : following message
    : javax.naming.CommunicationException: Unknown service :
    sess_iopp
    : url
    : Please tell me what to do ?
    : Thanks in advance
    null

  • Want to get the Client Machine name from Oracle Forms

    Hi,
    I want to get the Client machine name from the Oracle Forms.
    I have attached web_util.pll.
    I use user_name := webutil_clientinfo.get_host_name;
    but i am getting following error - WebUtil Error:WUC-015: Your form must contain the following Bean for this function to be available: oracle.forms.webutil.clientinfo.GetClientInfo.
    Can any one help me in this!
    Thanks & Regards,
    Avinash Bhamare.
    Pune.

    Hi,
    I have written the code on when-button-pressed trigger of a push button -
    DECLARE
         user_name VARCHAR2(50);
    BEGIN
    user_name := client_win_api_environment.get_computer_name;
    message('user_name is :'||user_name);
    message('user_name is :'||user_name);
    END;
    And on clicking on this button i am getting error -
    frm-40734:Internal Error:PL/SQL error occurred
    Can any one help in this asap please!
    Thanks & Regards,
    Avinash.

  • DI Server is Not Connected from the Client Machine

    Hi all,
    There was a problem to connect DI Server.But It runs on the Server Correctly.When we run on the Client Machine to connect the SAP DB, It throws an error: -111.
    Code :
            cmp = New SAPbobsCOM.Company
            cmp.Server = "Sap-Server"
            cmp.CompanyDB = "FAST"
            cmp.UserName = "manager"
            cmp.Password = "manager"
            cmp.language = SAPbobsCOM.BoSuppLangs.ln_English
            cmp.UseTrusted = True
            mretcode = cmp.Connect
            If mretcode <> 0 Then
                cmp.GetLastError(merrcode, merrmsg)
                MsgBox(merrmsg)
            Else
                MsgBox("SAP B1 - Data base Connected Successfully!")
            End If
    Thanks in Advance
    Regards,
    Suresh.G

    you are not using DI server to connect, your using DI API.  Check if your client machine has the DI API installed.  If not you can get from the installation cd or the lastest patch installed under packages/DI API folder.

  • How the client machine could to get the combo update from SUS?

    Hi everybody!
    How the client machine could to get the combo update from SUS? My SUS working for clients comp and showing the Mac OS X 10.6.5 Update - not Combo Update (Combo Update downloaded also and I can see it in Server Admin)! But I would like to install the Combo Update - is it possible? How I can get the Combo Update if it is not shown in the list?
    Thank you in advance!

    You can download the Combo manually from Apple.
    http://support.apple.com/kb/DL1324
    http://support.apple.com/downloads/DL1324/en_US/MacOSXUpdCombo10.6.5.dmg

  • How can I display the front panel of the dinamically loaded VI on the cliente computer, the VI dinamically loaded contains files, I want to see the files that the server machine has, in the client machine

    I can successfully view and control a VI remotly. However, the remote VI dinamically loads another VI, this VI loaded dinamically is a VI that allows open others VIs, I want to see the files that contains the server machine, in the client machine, but the front panel of the dinamic VI appears only on the server and not on the client, How can I display the fron panel with the files of the server machine of the dinamically loaded VI on the client computer?
    Attachments:
    micliente.llb ‏183 KB
    miservidor.llb ‏186 KB
    rdsubvis.llb ‏214 KB

    I down loaded your files but could use some instructions on what needs run.
    It seems that you are so close yet so far. You need to get the data on the server machine over to the client. I generally do this by doing a call by reference (on the client machine) of a VI that is served by the server. THe VI that executes on the server should pass the data you want to diplay via one of its output terminals. You can simply wire from this terminal (back on the client again) to an indicator of your choosing.
    Now theorectically, I do not think that there is anything that prevents use from getting the control refnum of the actual indicator (on the server) of the indicator that has the data, and read its "Value" using a property node. I have never tried this idea but it seems t
    hat all of the parts are there. You will need to know the name of the VI that holds the data as well as the indicator's name. You will also have to serve all VI's. This is not a good idea.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • HOW TO GET INFORMATION ABOUT THE CLIENT MACHINE AT DATABASE LEVEL

    HOW TO GET INFORMATION ABOUT THE CLIENT MACHINE AT DATABASE LEVEL USING 10g Database and 10g Application Server
    we have developed an application using oracle forms 10g with
    oracle database 10g and Application server 10g
    Application uses a single Oracle User name to connect to database
    where as at Application level there are different users (these are not database users)
    Now how can we get the information about the user/his machine etc. at database level. earlier in 6i/8i we use to get by using
    USERENV('TERMINAL')
    we had written a triggers on tables on Insert/Update where we used to update a database field Last user terminal with USERENV('TERMINAL')
    but not this information is comming to be the machine name of application server where as we wish this to be the machine name of Client. Any Way outs
    thanks
    Chaand Kackria

    hi, you can use the sys_context function, like this:
    select sys_context('userenv','current_user'),
         sys_context('userenv','os_user'),
         sys_context('userenv','host'),
         sys_context('userenv','ip_address'),
         sys_context('userenv','instance'),
         sys_context('userenv','sessionid'),
         sys_context('userenv','terminal')
    from dual;
    Is this what you 're looking for?

  • How to get file input stream from the client machine by JSF Fileupload API?

    Dear Friends,
    How to get the file input stream from the client machine by JSF HtmlFileupload or fileupload API. At present, if i execute the file upload code in the client machine, it is able to get the local path of the file and looking for the file in server machine. So i am getting FileNotFoundException.
    E.g., If a file is located at client machine at following location means "C:\Test\Test.txt",
    uploadClass.getFileuploadComponent().getFilename().toString() returns "C:\Test\Test.txt". But it is looking for that file in server and throwing FileNotFoundException.
    Please post your replies soon.
    Thanks,
    JP

    Depends on which version of JSF you're using. If JSF 1.2, I wouldn't even bother trying to hack this into JSF itself unless you can use something like Seam 2 or richfaces.
    http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_fileUpload.html
    http://docs.jboss.org/seam/2.2.1.CR3/reference/en-US/html/controls.html#d0e29259 (look for s:fileUpload)
    But if I were you, a simple non-jsf form with a servlet works best for taking file uploads.
    As for JSF 2.0, there are other ways of getting it done.
    http://balusc.blogspot.com/2009/12/uploading-files-with-jsf-20-and-servlet.html

  • How to capture the IP address of the client Machine.

    HI...
    I want to capture the ip address of the client machine and store it in a field.
    My client wants to capture the ip address so that he can easily trace out from
    which client system particular work is done.
    if there any pre defined function or syntax is there to get the IP address...
    with cheers
    sprity....

    Hi.....
    i have a attached the web_util.pll n web_util.olb and run the form...
    it is still staying web_util.clientinfo is not declared....
    i want to know where to attach the olb thru subclass...
    i tried in attaching the text item(ip_addr) property.After clicking the subclass it show the we_util.olb.
    but there is no value for in it for both object n property.
    i think if i get info on this then my work is done....
    anyone throw a light on my doubt...........
    with cheers
    sprity...

  • How to load a excel sheet on the client machine from jsp

    hai all,
    I want an excel sheet to be opened like "c:\excelsheet.xls" on the client machine from my JSP so that i can send the out put of my jsp to it.i will press a button on jsp and i want the query out put in the excel sheet. if it is already opened then it has to be closed and reopened with new data, the old data has to be lost.
    can any one help me out....
    Thanks for any help...
    regards,
    ravikiran

    Hai friend,
    you add mime type in web.xml
    for example,
    <mime-mapping>
    <extension>xls</extension>
    <mime-type>application/excel</mime-type>
    </mime-mapping>

  • How to Display Excel Report in Client machine  in Forms11g

    Hi All,
    we are running database in Linux server and separate Linux Application Server , But my question is how to display the data to Excel Report in the Client machine
    in Forms11g applications.
    Plesase suggest any method.
    Regards
    Venkatesulu Gunisetty

    You should use webutils.
    For proper answer, place ur request here in oracle Forms Thread,
    Forms

Maybe you are looking for

  • WS20000075: work item of 1st release step stays in status In process

    Hi All, I have activated and set up standard flow WS20000075 but the work item of 1st release (PO release strategy with 3 levels) step stays in status In process. The work item for the 2nd and 3rd release step are completed as expected. What could ca

  • My facebook not working

    please help my facebook app not working

  • Trying to enable flashback database on 11g Linux platform database

    Hello, SQL> ALTER DATABASE FLASHBACK ON; ALTER DATABASE FLASHBACK ON ERROR at line 1: ORA-38759: Database must be mounted by only one instance and not open Can any one help understand why I am getting this error while I have only one instance open? T

  • Change Computer name from previous ower's

    My computer still is named Matt's Computer from the previous owner. How do I change it?

  • Lost File Association

    This may be a Finder question, but I'm only having this issue with iPhoto. When I double-click on my jpg files they open in Preview. That's fine as I don't really want to load iPhoto each time I want to take a quick look at a jpg. However, when I CTR