473,782 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[Report] Change Section Height

Hi and Good Sunday.

Have i any way to Reduce at Runtime, with
no change on Design View, the Height property
of Detail_Section on my Report.....?

The Section Property is Read_Only but if
i encrease one Control inside with
ctl.Height>Sect ion.Height
automatically the Section adapt the Height
to englobe the control.....!
This is not a good way, but Work, only on Step_UP.

I look for any way to Step_Down the Section_Size
No trought DesigneTime.

Thanks

--
@Alex (Alessandro Baraldi)
---------------------------------------------------------------------------
http://www.sitocomune.com/
http://www.mantuanet.it/alessandro.baraldi/
---------------------------------------------------------------------------
Nov 13 '05 #1
4 5386
Every report section has a Format property. Click in detail, and create a
format event:

Private Sub Detail_Format(C ancel As Integer, FormatCount As Integer)
' Change the height here
Me.Detail.Heigh t = ' value
End Sub
Darryl Kerkeslager

"ALESSANDRO Baraldi" <ik****@libero. it> wrote in message
news:cj******** **@lacerta.tisc alinet.it...
Hi and Good Sunday.

Have i any way to Reduce at Runtime, with
no change on Design View, the Height property
of Detail_Section on my Report.....?

The Section Property is Read_Only but if
i encrease one Control inside with
ctl.Height>Sect ion.Height
automatically the Section adapt the Height
to englobe the control.....!
This is not a good way, but Work, only on Step_UP.

I look for any way to Step_Down the Section_Size
No trought DesigneTime.

Thanks

--
@Alex (Alessandro Baraldi)
-------------------------------------------------------------------------- - http://www.sitocomune.com/
http://www.mantuanet.it/alessandro.baraldi/
-------------------------------------------------------------------------- -

Nov 13 '05 #2
My question would be, what are you trying to accomplish. If you simply want
to adjust for differing amounts of data in Text Boxes within the Section,
and there is no other control aligned alongside that Text Box, set the
CanShrink and CanGrow properties of the Text Box _and_ the Section to Yes.
That will automatically grow- or shrink-to-fit.

If there is some other reason for doing so, Darryl has correctly pointed out
that you can modify the Detail.Height property in the Format (and, I think,
also in the Print) event.

Larry Linson
Microsoft Access MVP


"ALESSANDRO Baraldi" <ik****@libero. it> wrote in message
news:cj******** **@lacerta.tisc alinet.it...
Hi and Good Sunday.

Have i any way to Reduce at Runtime, with
no change on Design View, the Height property
of Detail_Section on my Report.....?

The Section Property is Read_Only but if
i encrease one Control inside with
ctl.Height>Sect ion.Height
automatically the Section adapt the Height
to englobe the control.....!
This is not a good way, but Work, only on Step_UP.

I look for any way to Step_Down the Section_Size
No trought DesigneTime.

Thanks

--
@Alex (Alessandro Baraldi)
-------------------------------------------------------------------------- - http://www.sitocomune.com/
http://www.mantuanet.it/alessandro.baraldi/
-------------------------------------------------------------------------- -

Nov 13 '05 #3
> "ALESSANDRO Baraldi" <ik****@libero. it> wrote in message
news:cj******** **@lacerta.tisc alinet.it...
Hi and Good Sunday.

Have i any way to Reduce at Runtime, with
no change on Design View, the Height property
of Detail_Section on my Report.....?

The Section Property is Read_Only but if
i encrease one Control inside with
ctl.Height>Sect ion.Height
automatically the Section adapt the Height
to englobe the control.....!
This is not a good way, but Work, only on Step_UP.

I look for any way to Step_Down the Section_Size
No trought DesigneTime.

Thanks

"Darryl Kerkeslager" <Ke*********@co mcast.net> ha scritto nel messaggio
news:SI******** ************@co mcast.com... Every report section has a Format property. Click in detail, and create a
format event:

Private Sub Detail_Format(C ancel As Integer, FormatCount As Integer)
' Change the height here
Me.Detail.Heigh t = ' value
End Sub
Darryl Kerkeslager


Hi Darryl.
Thanks for Replay.
I need to poit to Heigt property from an External Form
that i Use to properly format my Preview Control at Runtime.
So i check the Section Property of my Control and need
to Reduce it if too many space is inside it....!
I build an External Formatting_Form to give to the user
the capability of Full formatting Report.

I try to use your suggestion..... !

Bye
@Alex (Alessandro Baraldi)
---------------------------------------------------------------------------
http://www.sitocomune.com/
http://www.mantuanet.it/alessandro.baraldi/
---------------------------------------------------------------------------
Nov 13 '05 #4
"Larry Linson" <bo*****@localh ost.not> ha scritto nel messaggio
news:ugK5d.1717 $ku4.1650@trndd c01...
My question would be, what are you trying to accomplish. If you simply want to adjust for differing amounts of data in Text Boxes within the Section,
and there is no other control aligned alongside that Text Box, set the
CanShrink and CanGrow properties of the Text Box _and_ the Section to Yes.
That will automatically grow- or shrink-to-fit.

If there is some other reason for doing so, Darryl has correctly pointed out that you can modify the Detail.Height property in the Format (and, I think, also in the Print) event.

Larry Linson
Microsoft Access MVP

Thanks for Replay.
I build an External Reports Formatting_Form to give to the user
the capability of Full formatting Report.
Reguard your question my replay is Yes, i need only to Reduce
to the Min_Size the Section Height, so i think that your Suggestion
can be perfect.

I'll Try immediatly.

Thank
--
@Alex (Alessandro Baraldi)
---------------------------------------------------------------------------
http://www.sitocomune.com/
http://www.mantuanet.it/alessandro.baraldi/
---------------------------------------------------------------------------
Nov 13 '05 #5

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

Similar topics

4
3577
by: John Baker | last post by:
Hi: Stuck on another thing. On a report I am creating, I want to make the detail section one line vertically. However, in design view, I click on the page Footer Bar ,grab it with the "double arrow and cross", and try to move it up and while it moves, as soon as I release it jumps back to its original position. For some reason the property "height" for the detail section is stuck at a minimum of .5833". The height will go LARGER but...
2
4092
by: Martin | last post by:
Hi, I have an Access 97 report that mimics an official UK Covernment Customs document, with Page Headers and Footers presenting static data for each page (logos etc). The report is made up (typically) of several lines of detail data, with a few summary lines at the foot of these. I am (nearly) achieving the right "look and feel" by presenting the line items in the Report Detail section and the summary lines in the Report Footer BUT...
0
3529
by: Bill Short | last post by:
I have a subreport in the detail section of the main report. The subreport is set to CanGrow. I am using the Me.Line method (thanks to Stephen Lebans) to create vertical lines that fill in between bottom of the subreport and the top of the footer section. I have this code working with the one problem. When I open the detail section up to the size I need for the lines to touch the lines that begin at 0.0" of the footer section the report...
3
2163
by: terragrub | last post by:
I found some code that works great to creat empty rows of boxes on a report from the end of the data to the bottom of the report. Now, I can't seem to find the original message to post a question on that thread. The code is as follows. In the Report OnFormat section the I use the following. Private Sub Report_Page()
2
3483
by: jess | last post by:
Hi, Im using the following code to make a new report based on an existing report. Set rpt = CreateReport(, "_SemiAnnualMaster") The problem that I am running into is that none of the report controls are coming across. All I end up with is a blank report. So, I manually copied all the Labels, Text boxes etc across..
13
14943
by: Greg | last post by:
Most suggestions on this topic recommend to use a page footer and make it visible only on the last page. My problem is that the footer is half of the height of a page which means the detail would show on only the top half of each page with whitepace at the bottom of each page. How can I get the detail to fill each page with my "half page height" report footer at the bottom of the last page? Any suggestions to solve this would be...
7
13413
by: NJonge01 | last post by:
Hi, I'd like to produce a report that basically looks like an excel printout. Description: Profile Print Report Detail Section with 3 bordered text boxes all text boxes are 'abutted' against each other (where one ends, the next begins) all text boxes have the 'can grow' property set to yes. Detail Section with 'can grown' = yes
1
3298
by: replyrpatil | last post by:
What I am trying to do: I need to print a compact access report (font 6 size) created using RTF2 program developed by Stephen Lebans to generate a TIF image of custom size (5.5 in x 2.0 in) Problem Recreation : Download attached RAR file (http://download.yousendit.com/627919383AFAA7E3 ) Steps 1) Install RTF2 program created by Lebans 2) Install ZAN Image Printer (Virtual Printer) 3) Create Custom Paper Size ----...
2
2775
by: NJonge01 | last post by:
Hi, I have a report that should conditionally show some objects on the Report Header. These are the lowest objects in that section and they're not always necessary depending on where I'm opening the report from. My code to conditionally set some objects to .Visible = False is working well. However, the Report Header is not "shrinking", it is just leaving the large empty space. Even if I try to conditionally change the height using...
0
9641
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
9480
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
9944
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
8968
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...
1
7494
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
6735
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
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3643
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.