Reply
 
Thread Tools Display Modes
  #1   Report Post  
Indy
 
Posts: n/a
Default docproperty - number formatting

Hi, how do I format the DocProperty output for numbers? For example, I have
a field that gives the version number of the document (based on a custom
property), it displays as 2.20000000000000, is there a switch I can use to
just display it as 2.2.

When I look at the Custom Property under File - Properties, the version
displays correctly as 2.2. But when outputting to a field, it displays as
2.20000000000000.

Thanks in advance
  #2   Report Post  
Indy
 
Posts: n/a
Default

I figured it out, I had a look at
http://office.microsoft.com/en-au/as...862261033.aspx and modified
that field example to suit my document. I used: DOCPROPERTY Version0 \##.#

This formats it to 2.2 and gets rid of the excess 0's.


"Indy" wrote:

Hi, how do I format the DocProperty output for numbers? For example, I have
a field that gives the version number of the document (based on a custom
property), it displays as 2.20000000000000, is there a switch I can use to
just display it as 2.2.

When I look at the Custom Property under File - Properties, the version
displays correctly as 2.2. But when outputting to a field, it displays as
2.20000000000000.

Thanks in advance

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Different alignment formatting for header & page number on same line Dave New Users 4 August 4th 05 06:18 PM
loss of phone number formatting when merged macropod Mailmerge 2 April 1st 05 08:35 AM
table of contents and page number formatting no1impt Microsoft Word Help 3 February 22nd 05 06:53 PM
How do I maintain number formatting in a mail merge? Skittles Mailmerge 1 January 28th 05 03:22 AM
Formatting Issue on Number Field Brig Mailmerge 2 January 26th 05 02:18 PM


All times are GMT +1. The time now is 03:31 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"