[1305] | 1 | # $Id$ |
---|
| 2 | |
---|
[2482] | 3 | PyKota - Print Quotas for CUPS and LPRng |
---|
[1305] | 4 | |
---|
[2622] | 5 | (c) 2003, 2004, 2005, 2006 Jerome Alet <alet@librelogiciel.com> |
---|
[1305] | 6 | This program is free software; you can redistribute it and/or modify |
---|
| 7 | it under the terms of the GNU General Public License as published by |
---|
| 8 | the Free Software Foundation; either version 2 of the License, or |
---|
| 9 | (at your option) any later version. |
---|
| 10 | |
---|
| 11 | This program is distributed in the hope that it will be useful, |
---|
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 14 | GNU General Public License for more details. |
---|
| 15 | |
---|
| 16 | You should have received a copy of the GNU General Public License |
---|
| 17 | along with this program; if not, write to the Free Software |
---|
[2303] | 18 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
[1305] | 19 | |
---|
| 20 | ==================================================================== |
---|
| 21 | |
---|
| 22 | This directory contains some screenshots of direct access to PyKota's |
---|
[1326] | 23 | database through OpenOffice.org, as well as a sample report in both |
---|
| 24 | PDF and OpenOffice.org's sxc format. |
---|
[1305] | 25 | |
---|
[1326] | 26 | The sample report is a Jobs per User diagram, created from a |
---|
| 27 | simple SQL query to PyKota's database from within OpenOffice.org |
---|
[1305] | 28 | |
---|
[1326] | 29 | Since it works but I don't know OpenOffice enough to do something |
---|
| 30 | really nice with it, I've added these screenshots and here's a small |
---|
| 31 | howto below. For people interested in a more complete howto, please |
---|
| 32 | see : http://kandalaya.org/download/oo-pgsql.html |
---|
| 33 | |
---|
[1325] | 34 | PyKota + PostgreSQL + OpenOffice.org HowTO : |
---|
| 35 | -------------------------------------------- |
---|
| 36 | |
---|
[1305] | 37 | - Install and configure : |
---|
| 38 | |
---|
| 39 | godbcconfig |
---|
| 40 | gtkodbcconfig0 |
---|
| 41 | iodbc |
---|
| 42 | libiodbc2 |
---|
| 43 | odbc-postgresql |
---|
| 44 | odbcinst1 |
---|
| 45 | unixodbc |
---|
| 46 | |
---|
| 47 | - Within gODBCConfig, add the PostgreSQL driver by |
---|
| 48 | filling the Configure Driver form : |
---|
| 49 | |
---|
| 50 | Name : PostgreSQL |
---|
| 51 | Description : PostgreSQL |
---|
| 52 | Driver : /usr/lib/postgresql/psqlodbc.so |
---|
| 53 | Setup : /usr/lib/odbc/libodbcpsqlS.so |
---|
| 54 | FileUsage : 1 |
---|
| 55 | |
---|
| 56 | See gODBCConfig1.png |
---|
| 57 | |
---|
| 58 | Then create a system DSN (only the more important fields |
---|
| 59 | are listed below) : |
---|
| 60 | |
---|
| 61 | DSN : PyKota |
---|
| 62 | Description : PostgreSQL access to PyKota |
---|
| 63 | Driver : PostgreSQL |
---|
| 64 | Database : pykota |
---|
| 65 | Servername : your.postgresql.server.here |
---|
| 66 | Username : pykotauser |
---|
| 67 | Password : pykotauser's password |
---|
| 68 | Port : 5432 |
---|
| 69 | |
---|
| 70 | See gODBCConfig2.png |
---|
| 71 | |
---|
| 72 | - Then in OpenOffice.org add a new data source, selecting |
---|
| 73 | ODBC in the Database Type field. By clicking on the URL |
---|
| 74 | field's continuation dots, the PyKota DSN should appear. |
---|
| 75 | Just select it and you're done. |
---|
| 76 | |
---|
| 77 | See ooo1.png |
---|
| 78 | |
---|
| 79 | - You can now create your own queries to the PyKota database, |
---|
| 80 | and create any report you want. |
---|
| 81 | |
---|
| 82 | See ooo2.png |
---|
| 83 | |
---|
| 84 | - When you've got something nice, please contribute it back |
---|
| 85 | so we can learn from your experience. |
---|
| 86 | |
---|
[1306] | 87 | WARNING : |
---|
| 88 | |
---|
| 89 | The above procedure doesn't work if you use the OpenLDAP backend |
---|
| 90 | to store PyKota's datas. A similar procedure is probably possible |
---|
| 91 | but last time I checked, the LDAP attributes accessible from |
---|
| 92 | OpenOffice.org were limited to what one usually finds in |
---|
| 93 | address books, unfortunately. |
---|
[1369] | 94 | |
---|
| 95 | Windows Users : |
---|
| 96 | |
---|
[2028] | 97 | You'll find information on how to use the PostgreSQL ODBC |
---|
| 98 | driver with OpenOffice.org for Windows at : |
---|
[1369] | 99 | |
---|
| 100 | en: http://www.openoffice.org/nonav/issues/showattachment.cgi/3481/postgresql.sxw |
---|
| 101 | de: http://de.openoffice.org/doc/howto/datenquelle/tech_pgsql.html |
---|
| 102 | es: http://es.openoffice.org/files/documents/73/799/pgsql-win.sxw |
---|
[2028] | 103 | |
---|
| 104 | Thanks to Johannes L�ermann for this information. |
---|
[1305] | 105 | ==================================================================== |
---|