Using a database in Sun's "Open Office"

hi
I could think this tip is not suitable for this forum, but I didn't find another
so I try here to have an answer to a my question that, I think, can be interesting for other people too...
I would see in DataBase section of Sun's "Open Office" the data that my program register in a Derby database.
My first question is if this is possible..
If this is possible, my second question is: how to get the connection to the database?
*In the wizard , there are two components to put information in order to get the connection:
-(1) URL to the source data: jdbc: .....
-(2) Class of the driver:*
I made several tries to get the connection:
In the textBox (2) I put the path to the derby.jar that I use in the application
but when I push the button I got the message:
------"The driver JDBC wasn't load".------
Could I have same help about what information I have to put there ?
About the second input data, I think that in the box (1) I should put the (absolute) path to database that I would have the access..
but..., way it begin with jdbc: ?
Thank you for an explanation about what is the mean of the two components where put the input data....
regards
tonyMrsangelo

thank you jshell to spend time with your explanation..
I try to explain how I am seeing the problem:
In the Drby manual I read:
Derby consists of both the database engine and an embedded JDBC driver.
Applications use JDBC to interact with a database. Applications running on JDK 1.5 or earlier, must load the driver in order to work with the database.
In an embedded environment, loading the driver also starts Derby.
In a Java application, you typically load the driver with the static Class.forName method or with the jdbc.drivers system property.
For example: Class.forName("org.apache.derby.jdbc.EmbeddedDriver");In the java code I get a connection with this statements:
    private Connection getConnection(){ // 
            String driver = "org.apache.derby.jdbc.EmbeddedDriver";  // name of driver.
            try {
                Class.forName(driver);      // N.B. Derby.jar have to bein the classpath...
                System.out.println(driver + " loaded. ");
            } catch(java.lang.ClassNotFoundException e)     {
                System.err.print("ClassNotFoundException: ");
                System.err.println(e.getMessage());
                System.out.println("\n    >>> Please check your CLASSPATH variable   <<<\n");
            String  connectionURL = "jdbc:derby:" + path + dbName;
            Connection dbconn  = null;
            try {
                dbconn = DriverManager.getConnection(connectionURL);  // V.I. too
                System.out.println("Connected to database " + dbName);
            } catch (SQLException ex) {
                JOptionPane.showMessageDialog(null, ex.getMessage());
            } catch ( Exception excp ) {              // process remaining Exceptions here
                excp.printStackTrace();
        return dbconn;
    } // getConnection()At this point I think that I should give to Sun's Open Office the same intormation that I do in the java code ..
Of course I have to do it with a different syntax....
I think I have to put:
in the (1) the value of the String connectionURL
in the (2) the value of the String driver .
And to give the classpath to "Sun's Open Office" I should go in the menu option : [tools --> options --> OpenOffice.orgBase -- connection]
to activate the link with the driver derby.jar...
It was good for me talking with you was because now I think to see the problem in a more correct way..
What do you think about ?
Regards..

Similar Messages

  • Using Oracle "Import PDF" Extension in Open Office Draw to Edit pdf Files

    I am a fairly new Mac user with OS X 10.6. For several months, I have been trying to find something which would edit pdf files better than Preview does (for example, the content of a text box in Preview can only be "center aligned"). Skim and FormulatePro were two options I tried that were improvements over Preview in many respects, but wouldn't let me paste an image onto my pdf (such as, for example, if I wanted to put my digital signature on a document).
    Then, I "discovered" the Oracle PDF Import Extension which I had installed in Open Office months ago, but hadn't really used. By "discovered," I mean I read on somebody's blog that you could use Open Office Draw to edit pdf files and I thought, "Hey, I wonder if that would work with my setup." (Boy, do I feel stupid.)
    I have just started using this functionality, but in just an hour or so of playing around, I have found that it has far exceeded my expectations and, even, my immediate needs. Besides giving you (a) all the control over text and text boxes that you would expect from, say, a word processing program and (b) allowing you to paste images onto your pdf, Open Office Draw also includes layers!
    The layer function threw me off for a bit, because, at first, I kept finding that my attempts to edit the document resulted in grabbing the raster image and moving it "off" of the underlying text layer (a function, I will admit, that I think will be worth exploiting someday, but wasn't what I was looking for at the moment). Then, I discovered that you can "lock" the layer so as to prevent this annoying occurrence. To create your edits, simply create a new layer (call it "MyEdits" or whatever you want) and you're in business.
    Anybody who has done anything more than drawn a couple of lines and boxes on a page has discovered that editing the overlapping objects can be a real pain - if not an outright impossibility. Separating these overlapping objects through the use of different layers solves the problem.
    The only downside to the use of Open Office Draw as a pdf editing tool that I can see is that you must import the pdf, save your edits in odg format, and then export it to pdf when you're done. I know that we would all like to have the capability of doing everything I just described directly to the native document, but, hey, for all the functionality I have been searching the internet for weeks to find, I think it's a reasonable trade off.

    Try turning off protected mode.

  • Clicking on a doc file link uses a path to a corrupted Open Office executable

    In a response to my original question, the Tools/Options/Applications window was suggested for handling content type. However, for me, no content types or actions are shown, so I cannot specify a path to the valid version of Open Office.

    As Office is not an Apple product, you may find Microsoft's Office:Mac forums more useful:
    Office for Mac forums
    Those forums are as helpful as Apple's and have the added benefit that employees of the MS Macintosh Business Unit--most are hard-core Mac fans--often work the forums, so you get an "official" answer.
    When posting there, be sure to add something you omitted here: the version of Office. Makes a difference to potential solutions.

  • Will ole2.create_object work with Open Office Document?

    Dear All,
    Using ole2 package, we have already did a small application which will interact to Microsoft Excel. Now there is a business need to work with Sun's Open office document.
    We used to create a excel object like OLE2.CREATE_OBJ ('Excel.Application');
    Is there any other way of invoking/creating a open office spread sheet using ole2 package. Or any other way ?
    Regards,
    Balaji

    Dear Developer;
    Try this peace of code
    PROCEDURE exec_macro
    IS
    myapplication ole2.obj_type;
    mydocuments ole2.obj_type;
    mydocument ole2.obj_type;
    args ole2.list_type;
    Begin
    myapplication := ole2.create_obj ('Word.Application');
    ole2.set_property (myapplication, 'Visible', 0);
    mydocuments := ole2.get_obj_property (myapplication, 'Documents');
    args := ole2.create_arglist;
    ole2.add_arg (args, PC$FileName);
    mydocument := ole2.invoke_obj (mydocuments, 'Open', args);
    oe2.destroy_arglist (args);
    args := ole2.create_arglist;
    -- invoke the PrintPdf MSWorld macro
    ole2.add_arg (args, 'PrintPdf');
    ole2.invoke (myapplication, 'Run', args);
    ole2.destroy_arglist (args);
    ole2.invoke(myapplication,'Quit');
    ole2.Release_obj (mydocument);
    ole2.Release_obj (mydocuments);
    ole2.Release_obj (myapplication);
    End;
    Hope it works coz i did not try it but i try excel.application.
    Regards
    Reda El Mitwally

  • I was using open office spreadsheet today and inadvertantly clicked on a menu item that caused the Apple toolbar to disappear when I am in open office.  How do I get it back at the top of my screen?  I am currently using OS 10 Lion.

    I was using open office spreadsheet today and inadvertantly clicked on a menu item that caused the Apple toolbar to disappear when I am in open office.  How do I get it back at the top of my screen?  I am currently using OS 10 Lion.

    Click on the Menu bar  and go to View .  Or, hover over where the Menu bar shiuld be and click on it when it appears.  Try quitting and relaunching Finder.

  • Not able to open office documents from SharePoint site using Forms auth on a Mac with Office 2011

    I posted the same question on the Mac Office forum (http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macstart/not-able-to-open-office-documents-from-sharepoint/7fba517b-ebd1-4e90-a54a-c70c5f035146?tm=1418836613595) but figured it's probably more
    of a SharePoint question so I'm going to try here as well.
    We just discovered an issue where a user logs into a SharePoint site using Forms based authentication.  When clicking on an Office file they get
    'Sorry, this site hasn't been shared with you' message:
    The user can download the file and can also open the file within the browser (Office Web apps).  This SharePoint site is on a Web app that uses mixed authentication (forms for external partners) and Windows/Kerberos for internal employees.
     When logging into this same site as an internal user I am able to open the file just fine.
    I checked the 'Microsoft Document Connection' settings and selected and deselected 'Enable Basic Authentication' and neither helped.  
    I also tried to add the site URL under 'Microsoft Document Connection' -> Add connection -> Connect to a SharePoint site.  When I put the site URL in and click 'Connect', I get an error saying that 'Only connection to SharePoint or OneDrive
    servers are supported' message.  If I try the same thing as an internal user using Windows/Kerberos authentication I am able to connect to the site just fine.
    Any ideas??

    Hi Szamir,
    As you are using Form Based authentication to open the documents from SharePoint site, I recommend to check the things below:
    Make sure that the user has permission to view the documents in the site.
    Please select "Sign me in automatically" when you sign in the login page.
    More references:
    https://social.technet.microsoft.com/Forums/en-US/ae8cc886-c362-4709-8575-07d339144714/not-able-to-open-microsoft-office-documentsdocxxls-etc-from-document-library-in-a-fba-site-in?forum=sharepointgeneralprevious
    http://manojvnair.blogspot.com/2011/06/login-prompt-while-opening-office.html
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • I need to print an envelope (regualr No. 10) using Open Office Writer and HP D7160

    I need to print an envelope (regualr No. 10) using Open Office Writer and HP D7160. Unbeleivably there's NO information about doing this in the hard copy user manual, nor have I been able to find anything online yet.

    I need to print an envelope (regualr No. 10) using Open Office Writer and HP D7160. Unbeleivably there's NO information about doing this in the hard copy user manual, nor have I been able to find anything online yet.

  • Text upload using Open Office

    Hi All ! earlier I was using Microsoft Excel to upload text in SAP (FM - 'TEXT_CONVERT_XLS_TO_SAP'). It was absolutely fine. but, now I wan't to upload text using Open Office excel. i have saved the fle with .xls extension, but it is giving me error. Please advice how to upload text using Open Office excel.

    > I cannot import text without saving as a .doc,
    Or as RTF.
    Kenneth Benson
    Pegasus Type, Inc.
    www.pegtype.com

  • Discoverer Export to Excel but Using Open Office

    Hi,
    I used to use MS Excel as my spreadsheet but I have migrated to using Open Office's Calc. All works fine except....
    Previously, exporting my Discoverer work sheet results to Excel allowed MS Excel to open up the exported spreadsheet with all formatting intact.
    However, I am unable to replicate this using Open Office (latest version). The exported spreadsheet opens ok, no errors are displayed.... but... all formatting is lost.
    Anyone know if its possible to open up the exported spreadsheet in Open Office and retain formatting?
    Thanks in advance,
    Rob
    Edited by: Robert Chalton on 06-Aug-2010 17:13

    Hi Srini,
    Thanks for the update - I'd already seen that link, but we aren't using OBIEE.
    And as for support, I am also pretty sure it isnt - otherwise I would have raised an SR.
    Hopefully, given the umbrella Open Office is distributed under now, it will be supported eventually (though I won't hold my breath!).
    I guess we'll just install Excel on the PC's that need the functionality.
    Thanks again,
    Rob

  • Can't install open office; youtube videos + green screen; using call HP Tech Support fails

    Can't install open office; youtube videos are green screen (audio ok); using call HP Tech Support fails (no reason given)
    1) Can't turn McAfee Livesafe off, and think it's what's keeping me from installing Open Office.  It downloads but can't install. 
    2) At work on wireless guest,  youtube looks fine.  At home on ethernet through DISH satellite, it's green screen.  This is not he case with my older HP laptop connected to the same ethernet cable.
    3) Why is HP tech support rejecting me, after I type everything in?  If I ca't use it, don't make it an option!!!!  The forums were choice #2, so here I am ... make me proud ...
    Thanks everyone!!!!

    An alternative to OpenOffice would be KingsSoft Office, it performs better and still Free:
    http://www.kingsoftstore.com/
    McAfee products are problematic on some systems and suggest you uninstall it using their removal too then reboot:
    http://service.mcafee.com/FAQDocument.aspx?id=TS101331
    Build in Windows Defender should reactivate after the reinstall.  As an antivirus product it is adequate as long as you practice safe surfing habits.
    Windows key + X, select Command Prompt (Admin) and type:  sfc /scannow
    Let me know if it does not fix all or any corrupt system files.
    Reboot and now try your Youtube.
    I do not have an answer to what transpired between you and HP Support but only to say you should come here first.
    Please mark my post as SOLVED if it has resolved your problem. It helps others with similar situations.

  • Since installing Open Office 4.0 I cannot open .doc files on the fly, used to work before.

    I've recently upgraded to Open Office 4.0. Now cannot open .doc attachments from Thunderbird. I can download to disc and open into Open Office Writer with Power Desk or Windows Explorer in the usual way. I've checked tools/options/attachments and it's set to Open Office Writer. I think this is irrelevant, but when I had Open Office 3.0 I had Writer set as a separate program, but I am now using just the master front end.
    Works OK with .pdf or .jpg files.

    just delete the entry from the attachments windows and then try and open a doc file. The entry will be recreated using your responses.
    I am guessing the existing Writer is not the correct Writer.

  • I've been using IMac for 3 years with Microsoft office. Today, I could not open any excel files? Any Ideas?

    I've been using IMac for 3 years with Microsoft office. Today, I could not open any excel files? Any Ideas?

    If you upgraded to Lion or Mountain Lion, and did not upgrade to Office 2008 or later, that may be part of the problem.  Try LibreOffice, OpenOffice, NeoOffice, Google Docs, or Zoho Docs.  See my FAQ* for link:  http://www.macmaps.com/crossplatform.html

  • HT4641 , I'm currently using apach, open office on my laptop, will I be able to import and edit these files using Pages??? Thanks in advance.

    , I'm currently using apach, open office on my laptop, will I be able to import and edit these files using Pages??? Thanks in advance.

    Yes, as long as you save them in .doc format.

  • I use Open Office as my program. it does convert to msoffice. Will this cause me any problems in converting content ?

    I use open Office for my work. I can convert to ms office. will this cause any problems ?

    Hi warbird16,
    I'm curious how PDF comes into play. If you're only dealing wit OpenOffice > MS Office, and are wondering how those two applications interact, Microsoft is better suited to answer that.
    If you're wondering about converting PDF files to Word, that does fall into Adobe's realm. Can you please elaborate on how the pieces fit together in your workflow?
    I look forward to hearing back from you.
    Best,
    Sara

  • How do i use this adobe with open office ?

    how do i use this adobe system with open office ?

    Hello,
    here you will find some - so as I think - helpful informations (requires no witchcraft ):
    https://new.acrobat.com/en_us/products/exportpdf.html >>> Download and get to work. >>>
        Download your file from Acrobat.com.
        Open and start editing.
        Save file locally or in the cloud.
    and
    http://helpx.adobe.com/acrobat-com/help/adobe-exportpdf-faq.html or here
    https://forums.adobe.com/message/5667217
    Good luck!
    Hans-Günter

Maybe you are looking for