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

Joined: 19 Oct 2006 Posts: 3
|
Posted: Thu Oct 19, 2006 11:38 am Post subject: Autonumber in Writer |
|
|
Hi all,
I need to have a autonumber inserted in a bookmark.
The data (last number used) should be kept and updated in a text file.
I'm sure that this must be simple, but unfortunately, I'm not familiar (yet) with openoffice basic.
A sample code will be perfect.
Hagay |
|
| Back to top |
|
 |
hagaymandel Newbie

Joined: 19 Oct 2006 Posts: 3
|
Posted: Fri Oct 20, 2006 4:08 am Post subject: Iserted autonumber from text file |
|
|
| Folks please respond! |
|
| Back to top |
|
 |
RGB Super User


Joined: 25 Nov 2003 Posts: 1743 Location: In Lombardy, near a glass of red Tuscany wine
|
Posted: Fri Oct 20, 2006 4:18 am Post subject: |
|
|
| I'm not really sure about what you need, but under Insert -> Fields -> Others (Ctrl+F2) you can define a variable field. For example, insert "var" (without quotes) under name, and var+1 under value, click on "insert" and you are on the game. |
|
| Back to top |
|
 |
foxcole Super User


Joined: 19 Jan 2006 Posts: 2771 Location: Minneapolis, Minnesota
|
Posted: Fri Oct 20, 2006 5:19 am Post subject: Re: Iserted autonumber from text file |
|
|
| hagaymandel wrote: | | Folks please respond! |
Perhaps if you described what you're trying to accomplish in more detail, it would be easier to respond. An autonumber inserted IN a bookmark? In the same bookmark? What for?And what would trigger the increment? Maybe there's an easier way to go about meeting your needs. _________________ Cheers!
---Fox
WinXP Pro SP2, OOo Portable 2.3.1, OOo local 2.4 RC4
New OpenOffice forum: http://user.services.openoffice.org/en/forum/
Manuals: http://documentation.openoffice.org/manuals/index.html |
|
| Back to top |
|
 |
hagaymandel Newbie

Joined: 19 Oct 2006 Posts: 3
|
Posted: Fri Oct 20, 2006 8:12 am Post subject: Re: Iserted autonumber from text file |
|
|
| foxcole wrote: | | hagaymandel wrote: | | Folks please respond! |
Perhaps if you described what you're trying to accomplish in more detail, it would be easier to respond. An autonumber inserted IN a bookmark? In the same bookmark? What for?And what would trigger the increment? Maybe there's an easier way to go about meeting your needs. |
Thanks for the guideline Fox.
What I'm trying to do, is insert a auto-number to a text document.
I'm already able to read the last number (stored in a text file), and update it as well.
What I don't know, is how to insert this number, at the event of creation a new text document from a specific template, to a designated place in the document (template), something I used to do with a bookmark in MS-Word.
Thanks,
Hagay |
|
| Back to top |
|
 |
|