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