[dba-dev] Base bug storing large files in a blob

2010-09-05 Thread Andrew Douglas Pitonyak
The following message was posted to the OOo Forum: http://www.oooforum.org/forum/viewtopic.phtml?p=390589 I repeat the message here: ** I am working with OpenOffice basic, HSQlDB 2.0. I have a table for attachments in my DB. When i upload a File that is big for example 32 MB

Re: [dba-dev] Image control aspect ratio

2008-08-20 Thread Andrew Douglas Pitonyak
Frank Schönheit - Sun Microsystems Germany wrote: Hello Andrew, Insert an image control into a form and associate the control to a field in the database. The image control has a specific size. If the control displays an image with a different aspect ratio, then the image may be severely

Re: [dba-dev] Image control aspect ratio

2008-08-20 Thread Andrew Douglas Pitonyak
Fernand Vanrie wrote: Andrew Douglas Pitonyak wrote: Hi Andrew I have some questions Insert an image control into a form and associate the control to a field in the database. Is the Image datafile stored in the database or is het just the URL of the image I store the image

[dba-dev] Image control aspect ratio

2008-08-19 Thread Andrew Douglas Pitonyak
Insert an image control into a form and associate the control to a field in the database. The image control has a specific size. If the control displays an image with a different aspect ratio, then the image may be severely distorted. Any thoughts on how to avoid this? My primary thought

Re: [dba-dev] Compacting an embedded Base database

2007-10-01 Thread Andrew Douglas Pitonyak
Would closing the connection have sufficed? If not, what is the difference between closing a connection and disposing of a connection? andrew wrote: Marc Santhoff wrote: BUT - ah ha I found the bug..it was my code - well, maybe not.all my code. I did not dispose of the connection within

Re: [dba-dev] (Down-)Loading a picture (from) into a DB

2007-03-12 Thread Andrew Douglas Pitonyak
Ariel Constenla-Haile wrote: (Down-)Loading a picture (from) into a DB Hy there! I need some help with the following: I'm trying to load and download pictures from databases (both embedded and external data sources like MySQL) using the API with OOoBasic. I have a complete example of this

[dba-dev] Windows holds closed Base documents open

2005-12-08 Thread Andrew Douglas Pitonyak
I thought that this was fixed in OOo 2.01, but it is still a problem. I created an issue against this. Was I mistaken? The problem is that Windows holds a Base document open. You need to entirely close OOo, including the quick starter, or you can not delete a Base document on Windows. I saw

Re: [dba-dev] Adding tables using SQL does not update a Base document immediately.

2005-11-09 Thread Andrew Douglas Pitonyak
Wolfgang Schaible wrote: hi Andrew, Am Montag 07 November 2005 06.33 schrieb Andrew Douglas Pitonyak: Function FindComponentWithURL(sURL As String, bLoadIfNotFound As Boolean) Dim oDocs ' Enumeration of the loaded components. Dim oDoc' A single enumerated component. Dim sSt

[dba-dev] With no visible Base document, Opening a form crashes OOo

2005-11-08 Thread Andrew Douglas Pitonyak
I use the following code snippet to open a form from a Base document. oBaseContext = CreateUnoService(com.sun.star.sdb.DatabaseContext) oDataBase = oBaseContext.getByName(sDBURL) oDBDoc = oDataBase.DatabaseDocument oFormDef = oDBDoc.getFormDocuments().getByName(sFormName) oDummyFormDef =

Re: [dba-dev] Adding tables using SQL does not update a Base document immediately.

2005-11-01 Thread Andrew Douglas Pitonyak
Frank Schönheit - Sun Microsystems Germany wrote: Hi Andrew, I tried oTables = oCon.getTables() oTables.refresh() This did not work This is surprising, since it's exactly what the Controller does with its own connection when you dispatch the URL ... Ciao Frank I will

Re: [dba-dev] Adding tables using SQL does not update a Base document immediately.

2005-11-01 Thread Andrew Douglas Pitonyak
Frank Schönheit - Sun Microsystems Germany wrote: Hi Andrew, I tried oTables = oCon.getTables() oTables.refresh() This did not work This is surprising, since it's exactly what the Controller does with its own connection when you dispatch the URL ... Ciao Frank Initially,

Re: [dba-dev] Adding tables using SQL does not update a Base document immediately.

2005-10-31 Thread Andrew Douglas Pitonyak
Ocke Janssen wrote: Hi, Wolfgang Schaible wrote: hi, Am Sonntag 30 Oktober 2005 02.57 schrieb Andrew Douglas Pitonyak: I load a Base document. I add a table using a macro (and the API). The Base document shows the new tables. If my macro uses SQL to create the table, then the tables

Re: [dba-dev] Can not delete a previously opened Base document

2005-10-31 Thread Andrew Douglas Pitonyak
Frank Schönheit - Sun Microsystems Germany wrote: Hi Andrew, You got me there I have not tried this on my Linux computer, only on a Windows XP Professional computer. I have noticed that on Windows, if a Write document is open, I can not attach it to email. It is probably the same

Re: [dba-dev] Can not delete a previously opened Base document

2005-10-31 Thread Andrew Douglas Pitonyak
Frank Schönheit - Sun Microsystems Germany wrote: Hi Andrew, I will perform some more complete checks and come up with a minimal set of steps to reproduce the problem. I am using macros, which means that I am using a database context to get the database. I then obtain a connection. I

Re: [dba-dev] Adding tables using SQL does not update a Base document immediately.

2005-10-31 Thread Andrew Douglas Pitonyak
Frank Schönheit - Sun Microsystems Germany wrote: Hi Wolfgang, Sounds good, but running a macro (with Base-Doc not open), how can I obtain a controller of the document and dispatch the command .uno:DBRefreshTables ? Ocke's last sentence Normally it should be enough to query

Re: [dba-dev] Can not delete a previously opened Base document

2005-10-30 Thread Andrew Douglas Pitonyak
Wolfgang Schaible wrote: hi, Am Sonntag 30 Oktober 2005 02.55 schrieb Andrew Douglas Pitonyak: If I open a Base document and then close it, I can not delete the file. I need to exit OOo before I can delete the file. Is there anyway that I can really close the connection to the database

[dba-dev] Can not delete a previously opened Base document

2005-10-29 Thread Andrew Douglas Pitonyak
If I open a Base document and then close it, I can not delete the file. I need to exit OOo before I can delete the file. Is there anyway that I can really close the connection to the database? -- Andrew Pitonyak My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw My Book:

[dba-dev] Adding tables using SQL does not update a Base document immediately.

2005-10-29 Thread Andrew Douglas Pitonyak
I load a Base document. I add a table using a macro (and the API). The Base document shows the new tables. If my macro uses SQL to create the table, then the tables are not visible unless I close and re-open the document. Is there anyway to tell OOo to refresh its view of things from a macro?

Re: [dba-dev] create new form from scratch in BASIC

2005-10-29 Thread Andrew Douglas Pitonyak
Marc Santhoff wrote: Hi, I'm diggin to the new things in the base module and it's api: The form wizard shows how to create a new form from an url, it creates a temporary writer doc and inserts it in the DocumentDefinition wich in turn is inserted into the Forms container. What I'd like to do

[dba-dev] Re: [users] OO 2.0 Base

2005-10-24 Thread Andrew Douglas Pitonyak
a report, add in doc properties save it, then save the base document reopen the report the doc properties have been removed - is this a bug? Cheers Richard On Saturday 22 October 2005 06:00, Andrew Douglas Pitonyak wrote: Pere Castanyer Sarda wrote: -BEGIN PGP SIGNED MESSAGE

Re: [dba-dev] My Sql

2005-10-15 Thread Andrew Douglas Pitonyak
changed and not being a programmer, and not having any knowledge of Java, I am honestly limited to following prescribed steps. Thanks again Yannis O/H Andrew Douglas Pitonyak έγραψε: Γιάννης Παπαδόπουλος wrote: Hello, I would like to ask help concerning some problems I encounter with BASE

Re: [dba-dev] My Sql

2005-10-13 Thread Andrew Douglas Pitonyak
Γιάννης Παπαδόπουλος wrote: Hello, I would like to ask help concerning some problems I encounter with BASE. -When I import a My Sql db through ODBC it takes a long time to to load the tables and sometimes it crushes, greek characters are not displayed although the encoding of the source is

Re: [dba-dev] SQLite/RDF

2005-08-24 Thread Andrew Douglas Pitonyak
Because, so far, 100% of the people I've personally encountered who told me RDBMSes can't handle 'unstructured data' had little or no experience in relational database design. Probably there are exceptions, but from my perspective the very phrases unstructured data and semi-structured data

Re: [dba-dev] Strange behavior when loading a form using a macro.

2005-07-26 Thread Andrew Douglas Pitonyak
Thanks! Frank Schönheit - Sun Microsystems Germany wrote: Hi Andrew, 'oFormDoc = oFormDef.execute(sOpenMode, nCmd, eEmpty) ' Variable NOT defined 'oFormDoc = oFormDef.execute(sOpenMode, nCmd, oNull) ' Object Variable NOT set 'oFormDoc = oFormDef.execute(sOpenMode, nCmd, NULL) '