| View previous topic :: View next topic |
| Author |
Message |
wessen Newbie

Joined: 17 Feb 2006 Posts: 3
|
Posted: Fri Feb 17, 2006 3:23 am Post subject: Reading in all the text in VB |
|
|
Hi i'm very new to this, i been looking on the forms for ages and havn't found a solution, so i wonder if anyone can point me in the right direction?
I'm trying to read in all the text from a doc file using the open office writer and VB 6. i have managed to open the file but no idea how to get the text from it .
can someone show me how it's done? |
|
| Back to top |
|
 |
wessen Newbie

Joined: 17 Feb 2006 Posts: 3
|
Posted: Fri Feb 17, 2006 7:26 am Post subject: |
|
|
anyone? i just need to know the sub properties?
for example
Set oSearch = odoc.createSearchDescriptor
Set oResult = odoc.findAll(oSearch)
Dim text: text = oResult.? what goes here i have no idea i tryed gettext() text and everything i could find. i tryed looking for a guid that lists the sub properties, but still failed to find anything  |
|
| Back to top |
|
 |
B Marcelly Super User

Joined: 12 May 2004 Posts: 1414 Location: France
|
Posted: Fri Feb 17, 2006 8:39 am Post subject: |
|
|
You won't get anywhere guessing like this. You should learn API programming with Basic. The examples can easily be used in VB6+COM.
Read a good book or StarOffice 7 Software Basic Programmer's Guide. There is a link to it and other references at http://api.openoffice.org/TipsAndTricks/external.html _________________ Bernard
OpenOffice.org 1.1.5 fr / OpenOffice.org 3.4.1 en-US + langpacks, MS-Windows XP Home SP3
This forum is unusable, use instead Apache OpenOffice forums |
|
| Back to top |
|
 |
wessen Newbie

Joined: 17 Feb 2006 Posts: 3
|
Posted: Mon Feb 20, 2006 6:30 am Post subject: |
|
|
| well the good news i got what i wanted done by converting the file to html, then processing it form there using xml. the bad news is i still don't know how to do the first part. it's over now anyway thanks B Marcelly for link it may come in handy |
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
pitonyak Administrator


Joined: 09 Mar 2004 Posts: 3622 Location: Columbus, Ohio, USA
|
Posted: Mon Feb 20, 2006 9:28 am Post subject: |
|
|
Unless you learn at leat a little about what is going on, nothing will be useful....
| Code: | | MsgBox ThisComponent.getText().getString() |
_________________ --
Andrew Pitonyak
http://www.pitonyak.org/oo.php |
|
| Back to top |
|
 |
|