473,804 Members | 2,673 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Making a shaded box to grow

I'm trying to get a report that will have something like the below
layout:

Item # Item Description Quantity Unit $ Total $

~~~~~~~~~~

The Item Description field is set to "can grow = Yes" so that if the
description is long it will wrap to another line.

What I'd like to do is put a shaded box in the columns for Unit_$ and
Total_$. So that the whole column is shaded.

Is there a way to tie in the Unit_$ and Total_$ to the Item
description and if Item Description grows, then Unit and total grow
too?

I tried placing a second Item Description field behind the Unit and
Total fields and shading the background and foreground to the gray
shading I wanted. On screen this works, but when printing to a
laser printer, it still printed the foreground text as black - thus,
overwriting the Unit and Total entries.

I tried grouping the 3 fields together, but this only works for moving
them, and does not seem to help when trying to accomplish what I'm
trying to accomplish.
Nov 12 '05 #1
2 2145
I think there is a demo called TextHeightWidth .mdb in Stephen Lebans page
which gives the height of a control after it has grown to the correct
height.
Maybe you can set the height of the unit price from this.

Phil
"Jayjay" <jj****@notmail .com> wrote in message
news:3f******** ********@news.c is.dfn.de...
I'm trying to get a report that will have something like the below
layout:

Item # Item Description Quantity Unit $ Total $

~~~~~~~~~~

The Item Description field is set to "can grow = Yes" so that if the
description is long it will wrap to another line.

What I'd like to do is put a shaded box in the columns for Unit_$ and
Total_$. So that the whole column is shaded.

Is there a way to tie in the Unit_$ and Total_$ to the Item
description and if Item Description grows, then Unit and total grow
too?

I tried placing a second Item Description field behind the Unit and
Total fields and shading the background and foreground to the gray
shading I wanted. On screen this works, but when printing to a
laser printer, it still printed the foreground text as black - thus,
overwriting the Unit and Total entries.

I tried grouping the 3 fields together, but this only works for moving
them, and does not seem to help when trying to accomplish what I'm
trying to accomplish.

Nov 12 '05 #2
Thank you very much for the pointer to Stephen's site, actually he has
something on his page that will create a vertical line through a report -
and essentially that is what I'm trying to do. Somewhere between that and
the text height, I should be able to make this work.
"Phil Stanton" <ph**@stantonfa mily.co.uk> wrote in message
news:3f******** *************@m ercury.nildram. net...
I think there is a demo called TextHeightWidth .mdb in Stephen Lebans page
which gives the height of a control after it has grown to the correct
height.
Maybe you can set the height of the unit price from this.

Phil
"Jayjay" <jj****@notmail .com> wrote in message
news:3f******** ********@news.c is.dfn.de...
I'm trying to get a report that will have something like the below
layout:

Item # Item Description Quantity Unit $ Total $

~~~~~~~~~~

The Item Description field is set to "can grow = Yes" so that if the
description is long it will wrap to another line.

What I'd like to do is put a shaded box in the columns for Unit_$ and
Total_$. So that the whole column is shaded.

Is there a way to tie in the Unit_$ and Total_$ to the Item
description and if Item Description grows, then Unit and total grow
too?

I tried placing a second Item Description field behind the Unit and
Total fields and shading the background and foreground to the gray
shading I wanted. On screen this works, but when printing to a
laser printer, it still printed the foreground text as black - thus,
overwriting the Unit and Total entries.

I tried grouping the 3 fields together, but this only works for moving
them, and does not seem to help when trying to accomplish what I'm
trying to accomplish.


Nov 12 '05 #3

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

Similar topics

2
1450
by: Stewart | last post by:
Originally posted in comp.lang.javascript: Newsgroups: comp.lang.javascript From: "Stewart" Date: 23 Aug 2005 02:50:04 -0700 Local: Tues, Aug 23 2005 10:50 am Subject: FireFox, RemoveChild, AppendChild, making width grow? Hi,
7
3131
by: msrado | last post by:
Hi All, I have a report in Microsoft Access 2000 that appears with standard blank font in a print preview and shaded grey font in a printout. I don't want it to be shaded and can't figure out how it got that way. This report is based on a simple query of the database. It is in landscape mode, but there's a lot of data and I have the margins set to 0.2" on the left and right. It's only a page long. The labels and text boxes on the...
85
3304
by: masood.iqbal | last post by:
I know that this topic may inflame the "C language Taleban", but is there any prospect of some of the neat features of C++ getting incorporated in C? No I am not talking out the OO stuff. I am talking about the non-OO stuff, that seems to be handled much more elegantly in C++, as compared to C. For example new & delete, references, consts, declaring variables just before use etc. I am asking this question with a vested interest. I...
9
3286
by: John Baro | last post by:
I wish to draw a line say 10px wide at a 45 degree angle (or any other angle) and have it shaded say from gray to red to gray again (or any other color). I can get the line by using a GraphicsPath object but cannot work out the shading part. Is this also possible for say a circle with an outside line width of 10px to be shaded from red to gray from the inside out around the circumference of the circle.
0
1270
by: Krish | last post by:
Hi all, I have a TreeView control on a windows form with checkboxes enabled. I am trying to make certain checkboxes have a checked and shaded status but I am unable to set a node's checkbox property to the Indeterminate status (since it appears to only take a bool and not a CheckState enum). Is there any way around this? Thanks! Krish
10
2124
by: Andrew Kidd | last post by:
I see this when I'm stepping through in the debugger ... just thought I'd ask, and I just know it's going to be one of those "Doh" moments, but it's got me foxed just now.
11
16306
by: Edson Peacock | last post by:
I have a report with sub reports, one of the subreports have 12 text boxes that are 2" high and I want them all to grow if one goes to 3" high. If anyone has any suggestions they are very much appreciated. Thanks
2
1695
by: andrew18 | last post by:
Hi All, Two questions: 1. Is it possible to make a floated div grow in width with its contents? I've been searching on the web for a way to make the width of a float grow with the width of its content, without success. There's loads of information about how to do this with heights, but I can't find anything that works for widths. Is it possible?
0
1097
by: aak | last post by:
Hi, I Am Working On A Simple Fixed Width Layout With Using Background Images. And I Want That Background Image Should Be Resizable With Every Resolution, And That Background Image Is Shaded. Now I Am Not Getting It That How I'll Place That Image & How I'll Place Text On It. Even I Am Searching In Google But I Am Not Get Anything Yet.
0
9706
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
10569
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
10325
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...
0
10075
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...
1
7615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
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();...
0
5519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.