View Single Post
  #15  
Old December 9th, 2008, 08:36 PM posted to microsoft.public.visio.general
WapperDude
external usenet poster
 
Posts: 589
Default Visio 2007 has an extra space added to every line of composed

2nd attempt at this post --

Here's an FYI that I just stumbled across:
http://blogs.msdn.com/visio/archive/...18/704811.aspx

In the content of this blog is the following comment: "Finally Visio
(starting in 2003) terminates text with a non-visible character. Note that
this final character is not reported when using the Shape.Text property, but
it is reported using Shape.Characters.Text."

It would appear that this is intentional, and not a "bug".

Wapperdude



"Paul Herber" wrote:

On Wed, 26 Nov 2008 09:56:55 -0800 (PST), wrote:

Has anyone noticed a bug in Visio 2007, that every line of composed
text ("theText") in every text block has a space character at the end,
which cannot be deleted (although it can be selected, and shows up
whenever the text as a whole is selected)? This makes TEXTWIDTH()
return a size that is larger than the actual composed text, by exactly
one space character's width. (I've tested this with several different
fonts and different text sizes.) The extra width at the end of the
text line shows up whether or not there is a char. return at the end
of the line.

I do not know whether this bug shows up in Visio 2003. It does NOT
show up in Visio 2002. Thus, shapes whose dimensions are dependent on
TEXTWIDTH(theText) will appear larger in Visio 2007 than they do in
Visio 2002.

Has anyone reported this bug? Does anyone know if Microsoft is working
on it?


Looks fine to me, I've just tried setting a shape's width cell to
"=textwidth(TheText)" and it sizes correctly as far as I can tell.
Have you set the text block margins to 0?


--
Regards, Paul Herber, Sandrila Ltd.
http://www.electronics-packages.sandrila.co.uk/