| View previous topic :: View next topic |
| Author |
Message |
Master Guest
|
Posted: Wed Mar 31, 2004 6:35 am Post subject: Something to be included in this project?? |
|
|
Hello,
it is difficult for me to tell what I want in english so I write it in german, and hope somebody can understand it.
Also folgendes:
Wir setzen bei uns einen Formulardruckserver ein, den wollen wir abschaffen und jetzt ist die Frage ob man in einem Formular von OpenOffice eine Funktion einbauen könnte das wenn ein bestimmter Text in einer bestimmten Schriftart und Größe in diesem Formular zu finden ist das er mir dann einen Kopfbogen einfügt, den man vorher sozusagen als Anhang dem Formular hinzugefügt hat.
Es soll wie folgt funktionieren.
Ich gebe in meinem Formular den Text "hallo" ein. Wenn ich dann auf Drucken gehe dann soll er mir das Bild "hallo.jpg" an eine bestimmte Stelle setzen.
Ich hoffe es hat jemand verstanden.
I'm sorry that i can't explain this in english but my school english is not the best.
Greetings |
|
| Back to top |
|
 |
Master Guest
|
Posted: Thu Apr 01, 2004 6:33 am Post subject: |
|
|
I translated the text above with a translation program. Now I hope somebody can understand it.
We use a form printing server, which we want to abolish. The question is: In one form of OpenOffice should be a function inserted which looks if a certain text in a certain character font and size is in it, if this is true then the function should add me a picture which i have linked with this certain text. The picture I want to be added by this function maybe is included into the form, when the form was built.
The function should do something like the following:
I enter the text "hello" in my form. If I then on press the print button the function should add the picture "hallo.jpg" to a certain place in the document.
Please don't laugh at my english  |
|
| Back to top |
|
 |
MasterTH Newbie

Joined: 31 Mar 2004 Posts: 3
|
Posted: Tue Apr 06, 2004 6:13 am Post subject: |
|
|
| Did somebody understand my question?? |
|
| Back to top |
|
 |
The Liquidator Super User


Joined: 27 Feb 2003 Posts: 1368 Location: Manchester, UK
|
Posted: Tue Apr 06, 2004 7:28 am Post subject: |
|
|
Basically you are looking to automate the importation of files (eg graphics) into your documents?
I would not know personally how to accomplish this, but it sounds like something that would require a macro. No doubt someone will come along soon who will have an idea of how or if, it can be done.
Ian |
|
| Back to top |
|
 |
MasterTH Newbie

Joined: 31 Mar 2004 Posts: 3
|
Posted: Tue Apr 06, 2004 10:23 pm Post subject: |
|
|
| if I realise this with a macro the problem would be that the Image i want to import have to be on the local machine. Maybe I understand something wrong, but is it possible to import the image from a place on our network?? |
|
| Back to top |
|
 |
erikanderson3 OOo Advocate

Joined: 25 Feb 2004 Posts: 332 Location: San Francisco peninsula
|
Posted: Tue Apr 06, 2004 10:59 pm Post subject: |
|
|
I could be totally mistaken, but given that OOo uses URLs internally for file locations, I'd think it would be no real problem to use an image from anywhere on your network. Or does anyone else know otherwise?
Cheers,
Erik |
|
| Back to top |
|
 |
MasterTH Newbie

Joined: 31 Mar 2004 Posts: 3
|
Posted: Tue Apr 13, 2004 3:37 am Post subject: |
|
|
| maybe somebody can tell me how the macro has to look like because i dont know a lot about coding a makro with oobasic |
|
| Back to top |
|
 |
erikanderson3 OOo Advocate

Joined: 25 Feb 2004 Posts: 332 Location: San Francisco peninsula
|
Posted: Tue Apr 13, 2004 6:35 am Post subject: |
|
|
Some good basic introductions to Basic:
Actually, you might just want to browse around on http://development.openoffice.org/index.html, but the above are kind of the highlights for beginners to OOo Basic.
Cheers,
Erik |
|
| Back to top |
|
 |
|