Hi,
I'm currently doing something else mostly and somewhat out of thinking
UNO, so I need a little help before digging the specs or xray'ing too
much.
I took the source Frank provided for kicking off the copy table wizard
and tried naivly:
Sub Main
Dim oDestDesc as Object
oDestDesc = createDataAccessDescriptor()
oDestDesc.DataSourceName = "Spielwiese"
' oSourceDesc.ConnectionResource =
"sdbc:dbase:file://g:/office/dba24d/user/database/biblio"
oDestDesc.CommandType = com.sun.star.sdb.CommandType.TABLE
oDestDesc.Command = "Masse"
Dim oSourceDesc as Object
oSourceDesc = createDataAccessDescriptor()
oSourceDesc.DatabaseLocation =
"file:///e:/Daten/Dokumente/OOo_DB/Massendaten/datagen7.txt"
Dim oWizard as Object
oWizard =
getDefaultContext().getServiceManager().createInstanceWithArgumentsAndContext( _
"com.sun.star.sdb.application.CopyTableWizard", Array(
oSourceDesc, oDestDesc ), _
getDefaultContext() )
Dim oListener as Object
oListener = createUnoListener( "CopyTable_",
"com.sun.star.sdb.application.XCopyTableListener" )
oWizard.addCopyTableListener( oListener )
oWizard.execute
End Sub
... omitting listener and creation function here ...
You see: I swapped source and destination and wanted to use a CSV file
for input. When the wizard is to be created an error is reported:
css.sdbc.SQLException
"The connection to the external datasource could not be established. No
SDBC driver was found for the given URL"
How do I have to change or complete the parameter values for the source
to make it work?
TIA,
Marc
--
Top 10 things likely to be overheard if you had a
Klingon Programmer:
10) Specifications are for the weak and timid!
6) Klingon function calls do not have 'parameters' - they have
'arguments'
- and they ALWAYS WIN THEM.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]