473,385 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 5904
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Abhijeet Kumar | last post by:
Hi How can i justify align text on Label Control. I am working in C# Desktop application
2
by: ReidarT | last post by:
Simple question. How do I justify (right-align) text a label in a web-form? regards reidarT
2
by: ReidarT | last post by:
Simple question How do I right justify ( right-align) text in a label on a web-form? regards reidarT
2
by: Mariame | last post by:
Hello Everyone Is there is anyway i can justify a label static content???????? Thx in Advance
4
by: sara | last post by:
Hi to all i have a data entry web form with a lot of labels that is aligment i want to justify the text of those label to be of same width as a newspaper the labels are htmlcontrol thanks
4
by: cashdeskmac | last post by:
I want to justify the text in a label control so that all of the text fills the label equally, but there don't seem to be any properties to set to allow this. Can anyone help?
5
by: tranky | last post by:
Hi... ....i've a problem. I want to justify a label text, it is possible? I want to align text to the right but also to the left. There's a way to do it? Do you know any function? Thank you for...
5
by: tshad | last post by:
I have a datagrid that I cannot get to right justify a money amount (which is just a label). No matter what I do - it still right justifies it. <asp:TemplateColumn Visible="true"...
1
by: Dude | last post by:
Hi All, I am fairly new to Python programming. I am working on a small Tkinter project and I think I am missing something, maybe you can help. The two lines below is all I have related to the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.