Printing Database

I am trying to create a Phone Directory for my neighborhood. I have this information in a Numbers document.
I created a Pages document in the format I wanted for the directory using the "mail merge" for the fields from the Numbers document. However, I cannot get it to print more than 1 record per page. Does anyone know how to do this? Or if there is a better way, please let me know.
Numbers & Pages are '09 version
I sure would appreciate any help! Thanks!

Jerrold Green1 wrote:
mela,
That's the way mail merge works, one record per page. That doesn't mean that your spreadsheet can't have a table with more than one address per record or that there isn't another way. I believe that Yvan has written a script to merge more than one record, and that might be your best bet. You also have the option to create a Sheet in Number that you can print for your neighbors that has the list on it, formatted as you like.
I really wrote such a script.
In fact, it's really simple :
It take groups of records and store them in a single row of a dedicated table.
So, the application does its duty ignoring that it's merging x different records in a single page.
For the described problem, I would copy/paste the table from Numbers to Pages if and only if I need some features available in Pages but missing in Numbers.
Yvan KOENIG (VALLAURIS, France) mardi 7 septembre 2010 13:51:38

Similar Messages

  • Printing database records with page numbers

    Have an old database with name, address info and want to print an updated listing of all the records using AppleWorks 6.2.9 I inserted a footer in layout mode and then created a text field with page number in it. Went to browse mode and my 23 pages looked fine with page number at the bottom, as I wanted. But when printed, the page number appeared underneath every single record, as well as at the bottom of the page. Is this fixable?

    Hi TN,
    The printed version would suggest that the page number had been inserted into the Body part of the layout, whicle the screen version (assuming Page View has been checked in the Window menu) would suggest that the page number was correctly placed in the footer part.
    I suspect that either the DB file or AppleWorks preferences files have become corrupted (possibly both).
    I would start by rebuilding the Layout that is misbehaving, starting from a 'standard' layout.
    If that doesn't solve the problem, Quit AppleWorks, trash the preferences (see THIS User Tips Library post by Peggy for details), relaunch AppleWorks and try again.
    If the problem persists, try Saving a copy of the db as an AppleWorks 5 file, then close the original and open the AW 5 version into AppleWorks 6. (This conversion sometimes corrects internal problems with database files.)
    Regards,
    Barry

  • How to print database table records in graphical format?

    In ABAP Editor,I put select query on one database table and fetch few records .Now I want to show these records in BAR Graph / pie chart.Kindly let me know is it possible and how?
    Thanks in advance.
    Edited by: rushah on May 21, 2009 5:30 AM

    Hi Hadiman,
    Can you please elaborate more on it.
    Like my code is......
    SELECT * FROM trfcqout
      INTO CORRESPONDING FIELDS OF itab
      WHERE ( qstate = 'SYSFAIL' OR qstate = 'CPICERR' OR errmess <> '' )
    and ( QRFCDATUM >= date-low and QRFCDATUM <= date-high ).
        count = 0.
        if itab is not initial.
          SELECT * FROM trfcqout
          INTO CORRESPONDING FIELDS OF itab1
          WHERE qname = itab-qname AND errmess = ''.
            count = count + 1.
          ENDSELECT.
          itab-retrydate = sysdate.
          itab-retrytime = systime.
          itab-qtype = 'OUTBOUND'.
          itab-nentries = count - 1.
          append itab.
          MODIFY zqueue FROM itab.
        endif.
      ENDSELECT.
    Print details on Report
      write: / sy-vline no-gap,(7) 'QTYPE' COLOR 1, sy-vline no-gap,(23)
    'QNAME' COLOR 1,sy-vline no-gap,(14) 'QSTATE' COLOR 1, sy-vline no-gap,
    (54) 'Error' COLOR 1,sy-vline no-gap,(10) 'Number' COLOR 1.
      uline.
      LOOP AT itab.
        write: /   sy-vline no-gap,  (8)  itab-qtype no-gap,
                   sy-vline no-gap,  (24) itab-qname no-gap,
                   sy-vline no-gap,  (15) itab-qstate no-gap,
                   sy-vline no-gap,  (55) itab-errmess no-gap,
                   sy-vline no-gap,  (10) itab-nentries no-gap.
      ENDLOOP.
      uline.
      refresh itab.
    endform.                    "queuedata
    Now I want to print data in graphical form. how to do that?

  • Printing Database data

    Hi, i have a jsp page that attempts to connect to an oracle database and retriev data from it and print it out to the webpage concerned.
    My code runs, and the webpage loads up, but i do not retrive any data, well its not printing anyway. Here is my code....
    (I am using a Tomcat webserver, running on my own machine)
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE>Testing Database Access</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FDF5E6" TEXT="#000000" LINK="#0000EE"
    VLINK="#551A8B" ALINK="#FF0000">
    <CENTER>
    <TABLE BORDER=5 BGCOLOR="#EF8429">
    <TR><TH CLASS="TITLE">
    Testing Database Access</TABLE>
    </CENTER>
    <P>
    <%@ page language="java" %>
    <%@ page errorPage="errorpg.jsp" %>
    <%@ page import="java.util.*" %>
    <%@ page import="oracle.jdbc.driver.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="java.sql.*" %>
    Here IS what is is the Database
         <%!
              String [] set1 = new String [5000];
              String [] set2 = new String [5000];
              int i;
         %>
         <%     
              Connection conn = null;
              try
         %>
         <%
         DriverManager.registerDriver(new
    oracle.jdbc.driver.OracleDriver());
         String username = "Donnchadh", password = ".........";
         conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@localhost:1521:kiwi",username,password);
         java.sql.Statement stmt = conn.createStatement();
         String query1 = ("SELECT * FROM BOOKINGS;");
         ResultSet rs = stmt.executeQuery(query1);
         while(rs.next())
         int ccount = rs.getMetaData().getColumnCount();
         for( int i = 0; i <= ccount; i++ )
         String name = new String(rs.getString(i).getBytes("ISO-
    8859-1"),"Cp1251");
         set1 = name;
    for( int i = 0; i <= set1.length -1; i++ )
         out.print(set1[i]);
         java.sql.Statement stmt2 = conn.createStatement();
         String query2 = ("SELECT * FROM PERSONALS;");
    ResultSet rs2 = stmt2.executeQuery(query2);
    while(rs2.next())
         int ccount = rs2.getMetaData().getColumnCount();
         for( int i = 0; i <= ccount; i++ )
              set2 [i] = rs2.getString(i);
    for( int i = 0; i < set2.length -1; i++ )
         out.print(set2[i]);
         %>
         <%
         if(conn != null)
              try
                   conn.close();
              catch(Exception e)
                   return;
         }// End Try
         catch(Exception e)
              return;
    %>
    <P>
    </BODY>
    </HTML>
    Thanks for any help.

    Hi again, thanks for you continued help Ravi. I have implemented the code as you suggested. And the page loads up ok, no errors, but still no data. I am sure that i have data in the database.
    Here is the code i have, with the implementation that you suggested.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE>Testing Database Access</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FDF5E6" TEXT="#000000" LINK="#0000EE"
    VLINK="#551A8B" ALINK="#FF0000">
    <CENTER>
    <TABLE BORDER=5 BGCOLOR="#EF8429">
    <TR><TH CLASS="TITLE">
    Testing Database Access</TABLE>
    </CENTER>
    <P>
    <%@ page language="java" %>
    <%@ page errorPage="errorpg.jsp" %>
    <%@ page import="java.util.*" %>
    <%@ page import="oracle.jdbc.driver.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="java.sql.*" %>
    Here IS what is is the Database
         <%!
              String [] set1 = new String [5000];
              String [] set2 = new String [5000];
              int i;
         %>
         <%     
              Connection conn = null;
              try
         %>
         <%
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   String username = "Donnchadh", password = ".........";
                   conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:kiwi",username,password);
                   java.sql.Statement stmt = conn.createStatement();
                   String query1 = ("SELECT * FROM BOOKINGS;");
                   ResultSet rs = stmt.executeQuery(query1);
                   ResultSetMetaData rs_metaData = rs.getMetaData();
                   int noofcolumns = rs_metaData.getColumnCount();
                   Vector temp=new Vector();
                   while (rs.next())
                        Object making_VectorElement[] = new Object[noofcolumns];
                        int column_count = rs_metaData.getColumnCount();
                        for(int counter = 1; counter <= column_count ; counter++)
                             making_VectorElement[counter - 1] = rs.getString(counter);
                             if(rs.wasNull()) making_VectorElement[counter - 1] = "";
                        temp.addElement(making_VectorElement);
                   //then find the length of the vector and use the following code to display the elements in a table.
         %>
                   <%
                        out.println("<table>");
                        out.println("</TR>");
                        Vector vresultsub=new Vector();
                        int cnt = 0;
                        while (cnt < temp.size())
                             vresultsub = (Vector)temp.elementAt(cnt);
                             out.println("<TR>");
                             for(int i = 0;i<vresultsub.size();i++)
                                  if( vresultsub.elementAt(i) == null)
                                       out.println("<td> </td>");
                                  else
                                       out.println("<td><font face=arial size=1>" + vresultsub.elementAt(i) + "</font></td>");
                             out.println("</TR>");
                             cnt ++;
                        out.println("</TABLE><BR>");
                   %>
         <%
                   if(conn != null)
                        try
                             conn.close();
                        catch(Exception e)
                             return;
              }// End Try
              catch(Exception e)
                   return;
         %>
    <P>
    </BODY>
    </HTML>

  • Printing database content, or creating a pdf from it

    Gidday guys
    Today I'm researching using AS3 AIR to format and print data from a database.
    It needs to...
    - take the data, and format it from a selection of page formats I present
    - either print it to the printer, or save it to a pdf
    I'm wondering if someone with experience can please nudge me in the right research direction to answer...
    - what's the process for taking data and formatting it into an object to be printed of turned into a pdf?
    - is the object you make for printing a sprite? ie for multi page printing, do you create multiple sprites that contain your data formatted a particular way, and then create a multipage document out of them.
    Cheers for your guidance.

    No that won`t work. AlivePDF uses its own method of embedding fonts (if I remmeber correct you can only use ttf not otf font formats). AlivePDF is not exactly well documented or much used. Its technics are a little "arcane". It was created by the same Guy whose brainchild was Stage3D so you can imagine how complex it is for us mere mortals. A good start is this little blog .
    I also can see why Adobe (who is his boss) isn`t exactly highly motivated to make AlivePDF too much of a Acrobat Double ;-)

  • How to Insert a record into a MySql database.

    Hi,
    In an earlier question I was advised to use the Adobe extension to get access to database connectivity and server behaviours.
    That extension is now installed. Whether it is functional is another question.
    To chewck it out I follwed exactly the steps set out in Lessons 5 and 6 of Dreamweaver CS5 with PHP
    When trying to make a database connection I am still getting the 404 error I mentioned in an earlier email. However if I type the database name (phpcs5) into the “select database” box and test it says I connected successfully and I can see the user’s table in the database panel.
    So far apparently so good.
    I have created the cs5wtite and cs5read connections to the phpcs5 database
    I set up the insert record behaviour using “Form1!, “cs5write”, “users”,
    Everything went as per the manual, the file turned aqua in Live view.
    I entered data and ctrl/clicked “Sign me up” button and nothing happened.
    No data was entered into the database and I was not passed to login.php.
    I deleted everything from the computer, restarted the pc and started again from scratch.
    The result was the same. Nothing
    My one concern was line 49  $insertGoTo = " login.php";
    The file is in registration so I changed to $insertGoTo = "registration/login.php";
    but that made no difference.
    Is there any logging or error reporting I can use to see where it is going wrong?
    This is the add user page generated
    <?php require_once('../Connections/cs5write.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO users (first_name, family_name, username, password) VALUES (%s, %s, %s, %s)",
                           GetSQLValueString($_POST['first_name'], "text"),
                           GetSQLValueString($_POST['surname'], "text"),
                           GetSQLValueString($_POST['username'], "text"),
                           GetSQLValueString($_POST['password'], "text"));
      mysql_select_db($database_cs5write, $cs5write);
      $Result1 = mysql_query($insertSQL, $cs5write) or die(mysql_error());
      $insertGoTo = "login.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Add new user</title>
    <link href="../../styles/users.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <h1>Sign Up Now</h1>
    <form id="form1" name="form1" method="POST" action="<?php echo $editFormAction; ?>">
      <fieldset>
        <legend>Just a few details and you&rsquo;re in</legend>
        <p>
          <label for="first_name">First name:</label>
          <input type="text" name="first_name" id="first_name" />
        </p>
        <p>
          <label for="surname">Family name:</label>
          <input type="text" name="surname" id="surname" />
        </p>
        <p>
          <label for="username">Username:</label>
          <input type="text" name="username" id="username" />
        </p>
        <p>
          <label for="password">Password:</label>
          <input type="password" name="password" id="password" />
        </p>
        <p>
          <label for="conf_password">Confirm password:</label>
          <input type="password" name="conf_password" id="conf_password" />
        </p>
        <p>
          <input type="submit" name="add_user" id="add_user" value="Sign me up!" />
        </p>
      </fieldset>
      <input type="hidden" name="MM_insert" value="form1" />
    </form>
    </body>
    </html>
    This is the connection page
    <?php
    # FileName="Connection_php_mysql.htm"
    # Type="MYSQL"
    # HTTP="true"
    $hostname_cs5write = "localhost";
    $database_cs5write = "phpcs5";
    $username_cs5write = "cs5write";
    $password_cs5write = "Smp??2014";
    $cs5write = mysql_pconnect($hostname_cs5write, $username_cs5write, $password_cs5write) or trigger_error(mysql_error(),E_USER_ERROR);
    ?>
    I understand this solution is a wokraround Adobe privided whist deprecating its use.
    In the earlier question I asked if there was another way to work with a database. Someone posted a link to an Object orientated solution but It was way beyond my coding abilities. I wonder are there any other solutions out there?
    Thanks for any input

    Hi,
    Thanks for the test.
    I used your amendment but still got nothing, no record in database and not sent to login page..
    I also tried this code below. It returns "Record added to database" but it was not.
    Something strange going on.
    <?PHP
    $user_name = "cs5write";
    $password = "Smp??2014";
    $database = "phpcs5";
    $server = "127.0.0.1";
    $db_handle = mysql_connect($server, $user_name, $password);
    $db_found = mysql_select_db($database, $db_handle);
    if ($db_found) {
    $SQL = "INSERT INTO users (first_name, surame, username, password) VALUES) VALUES ('Albert', 'Dent', 'hitchiker', 'space')";
    $result = mysql_query($SQL);
    mysql_close($db_handle);
    print "Records added to the database";
    else {
    print "Database NOT Found ";
    mysql_close($db_handle);
    ?>

  • Printing DB Diagrams in JDev 10.1.3 EA

    Hi,
    I am unable to print database diagrams from JDeveloper 10.1.3 EA. Was anyone able to do it successfully?
    Thanks

    File | Print works for me but you don't have much control over how many pages you get. I'm on a later build that was supplied to the Tools CAB, so if File | Print doesn't work for you, it may be a problem with the EA version.
    You could also save as a JPG or SVG or PNG using Model | Publish Diagram.

  • Problem while sending output to a printer

    Hi,
    I am trying to send an output to a remote printer (on the same LAN)
    I have the remote printer configured on my machine, and while adding a new printer in Central's printer database, I am specifying the IP address of the printer in the physical device section. (i.e. \\192.168.*.*)
    In my job file, I tried giving options: -z"Printer Name", -z"Printer ID" and even removed -z option to achieve the default printing specified on my job, which is a print to the remote printer.
    But the printing is not taking place.
    Can sombody please guide me with regards to what is the correct approach in sending print to a remote printer (I am aware of the printer IP and port). What exact options do I need to specify in printer/job database and in the job file?
    Thanks and Regards,
    Aalap

    The -z option would normally refer to the "logical printer" name that is within the Job Management Database, Printers definition section (-zAcctPrt). Whether the actual print queue is defined on the server where Central is running or on another server the format for this entry is the same:
    b \\ServerName\QueName
    Then the Windows printer setup would be using the TCP/IP port for the printer. I don't have the exact instructions in front of me but setting up a print queue for Central is something like:
    Select "local printer"
    Select "create a new port"
    Select "Standard TCP/IP Port"
    Type in the IP # for the printer & change port name as desired
    Device Type of "Standard" and "Generic Network Card" should work
    For printer driver, Select Generic manufacturer & Generic/Text Only for the printer type (this works when using Print Agent targets because all printer control information is embedded within the print file.
    Give it a name of your choice.
    Print a test page to see if it works.
    In the above example of a logical printer definiation, the name given the new print queue would be used.
    b * * * All samples/instructions based on a Microsoft Windows Server 2000 system * * *

  • Update applied to Photoshop CS 4 now print to PDF crashes

    I have Adobe Photoshop CS4 Extended (11.0.2) installed on my system as well as Adobe Acrobat 9 Pro (9.3.1). Recently the Adobe updater came up and wanted to apply an update to Photoshop (to 11.0.2) and ever since printing to PDF from Microsoft SQL Server Management Studio 2008 crashes every time. I have made no other changes to the system. I'm running Windows Vista Enterprise with SP2 with SQL Server 2008 (full install) and SQL Server 2005 (workstation components only). I was just printing database diagrams to PDF before this update and everything worked great multiple times. Now I when I print, the window pops up with the progress bar proceeding like usual. Then after a little bit of progress, SSMS crashes and the PDF completes with only part of the diagram in the file.
    I get the following in the Windows application event log.
    Log Name:      Application
    Source:        Application Error
    Date:          6/16/2010 1:54:29 PM
    Event ID:      1000
    Task Category: (100)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      COMPUTERNAMEHERE
    Description:
    Faulting application Ssms.exe, version 2007.100.1600.22, time stamp 0x48753da6, faulting module DataDesigners.dll, version 2007.100.1600.22, time stamp 0x48753de4, exception code 0xc0000094, fault offset 0x0014f6e1, process id 0x%9, application start time 0x%10.

    See if HP has a different update.  It may be proprietary, specific to your machine.

  • Jvm crashes when printing a JTable under Citrix

    Hello,
    one of our customers uses Citrix for running our java clients (jre 1.4.2) and experiences the following problem:
    whenever someone prints out more than one page (the print of a JTable) the client crashes with the following error log:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x77F4C56D
    Function=GetEnhMetaFileHeader+0xB11
    Library=C:\WINNT\system32\GDI32.DLL
    Current Java thread:
    at sun.awt.windows.WToolkit.eventLoop(Native Method)
    at sun.awt.windows.WToolkit.run(WToolkit.java:262)
    at java.lang.Thread.run(Thread.java:534)
    The printing of only one page seems to work though.
    This is our only customer that uses Citrix. In other environments our client works without problems, so it should not be a bug in our program.
    Does anyone knows what to do here?
    Matthias

    Hi,
    we observe exactly the same behavoiur. We develop a solution where customers can print
    database reports. During the printing the jvm crashes with the same exception in GDI32.dll.
    It seems to be a specific problem of the citrix enviromment. Because most of our customers use
    Citrix we are now in big trouble. Does anyone out here knows a solution for this problem??

  • Printing problem / does it works ?

    I'm not able to print database diagram. I'm not able to activate the page setup menu too, it doesn't come with a dialog, it is no activity on my computer. Is it something wrong on my computer or this is jdev problem. Please confirm it is working so i can search for the problem on my computer.

    I got the print preview after minutes ... and got the printer list after 10 of minutes and finally got a database model with only one table without any column printed. The printing process was immediate after the printer was selected.
    The database diagram was for only one table. The application and project was newly created with nothing into.
    I suspect jdev see all database offline objects defined in the applications even the one i'm using doesn't contain anything. I imported thousands of objects from our application schema in an another project. I will remove the application from jdev and test it again.

  • Unsupported Printer (Samsung ML-1710, ML-1430)

    How do I get my printers to work on my MacBook? I have a Samsung ML-1710 and Samsung ML-1430. Samsung doesn't have drivers for the intel macs.
    Would gimp-print or guten-print do the job? I'm not sure if they're universal binary yet.

    You can find an open source printer driver for both by going here and looking up each printer Printer Database, then read the notes and download the driver and install it.
    It looks like you also need to download the Samsung Drivers package(which doesn't include the drivers for your printer), because it has other things in it which the drivers depend on to work properly.
    Do that, follow the directions and with any luck you should be able to use those two printers. Printer drivers are not executable code, they're just ASCII text commands, so they aren't PPC or Intel-specific.
    Hope this helps,
    Mulder

  • Oracle Database schema

    Can someone suggest me tools to view and print database schema (along with links showing relationships) for Oracle DB.
    I am preferably looking for free tools.
    I did search on google, couldn't find anything useful.
    thanks for your time and help.

    Couldn't find proper documentation to use it.
    Any other suggestions. I need schema diagram with all tables and thier relationship links.
    Thanks.

  • After closing serversocket, process remains

    Hi everyone,
    I'm trying to learn to write a client/server program. I begin by creating a serversocket and waiting for data. When I close the program, the serversocket still remains even when I create handlers that try to close the socket after the GUI has been closed.
    The server is as follows:
    try
                   ServerSocket myServerSocket = new ServerSocket(6666);
                   myServerSocket.setReuseAddress(true);
                   writeToDebugger("Server successfully created.  Listening on port 6666\n");
                   //     open a socket for listening for multiple requests
                   while(listening)
                             clientSocket = myServerSocket.accept();
                             //clientSocket.setReuseAddress(true);
                             writeToDebugger("Client " + clientSocket.getInetAddress().toString() + " accepted.");
                             //store clientSocket information
                             out = new PrintWriter(
                                    clientSocket.getOutputStream(), true);
                             in = new BufferedReader(
                                      new InputStreamReader(
                                          clientSocket.getInputStream()));
                             while ((inputLine = in.readLine()) != null && inputLine != "")
                                  writeToDebugger(inputLine);
                             //breaker = inputLine.indexOf(',');
                             //store the incoming request's information --- username of requestor is first param, requested username is second param
                             //database.put(inputLine.substring(0, breaker), clientSocket.getInetAddress());
                             //return the IP address of the username lookup
                             //out.print(database.get(inputLine.substring(breaker+1)));     
              }Here is my closing handler:
    public void windowClosed(WindowEvent arg0) {
              listening=false;
              try
                   System.out.println("CLOSING FOR REAL");
                   if(clientSocket!=null)
                        clientSocket.close();
                        clientSocket.shutdownInput();
                        clientSocket.shutdownOutput();
                   if(myServerSocket!=null)
                        myServerSocket.close();
                   if(out!=null)
                        out.flush();
                        out.close();
                   if(in!=null)
                        in.close();
                   System.out.println("DONE CLOSING");
              catch(Exception e)
                   System.out.println(e.getMessage());
         }If someone could please tell me why I have to go into the task manager to close the process after I have already closed the GUI, I'd really appreciate it.
    Thanks in advance,
    Julian

    And you're doing all these closes in the wrong order, and redundantly.
    Just close 'out' and the ServerSocket, doesn't matter in what order here.
    All the other closes and shutdowns are redundant. Calling shutdownXXX after closing the socket does nothing (and calling them just before closing the socket would add nothing to what close() already does). Closing the client socket before closing the output stream built around the socket output stream denies the output stream the chance to flush.

  • Crystal Reports: How to change Oracle OLE DB server at runtime

    Post Author: dvlasman
    CA Forum: Data Connectivity and SQL
    I'm using a rpt made with Crystal Reports 8.0.1 and VB 6. The report was made using the Microsoft OLE DB provider for Oracle. What I want to do is change to Oracle server / database the report is connecting to at run time before the report is displayed. I am using the Crystal Report Engine 8 Object Library (cpeaut32.dll), not the ocx.After creating the report object:Dim CrystalReport As CRPEAuto.ReportI open my report and discard saved data:'Open The ReportSet CrystalReport = CrystalApplication.OpenReport(msReportSource)CrystalReport.DiscardSavedDataConst sDBServer = "ORCL.SERVER" 'My TNS name for the Oracle ServerConst sDatabase = "ORCL.SERVER" 'I'm not sure what this value should beConst sUID = "system"Const sPwd = "manager"I was then going to change the database connection one of two ways:1:Dim objDatabaseTable As CRPEAuto.DatabaseTableFor Each objDatabaseTable In CrystalReport.Database.Tables    Call objDatabaseTable.SetLogOnInfo(sDBServer, sDATABASE, sUID, sPWD)    If (Not objDatabaseTable.TestConnectivity) Then        Debug.Print "Database failed connection: " & objDatabaseTable.Name    End IfNextSet objDatabaseTable = Nothing2:call crystalapplication.LogOnServer("pdsoledb.dll","MSDAORA.1",sDATABASE,sUID,sPWD)Neither of these two way gets me a successful connection. What am I doing wrong, and which is the preferred method to use?ThanksDean

    Did you get a resolution to your problem? I cannot dynamically change the datasource location in .NET using CR XI via OLE DB for Oracle. I get "This field name is not known." messages and when I try using the set datasource location in the designer tool, the mapping dialog box comes up with no fields in the right box. Thanks, Brian

Maybe you are looking for

  • Preview  files

    Hi. A couple of things with previews. Is it normal to have a 1 folder with 1 file in it for every preview in the preview directory ? If you delete images does the preview file and folder get removed also. I seem to have more preview folders than imag

  • N97 Music Library

    Nokia N97 Music Player, an average application but does serve the basics of a music app. I do however, find some problems with this. Does anyone know an easier way of adding new tracks to an already existing playlist. For example, I added 500 tracks

  • IPod classic not syncing because I do not have the privilege?

    My ipod will not sync with my computer because itunes says i do not have the privilege to do so. Any suggestions on how to fix this? I have synced my ipod to the exact computer before and never had a problem until now. Even after I updated my itunes

  • J2EE session variables & Non Random Session IDs

    Our server keeps failing our PCI compliance test due to the Session ID's being non random. Description: Web Server Uses Non Random Session IDs       Synopsis: The remote web server generates predictable session IDs.      Impact: The remote web server

  • Auto-load widgets?

    When I boot up in the morning, the first time I go to widgets I find "empty" widgets. They're all blank for about five to ten seconds - i.e., the Clock widget doesn't show the time, the Weather widget doesn't show the weather - and then they fill the