tag:blogger.com,1999:blog-15319370.post3310341577045715976..comments2008-06-28T10:32:15.169+02:00Comments on Roland Bouman's blog: MySQL meets OpenOffice.orgRoland Boumanhttp://www.blogger.com/profile/13365137747952711328noreply@blogger.comBlogger45125tag:blogger.com,1999:blog-15319370.post-43887819297494028572008-06-28T10:32:00.000+02:002008-06-28T10:32:00.000+02:00Hi William Anthony,can you tell me a bit more abou...Hi William Anthony,<BR/><BR/>can you tell me a bit more about your report generator? <BR/><BR/>Is it essential to build it in a desktop office environment, or is that merely a development platform you find convenient?Roland Boumanhttp://www.blogger.com/profile/13365137747952711328noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-62829911027919421092008-06-28T07:21:00.000+02:002008-06-28T07:21:00.000+02:00Your article might be a solution to everyone that ...Your article might be a solution to everyone that want to migrate to non-MS application like me.<BR/><BR/>Currently, I'm using MS Excel with MySQL ODBC Connector and VBA to create automated report generator.<BR/><BR/>Too bad, VBA support in OO still in development.William Anthonyhttp://idiot-howto.blogspot.com/noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-5984927711188823322008-04-02T05:24:00.000+02:002008-04-02T05:24:00.000+02:00thx for your tutorial~ it's very userful for me......thx for your tutorial~ it's very userful for me...<BR/>thx agine ! :)jarden.cheunghttp://www.blogger.com/profile/01843012894955757243noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-44351058389925700562008-03-24T11:18:00.000+01:002008-03-24T11:18:00.000+01:00Adam, can you send me an email with the Open Offic...Adam, can you send me an email with the Open Office Options/Java/Classpath dialog?<BR/><BR/>Can you also pls try and put the connector in a shallow path without spaces, like C:\temp\mysql-connector-java-xxx.jar <BR/><BR/>and try again?Roland Boumanhttp://www.blogger.com/profile/13365137747952711328noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-89588913063824162692008-03-24T01:30:00.000+01:002008-03-24T01:30:00.000+01:00Oh and yes I did register it in Open OfficeAdamOh and yes I did register it in Open Office<BR/><BR/>AdamAdamhttp://www.blogger.com/profile/04810872715750882942noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-78472699919607730482008-03-24T01:29:00.000+01:002008-03-24T01:29:00.000+01:00Roland By step 3 I mean the third page of the wiza...Roland <BR/><BR/>By step 3 I mean the third page of the wizard where the Test connection button is.<BR/><BR/>The mysql connector/J jar file is located at C:\Program Files\Java\<BR/>MySqlConnector\mysql-connector-java-5.0.8<BR/><BR/>Thanks<BR/><BR/>AdamAdamhttp://www.blogger.com/profile/04810872715750882942noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-61964176920655011972008-03-23T16:56:00.000+01:002008-03-23T16:56:00.000+01:00Hi Adam, I am not entirely sure which step you are...Hi Adam, <BR/><BR/>I am not entirely sure which step you are referring to exactly - the steps are not numbered in my post, but you refer to "step 3"<BR/><BR/>What's the location of your mysql connector/J jar file?<BR/><BR/>Did you register it in Open Office?Roland Boumanhttp://www.blogger.com/profile/13365137747952711328noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-15562872484407051132008-03-23T01:32:00.000+01:002008-03-23T01:32:00.000+01:00RolandI cant get past step 3 on the wizard when I ...Roland<BR/><BR/>I cant get past step 3 on the wizard when I hit Test Class I get JDBC Driver could not be loaded but I have followed your instructions meticuously. Any Ideas<BR/><BR/>Thanks<BR/><BR/>AdamAdamhttp://www.blogger.com/profile/04810872715750882942noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-39782889300166535512008-03-11T15:45:00.000+01:002008-03-11T15:45:00.000+01:00Maybe the problem is, that I need ODBC driver inst...Maybe the problem is, that I need ODBC driver instead of the JDBC driver? I don't think I have the ODBC driver installed.<BR/><BR/>Or, is the mysql-connector-java-5.0.8 driver the same as the ODBC driver? I do have the sql-connector-java-5.0.8 driver; I set up OpenOffice to point to that one as I did for the JDBC Driver.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-15319370.post-62580444825952214882008-03-11T15:22:00.000+01:002008-03-11T15:22:00.000+01:00I entered in localhost for server URL in Calc - af...I entered in localhost for server URL in Calc - after I ran that command in Terminal that is (for the second case).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-15319370.post-74071348299651615612008-03-11T15:20:00.000+01:002008-03-11T15:20:00.000+01:00Hi there,I connected in two ways. First way was t...Hi there,<BR/><BR/>I connected in two ways. First way was to go to File>New Database, and then go through the dialog boxes, I chose connect to a new database, chose MySQL, then selected JDBC, then entered in the database name, then the server URL, left it at port 3306, left the com.mysql.jdbc.Driver default as is, then entered in the user name of the database and then clicked finish. I also click the test connection button and it tested OK.<BR/><BR/>Second way was the same except I entered in localhost, after I issued the command ssh -L 3307:localhost:3306 username@myservername.net so that I could get an ssh tunnel for secure connections to database.<BR/><BR/>I have the same problem in both scenarios. In both cases, I had to disable SELinux because OpenOffice won't run with SELinux enabled.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-15319370.post-13460413266468677262008-03-10T13:19:00.000+01:002008-03-10T13:19:00.000+01:00Hi Anonymous,I asked about the jvm because I had b...Hi Anonymous,<BR/><BR/>I asked about the jvm because I had bad experiences with the jvm included by default in my distro. I use the sun JVM as well, so that should be ok.<BR/><BR/>I just created and registered a new db pointing to my local MySQL and I created a 16000+ row, 18 column view in there to test.<BR/><BR/>I am not really sure in what OOo view you are looking, but inside Calc, I can scroll pretty comfortable through the entire set, provided I scroll once to the far end (using the last button in the "Data Sources" view)<BR/>I am also not experiencing the freezing up you mentioned.<BR/><BR/>Importing the data into Calc does take a little while, but not more than half a minute.<BR/><BR/>May be I am not looking in the right view. Can you please describe in detail how you hooked up Cacl and MySQL? Personally i haven't really spotted something in Calc to "link" to the data rather than import it, maybe you have found a way that I am not noticing? <BR/><BR/>kind regardsa,<BR/><BR/>RolandRoland Boumanhttp://www.blogger.com/profile/13365137747952711328noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-46262715447921933372008-03-10T13:00:00.000+01:002008-03-10T13:00:00.000+01:00Hi,I am using the jre1.6.0_05 32 bit version for L...Hi,<BR/><BR/>I am using the jre1.6.0_05 32 bit version for Linux.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-15319370.post-47080525925629213202008-03-10T08:50:00.000+01:002008-03-10T08:50:00.000+01:00Hi Anonymous,What jvm are you using?Hi Anonymous,<BR/><BR/>What jvm are you using?Roland Boumanhttp://www.blogger.com/profile/13365137747952711328noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-21994807365833030752008-03-10T02:18:00.000+01:002008-03-10T02:18:00.000+01:00Hi there,Using your instructions, I was finally ab...Hi there,<BR/><BR/>Using your instructions, I was finally able to get OpenOffice 2.3 Calc to connect from my Centos 5.1 desktop machine to my remote MySQL database, also a Centos Linux 5.1 Box.<BR/><BR/>The problem I am having, is that when I open up a large table with 400 rows and maybe 25 columns in it (a table for products in an on line shopping cart), the scroll bars move down the table extremely slowly, and after a minute or two the table freezes up, as does OpenOffice, and I end up having to CtlAltDel and restart Open office again.<BR/><BR/>From a different desktop machine running Windows 2000, I am able to connect to the very same database using Navicat and I don't have this problem, I can scroll through and edit data very fast with no crashing.<BR/><BR/>Any suggestions as to what I can do to solve this problem? I'd like to start using Linux exclusively if I can get OpenOffice 2.3 to work without crashing. Maybe I just don't have my Linux desktop and or openoffice configured corectly?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-15319370.post-80738438861013618482008-02-08T07:57:00.000+01:002008-02-08T07:57:00.000+01:00wow.. an answer so quickly.. thank you! I googled ...wow.. an answer so quickly.. thank you! <BR/><BR/>I googled extensively, using every perm. of openoffice base rand and a fwe other terms.. and came up essentially with only that doc page saying that indeed HSql does have rand() in it. ..all the more frustrating then to have it act just like it doesnt.. hehe<BR/><BR/>You found an interesting solution with the alias. I kinda figured that using a call to an outside language like that would work, but Ive never had necessity to do it. Also saw another solution for Base that specifically used a macro to similar effect.<BR/><BR/>..yours is much better.<BR/><BR/>Anyway.. thanks for the ideas.david bnoreply@blogger.comtag:blogger.com,1999:blog-15319370.post-72505829546594881172008-02-08T00:39:00.000+01:002008-02-08T00:39:00.000+01:00Hi David b,thanks for the comment! I appreciate it...Hi David b,<BR/><BR/>thanks for the comment! I appreciate it a lot. <BR/><BR/>I just googled a bit and it turns out you should be able to do this semi-natively in HSQLDB:<BR/><BR/>CREATE ALIAS RAND FOR "java.lang.Math.random"<BR/><BR/>See: http://hsqldb.org/doc/guide/ch09.html#create_alias-section<BR/><BR/>Interestingly, the syntax docs say it should be a built-in:<BR/><BR/>http://hsqldb.org/doc/guide/ch09.html#N1251ERoland Boumanhttp://www.blogger.com/profile/13365137747952711328noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-9658119395190206792008-02-08T00:01:00.000+01:002008-02-08T00:01:00.000+01:00another use for this took me long while to ferret ...another use for this took me long while to ferret out. The default Hsql? engine in base doesnt have rand(). This creates a random number for you.<BR/><BR/>Failure after failure in trying to randomize some database with what I thoght was valid SQL. So I ran through most of this tutorial on setting up the environment.. and POOF it worked just great.<BR/><BR/>So if you want the environment you're more familiar with, this is a great way to get it.david bnoreply@blogger.comtag:blogger.com,1999:blog-15319370.post-20008938780094645662008-02-01T21:35:00.000+01:002008-02-01T21:35:00.000+01:00Remi, When try it with calc in ooo 2.3.1, I cannot...Remi, <BR/><BR/>When try it with calc in ooo 2.3.1, I cannot simply close the dialog and leave calc open - it wants to restart open office.<BR/><BR/>I am running it on Kubuntu Gutsy. What's your OS?Roland Boumanhttp://www.blogger.com/profile/13365137747952711328noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-61052251511072967932008-02-01T21:16:00.000+01:002008-02-01T21:16:00.000+01:00Hi there! Yeah - it sounds like a bug anyway. Unfo...Hi there! <BR/><BR/>Yeah - it sounds like a bug anyway. Unfortunately I don't know where to get older versions of OOo. <BR/><BR/>I guess I would join one of the open office IRC channels on freenode and ask there if somebody knows something.<BR/><BR/>Good Luck!Roland Boumanhttp://www.blogger.com/profile/13365137747952711328noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-15147896400644472042008-02-01T19:47:00.000+01:002008-02-01T19:47:00.000+01:00Hello Roland,Your article seems to be what I was l...Hello Roland,<BR/><BR/>Your article seems to be what I was looking for.. <BR/><BR/>But I'm having a problem... when I add the JRE with the class path in the Java options by scalc, everything seems to be ok. But when I close the options, leave scalc open, and reopen the options, the ''use a JRE'' checkbox is unchecked and there's no more JRE in the window. I work with the following versions: windows XP, jdk1.6.0_04 and Open office 2.3.1 (latest versions...). I suspect a bug in OOo and would like to try with an older version. Do you have an idea of my problem? Do you know where I could get an older version of OOo? I have tried with different versions of Java but they always disappear anyway...<BR/><BR/>thanks you very much,<BR/>RemiAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-15319370.post-56848471111764466982007-11-22T07:42:00.000+01:002007-11-22T07:42:00.000+01:00Excellent : used to do this between MS Access & My...Excellent : used to do this between MS Access & MySQL with MySQL ODBC, but request admin rights to install MySQL ODBC driver.<BR/><BR/>With OpenOffice and JDBC you can freely do this : PortableOpenOffice (http://portableapps.com/apps/office/openoffice_portable) you can install Base in your home or USB key, all the same with JDBC jar file. <BR/><BR/>Only trick is for the JRE : need to install somewhere you've admin rights, then copy the location given at install time on your USB disk/key : in OpenOffice when requested to select Java options, you just select Add button and point to your JRE location, and it works.<BR/><BR/>Thanks for sharing Roland !Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-15319370.post-64647638451238965592007-11-11T07:07:00.000+01:002007-11-11T07:07:00.000+01:00This is a very informative article and I have to s...This is a very informative article and I have to say cudos to those of you who assist those who know not such as myself, I have yet to try to connect open office to mysql however I was wondering how I would go about it and I believe you have answered my questions. Thank you very much for the time you donated to assist me. "perhaps not personally but you did have to donate your time to this article and I wish to show my appreciation"Shawnnoreply@blogger.comtag:blogger.com,1999:blog-15319370.post-90843356439211608922007-06-26T21:53:00.000+02:002007-06-26T21:53:00.000+02:00Thank you!I got exactly what I needed from this ar...Thank you!<BR/>I got <I>exactly</I> what I needed from this article!Tim Bunchhttp://www.blogger.com/profile/13249760628119343892noreply@blogger.comtag:blogger.com,1999:blog-15319370.post-58182518547248610792007-06-24T19:40:00.000+02:002007-06-24T19:40:00.000+02:00Roland;If it weren't for your kind offering in thi...Roland;<BR/><BR/>If it weren't for your kind offering in this tutorial, I would have never set this up correctly. Thanks a million.<BR/><BR/>Wayne BjorkenSpringDiverhttp://www.blogger.com/profile/05211351172077840718noreply@blogger.com