473,394 Members | 1,944 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,394 software developers and data experts.

Auto Extending Verticle Lines

Hello,

In Report Design View in the Detail Section I have several vertical
lines that I would like to autoextend with the length of the detail
section. This is becasue I have a memo field that "Can Grow" so that
it can fit all the information that the users input.

If anyone knows how to do this for the lines that would be greatly
appreciated. Thanks,

--Jason Coleman

Jun 4 '07 #1
4 4488
On Jun 4, 11:28 am, colemanj4 <colema...@gmail.comwrote:
Hello,

In Report Design View in the Detail Section I have several vertical
lines that I would like to autoextend with the length of the detail
section. This is becasue I have a memo field that "Can Grow" so that
it can fit all the information that the users input.

If anyone knows how to do this for the lines that would be greatly
appreciated. Thanks,

--Jason Coleman
This will be really tricky:

for each vertical line, create two textboxes with the memo field as
ControlSource. It is important that both have same CanGrow, CanShrink,
Width and Height properties;
Drag&drop both to the same place, with just some pixels horizontal
difference between them;
The textbox in background, define its backColor and bordercolor to
black;
The textbox in foreground, backColor and borderColor = Transparent or
white;
Voilą. You have a vertical line, witch widht corresponds to the
horizontal difference between fore and back textboxes.

I told you it would be tricky!

Jun 4 '07 #2
Wow! That works perfectly! Thanks a lot!

--Jason Coleman

On Jun 4, 2:16 pm, spier <spie...@yahoo.comwrote:
On Jun 4, 11:28 am, colemanj4 <colema...@gmail.comwrote:
Hello,
In Report Design View in the Detail Section I have several vertical
lines that I would like to autoextend with the length of the detail
section. This is becasue I have a memo field that "Can Grow" so that
it can fit all the information that the users input.
If anyone knows how to do this for the lines that would be greatly
appreciated. Thanks,
--Jason Coleman

This will be really tricky:

for each vertical line, create two textboxes with the memo field as
ControlSource. It is important that both have same CanGrow, CanShrink,
Width and Height properties;
Drag&drop both to the same place, with just some pixels horizontal
difference between them;
The textbox in background, define its backColor and bordercolor to
black;
The textbox in foreground, backColor and borderColor = Transparent or
white;
Voilą. You have a vertical line, witch widht corresponds to the
horizontal difference between fore and back textboxes.

I told you it would be tricky!

Jun 4 '07 #3
colemanj4 <co*******@gmail.comwrote in
news:11**********************@w5g2000hsg.googlegro ups.com:
Wow! That works perfectly! Thanks a lot!

--Jason Coleman

On Jun 4, 2:16 pm, spier <spie...@yahoo.comwrote:
>On Jun 4, 11:28 am, colemanj4 <colema...@gmail.comwrote:
Hello,
In Report Design View in the Detail Section I have several
vertical lines that I would like to autoextend with the
length of the detail section. This is becasue I have a memo
field that "Can Grow" so that it can fit all the
information that the users input.
If anyone knows how to do this for the lines that would be
greatly appreciated. Thanks,
--Jason Coleman

This will be really tricky:

for each vertical line, create two textboxes with the memo
field as ControlSource. It is important that both have same
CanGrow, CanShrink, Width and Height properties;
Drag&drop both to the same place, with just some pixels
horizontal difference between them;
The textbox in background, define its backColor and
bordercolor to black;
The textbox in foreground, backColor and borderColor =
Transparent or white;
Voilą. You have a vertical line, witch widht corresponds to
the horizontal difference between fore and back textboxes.

I told you it would be tricky!

Please ignore my other post there is an issue in it that I
forgot about, where sometimes the line gets it size before the
field that grows. This is correct code to draw 2 vertical lines
that size based on another control's size

Private Sub Detail_Print(Cancel As Integer, PrintCount As
Integer)
Dim x1 As Integer, x2 As Integer
dim x3 as integer, x4 as integer
dim y1 As Integer,y2 As Integer
dim C as long

x1 = Me.txtcanGrow.Left
x2 = Me.txtcanGrow.Left + Me.txtcanGrow.Width
x3 = me.txtanother.left
x4 = me.txtanother.left + me.txtanother.width

y1 = Me.txtcanGrow.Top
y2 = Me.txtcanGrow.Top + Me.txtcanGrow.Height
c = RGB(0,0,0)

Me.Line (x1, y1)-(x1, y2),c
Me.Line (x2, y1)-(x2, y2),c
Me.Line (x3, y1)-(x3, y2),c
Me.Line (x4, y1)-(x4, y2),c

End Sub

alternately, the last four lines can become
Me.Line (x1, y1)-(x2, y2),c, B 'this draws a box.
Me.Line (x3, y1)-(x4, y2),c, B 'this draws a box.

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Jun 6 '07 #4
colemanj4 <co*******@gmail.comwrote in
news:11**********************@w5g2000hsg.googlegro ups.com:
Wow! That works perfectly! Thanks a lot!

--Jason Coleman

On Jun 4, 2:16 pm, spier <spie...@yahoo.comwrote:
>On Jun 4, 11:28 am, colemanj4 <colema...@gmail.comwrote:
Hello,
In Report Design View in the Detail Section I have several
vertical lines that I would like to autoextend with the
length of the detail section. This is becasue I have a memo
field that "Can Grow" so that it can fit all the
information that the users input.
If anyone knows how to do this for the lines that would be
greatly appreciated. Thanks,
--Jason Coleman

This will be really tricky:

for each vertical line, create two textboxes with the memo
field as ControlSource. It is important that both have same
CanGrow, CanShrink, Width and Height properties;
Drag&drop both to the same place, with just some pixels
horizontal difference between them;
The textbox in background, define its backColor and
bordercolor to black;
The textbox in foreground, backColor and borderColor =
Transparent or white;
Voilą. You have a vertical line, witch widht corresponds to
the horizontal difference between fore and back textboxes.

I told you it would be tricky!
There is a much simpler way, using a little visual basic code in
the On_Format event of the section (detail, I presume).

Just copy the me.ctlMemoThatGrows..height property, to the
..height each vertical line that needs to grow.
Me.Line1.Height = Me.Memo.Height
--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Jun 6 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: thomanjl | last post by:
My current problem I'm having with the verticle scroll bar is actually with the scroll box. I have set the min and max of the scroll bar to -32767 and 32767 respectivly. When I scroll to the end...
5
by: Robert Downes | last post by:
I'm using the following in a page that I'm testing in Mozilla: p.actionLinkBlock {border: 1px #000000 dashed; padding: 0.2cm; width: auto} But the dashed border is extending to the right-edge...
18
by: day | last post by:
I know I've seen this issue described before, but I can't find it, or the solution now that I need it. I have some css-specified floating divs that contain images or text. The text divs have a...
11
by: csomberg | last post by:
SQL 2000 I thought I would throw this out there for some feedback from others. I'd like to know if you feel using MS auto-increment field is a good solution these days or should one grow their...
15
by: Tamblyne | last post by:
This problem has got to have a simple solution and I can't be the first person who has ever handled it. Perhaps Google is no help because I'm not using the right terms? (I did find one post...
4
by: Matt | last post by:
Hi, I've been thinking about how to do this, but can't think of a solution. I have a class that is derived from System.Web.UI.WebControls.DataGrid which works a treat, but I'd like to extend...
3
by: Robin Tucker | last post by:
Hi there, I have this really frustrating problem with Visual Studio (Microsoft Visual Basic .NET 2003 69586-335-0000007-18843). I have got used to using the autocomplete and auto indent...
4
by: Ian Richardson | last post by:
Hi, The function I've put together below is a rough idea to extend a SELECT list, starting from: <body> <form name="bambam"> <select id="fred"> <option value="1">1</option> <option...
3
by: bullines | last post by:
Greetings! I'm interested in extending what's available in the .NET framework with regards to globalization and localization. I've read many articles that discuss extending so that a datasource...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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...
0
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...
0
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...

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.