Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rectangles Moving on List

Status
Not open for further replies.

Auguy

Programmer
May 1, 2004
1,206
US
I am attempting to produce an invoice report (RS 2000) that consists of a list with numerous rectangles. Each rectangle contains one or more textboxes that contain info such as billing address, mailing address, etc. One is a textbox with an expression from a varchar field in SQL. I have marked everything I can find as no grow and no shrink. When I view the reports in VB.Net 2003 windows form webbrowser control the rectangles move and no longer are in alignment. Has anybody experienced this or have any hints as to how to solve this issue? Am I possibly just missing a cangrow or canshrink? As far as I can tell, the reports look Ok in the report designer preview mode.

Auguy
 
ensure all cangrow properties are false for the textboxes and ensure that no rectangle or textbox is overlapping

One thing I have noticed in RS2000 is a nasty tendancy for textbox sizes to change when copied/pasted. If you have a 3cm x 0.5cm textbox and copy it, it regularly turns into a 3.01264365223534cm x 0.49867483454cm textbox. This can cause overlapping even if visually, the controls do not look like they are overlapping. Because RS2000 cannot cope with overlapping controls when rendering, it just moves them pretty arbitrarily where there is an overlap

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Thanks for the information, I will check the textbox sizes as I did copy some of them. One quick question, I do have rectangles within other rectangles, does that qualify as "overlapping"? Since the first post I think I have traced the problem to having 2 rectangles side by side each containing a textbox. The problem seems to occur when I try to make one of them and the contained textbox invisible.

Auguy
 
you should be ok with fully contained items (I think) - mostly seems to be caused by overlapping textboxes

Would suggest checking those 2 rectangles / textboxes very carefully for their position and size - rather than go off where they look like they are positioned, have a look at their position and size properties and do the math to see if they're overlapping (even by as little as 0.000001 cm)

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Remember, just because it looks right in the preview doesn't mean it will render properly in the web browser. I would definately take off the Can Shrink, Can Grow in all containers as well as all textboxes, etc. And, as xlbo said, check all the position properties.

Padding too can sometimes affect the look of things, so if it's still doing this after you've checked everything else, check that and the actual report sizes.



Catadmin - MCDBA, MCSA
"No, no. Yes. No, I tried that. Yes, both ways. No, I don't know. No again. Are there any more questions?"
-- Xena, "Been There, Done That"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top