variable line height and multiple reports

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a shipping report that needs 7 lines vertically. The lines must fill
the entire detail section about 5.5 inches.
I have been able to use Me.Line (7.125 * 1440, 0)-Step(0, Me.Height * 1440)
in the print event, but that leaves me two problems.
1st, how do I grow that last line to fill the detail section?
2nd, this report feeds from a form that allows my user to choose multiple
shipping customers tickets to print at once, but with the above code, my
report wants to print all items on only the first customer's ticket.
We have been using preprinted report forms, I'm trying to do away with the
dot matrix printer! All my code has been working until I try to use the lines.
 
Patricia said:
I have a shipping report that needs 7 lines vertically. The lines must fill
the entire detail section about 5.5 inches.
I have been able to use Me.Line (7.125 * 1440, 0)-Step(0, Me.Height * 1440)
in the print event, but that leaves me two problems.
1st, how do I grow that last line to fill the detail section?
2nd, this report feeds from a form that allows my user to choose multiple
shipping customers tickets to print at once, but with the above code, my
report wants to print all items on only the first customer's ticket.
We have been using preprinted report forms, I'm trying to do away with the
dot matrix printer! All my code has been working until I try to use the lines.


I don't understand the second problem, maybe the report s
not filtered correctly??

You use of the Line method is rather odd. Try this:

Me.Line (7.125 * 1440, 0)-Step(0, Me.Section(0).Height)
or
Me.Line (7.125 * 1440, 0)-Step(0, 20000)
 
You were right about the filtering. That's been corrected. However, I need
the vertical lines to go all the way down through the detail section even if
it is not filled with information. Neither of those code snipets work to draw
the line through blank details. Any way to do that?
I'm thinking to count lines, maybe write code to force invisible filling of
the detail to its max?
 
Patricia said:
You were right about the filtering. That's been corrected. However, I need
the vertical lines to go all the way down through the detail section even if
it is not filled with information. Neither of those code snipets work to draw
the line through blank details. Any way to do that?
I'm thinking to count lines, maybe write code to force invisible filling of
the detail to its max?


There is only one detail section so I am confused by what
you mean by "blank details". Maybe you mean that you want
the lines drawn on the paper where there are no details.

If that's what you're thinking, then you need to use the
Page event, which can draw lines anywhere on the page
(within the margins). You might want to try using the
PrintLines code at www.lebans.com, especially if some of the
detail records can grom and cross page boundaries.
 
Back
Top