473,666 Members | 2,075 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5955
See Stephen Lebans page

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

Phil

"Rui Patinha" <rui_ponto_pati nha_em_universu s_pt> wrote in message
news:3f******** *************** @news.telepac.p t...
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_pati nha_em_universu s_pt> wrote in message
news:3f******** *************** @news.telepac.p t...
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**@stantonfa mily.co.uk> escreveu na mensagem
news:3f******** *************@m ercury.nildram. net...
See Stephen Lebans page

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

Phil

"Rui Patinha" <rui_ponto_pati nha_em_universu s_pt> wrote in message
news:3f******** *************** @news.telepac.p t...
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******** ***********@new ssvr32.news.pro digy.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_pati nha_em_universu s_pt> wrote in message
news:3f******** *************** @news.telepac.p t...
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
3593
by: Abhijeet Kumar | last post by:
Hi How can i justify align text on Label Control. I am working in C# Desktop application
2
2557
by: ReidarT | last post by:
Simple question. How do I justify (right-align) text a label in a web-form? regards reidarT
2
5226
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
2578
by: Mariame | last post by:
Hello Everyone Is there is anyway i can justify a label static content???????? Thx in Advance
4
1461
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
5155
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
1735
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 your help. tranky
5
2700
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" itemStyle-Width="100px" HeaderText="Amount Per Job" HeaderStyle-Font-Bold="true" ItemStyle-VerticalAlign="middle" ItemStyle-HorizontalAlign="right" > <itemtemplate> <asp:Label ID="JobBoardPriceDisplay" style="text-align:right" runat="server"/> </itemtemplate>
1
4893
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 Label widget: lblServer = Tkinter.Label(serverFrame, text='Server:', fg='black', justify='left', relief='groove') lblServer.place_configure(width=200, bordermode='inside')
0
8448
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8871
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8783
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8552
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8640
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7387
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
1776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.