469,927 Members | 1,469 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

How to justify a label?

Hello,

I have a label in a report that is filled up with text from a query.

The problem is that I need to justify the alignment, but not as it does by
default... let me try to clear this...

if I get a 5 line text from the query, all the lines have the label width,
even if the last line just have 1 word! I tryed to put spaces after the
text, but it doesn't do the trick. If I put underscores and spaces
alternatively, it works, but looks awful!!!

I just want the same formating ms word have for justified text.

How can i do this?

thanks,
Rui Patinha
Nov 12 '05 #1
4 5396
See Stephen Lebans page

http://www.lebans.com/xjustifytext.htm

Phil

"Rui Patinha" <rui_ponto_patinha_em_universus_pt> wrote in message
news:3f***********************@news.telepac.pt...
Hello,

I have a label in a report that is filled up with text from a query.

The problem is that I need to justify the alignment, but not as it does by
default... let me try to clear this...

if I get a 5 line text from the query, all the lines have the label width,
even if the last line just have 1 word! I tryed to put spaces after the
text, but it doesn't do the trick. If I put underscores and spaces
alternatively, it works, but looks awful!!!

I just want the same formating ms word have for justified text.

How can i do this?

thanks,
Rui Patinha

Nov 12 '05 #2
See if this will help. It works with textboxes, not labels, but may be able to get you
started or you may be able to replace your label with a text box. A little formatting on
the box and you should be able to make it look like a label.

http://www.lebans.com/justidirect.htm

--
Wayne Morgan
Microsoft Access MVP
"Rui Patinha" <rui_ponto_patinha_em_universus_pt> wrote in message
news:3f***********************@news.telepac.pt...
Hello,

I have a label in a report that is filled up with text from a query.

The problem is that I need to justify the alignment, but not as it does by
default... let me try to clear this...

if I get a 5 line text from the query, all the lines have the label width,
even if the last line just have 1 word! I tryed to put spaces after the
text, but it doesn't do the trick. If I put underscores and spaces
alternatively, it works, but looks awful!!!

I just want the same formating ms word have for justified text.

How can i do this?

thanks,
Rui Patinha

Nov 12 '05 #3
Hi!

Thank you for the tip! first i was nervous because the second i ran the
setup, i got a *wonderful* blue-screen... but then i registered the .ocx and
it work great!

Thanks
Rui Patinha

"Phil Stanton" <ph**@stantonfamily.co.uk> escreveu na mensagem
news:3f*********************@mercury.nildram.net.. .
See Stephen Lebans page

http://www.lebans.com/xjustifytext.htm

Phil

"Rui Patinha" <rui_ponto_patinha_em_universus_pt> wrote in message
news:3f***********************@news.telepac.pt...
Hello,

I have a label in a report that is filled up with text from a query.

The problem is that I need to justify the alignment, but not as it does by default... let me try to clear this...

if I get a 5 line text from the query, all the lines have the label width, even if the last line just have 1 word! I tryed to put spaces after the
text, but it doesn't do the trick. If I put underscores and spaces
alternatively, it works, but looks awful!!!

I just want the same formating ms word have for justified text.

How can i do this?

thanks,
Rui Patinha


Nov 12 '05 #4
Hi,

I looked at the code, and realized that i needed to use all the code in the
class... (right?)

anyway... i used the xjustifytext from the same site and it work fine!

thanks,
Rui Patinha

"Wayne Morgan" <co***************************@hotmail.com> escreveu na
mensagem news:CT*******************@newssvr32.news.prodigy. com...
See if this will help. It works with textboxes, not labels, but may be able to get you started or you may be able to replace your label with a text box. A little formatting on the box and you should be able to make it look like a label.

http://www.lebans.com/justidirect.htm

--
Wayne Morgan
Microsoft Access MVP
"Rui Patinha" <rui_ponto_patinha_em_universus_pt> wrote in message
news:3f***********************@news.telepac.pt...
Hello,

I have a label in a report that is filled up with text from a query.

The problem is that I need to justify the alignment, but not as it does by default... let me try to clear this...

if I get a 5 line text from the query, all the lines have the label width, even if the last line just have 1 word! I tryed to put spaces after the
text, but it doesn't do the trick. If I put underscores and spaces
alternatively, it works, but looks awful!!!

I just want the same formating ms word have for justified text.

How can i do this?

thanks,
Rui Patinha


Nov 12 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Abhijeet Kumar | last post: by
2 posts views Thread by ReidarT | last post: by
2 posts views Thread by ReidarT | last post: by
2 posts views Thread by Mariame | last post: by
4 posts views Thread by sara | last post: by
4 posts views Thread by cashdeskmac | last post: by
5 posts views Thread by tranky | last post: by
5 posts views Thread by tshad | last post: by
1 post views Thread by Dude | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.