Link to home
Start Free TrialLog in
Avatar of ANTHONY CHRISTI
ANTHONY CHRISTIFlag for United States of America

asked on

Expanding all fields using can grow when printing

Three Fields.  Question #; Question ID and Question.

The Question can grow = Yes.  How can I have the other 2 fields expand when the Question Field expands.  Right now I am getting gaps in the print alignment,  The height of the question is larger than the other 2 fields.  Thank you.
Avatar of jerryb30
jerryb30
Flag of United States of America image

Can you post a screen shot? Maybe of what you are getting, and what you would like to get.
Avatar of Helen Feddema
You can get the height of the expanded control in the Detail_Print event, and make the other controls the same height.  Here is some code that makes a green line the same height as an expanded control:

Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)

   Dim sngTop As Single
   Dim sngLeft As Single
   Dim sngHeight As Single
   Dim sngBottom As Single

   sngTop = Me![txtNotes].Top
   sngHeight = Me![txtNotes].Height
   sngLeft = 2300
   sngBottom = sngTop + Me![txtNotes].Height

   Me.DrawStyle = 6
   Me.DrawWidth = 12
   Me.Line (sngLeft, sngTop)-(sngLeft, _
      sngBottom), RGB(0, 255, 0)

End Sub

Open in new window

Avatar of ANTHONY CHRISTI

ASKER

I have attached a sample report.  I want all fields to be the same Height as the Question
Missed attachment
I am attaching a file for review
Test.pdf
Did anyone get a chance to review and solve my problem?
Can you post your report in a db?
A copy of the DB is attached.  Trying to align all field to same size if question which is Can Grow is expanded.
Copy-for-Experts.accdb
I have been working on this. Thought it would be simpler. Hope this is not something needing quick resolution.
OK, thanks
ASKER CERTIFIED SOLUTION
Avatar of Jeffrey Coachman
Jeffrey Coachman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I understand your answer to my question and it makes sense.  I have decided not to persue  and accept the way it is currectly printed.  Thanks