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

Joined: 28 Nov 2008 Posts: 4
|
Posted: Fri Nov 28, 2008 4:43 am Post subject: |
|
|
Does the MyTemplateDoc.odt which you have in your code need to contain anything specific?
If so, maybe you can also post the MyTemplateDoc.odt here? |
|
| Back to top |
|
 |
cash1981 Newbie

Joined: 28 Nov 2008 Posts: 4
|
Posted: Fri Nov 28, 2008 4:56 am Post subject: |
|
|
I get this error when I try to run the program.
I have created the odt file, and pointed the file in main.
| Code: |
java.lang.Exception: com.sun.star.comp.helper.BootstrapException: no office executable found!
at test.odf.WriterDoc.createDoc(WriterDoc.java:125)
at test.odf.WriterDoc.main(WriterDoc.java:666)
|
|
|
| Back to top |
|
 |
manicaesar Newbie

Joined: 14 Dec 2008 Posts: 1 Location: Poland
|
Posted: Sun Dec 14, 2008 1:38 pm Post subject: Where to find imports |
|
|
| kvelentz wrote: | import com.sun.star.xml.dom.XDocument;
unoil.jar in the subfolder program/classes of your OOo installation directory. |
Yes, but also you have to add juh.jar (com.sun.star.helper package) and ridl.jar (many packages) if you want ALL imports from this code to work. (These jars can also be found in subfolder mentioned above)
Have anybody an idea where to find these jars in OpenOffice 3.0 ?
-- self response: subfolder Basis/program/classes  |
|
| Back to top |
|
 |
chek Newbie

Joined: 08 Mar 2010 Posts: 1
|
Posted: Mon Mar 08, 2010 10:15 am Post subject: repeating the text template |
|
|
hi guys
I'm new in OOoForum.org and in OO developpment
your example has inspired mer to developpe an application that creates word document based on template docs.
my problem is that I want to repeat the template text as many times as the number of records returned from a database query
so can you help me please |
|
| Back to top |
|
 |
KeesVanElst General User


Joined: 19 Apr 2010 Posts: 14 Location: Netherlands
|
Posted: Fri Jul 09, 2010 2:41 am Post subject: |
|
|
Now this is stuff that's getting me in the right direction
Hopefully it will be possible to compile a beginners tutorial with examples like these because OOo's Development learning curve is pretty steep.
I'd like to contribute to something like that in the near future but I'm still struggling with interface interception in remote context.
Cheers Rob |
|
| Back to top |
|
 |
Parikshit Newbie

Joined: 16 Jul 2010 Posts: 1
|
Posted: Sun Jul 18, 2010 9:52 pm Post subject: |
|
|
when i m trying to save generated document with
public void saveDoc(
XDocument document,
String saveFile,
DocumentFormatEnum format,
boolean overwrite) throws java.lang.Exception
method
it gives me errors
java.lang.NullPointerException
at com.cc.common.util.WriterDoc.saveDoc(WriterDoc.java:529)
at com.cc.common.util.WriterDoc.main(WriterDoc.java:681)
at this code
storable.storeAsURL(saveFileURL, properties);
please if anyone help me is appreciable. |
|
| Back to top |
|
 |
araLDAM General User

Joined: 28 Sep 2010 Posts: 5 Location: Sri Lanka
|
Posted: Mon Dec 06, 2010 10:31 pm Post subject: New Chart Type |
|
|
Hello robg..
First i want to Thank you in advance for the example of creating a chart in writer document.
Now i am going to create a new chart style which is not available in Open Office called surface charts. I have done some initial works regarding the source data extraction from a calc document. So can you give some guidance about a generic way of creating a new chart style.
I use java for implementations. _________________ ***ara |
|
| Back to top |
|
 |
disslexik Newbie

Joined: 20 Aug 2011 Posts: 2
|
Posted: Wed Aug 24, 2011 2:20 pm Post subject: basic version |
|
|
Hi Danny,
Great post - very useful. Do you know if there is something similar written in basic anywhere?
Best,
Neil. |
|
| Back to top |
|
 |
|