Line and Text on Report with no text or line control

  • Thread starter Thread starter NP
  • Start date Start date
N

NP

I want to draw a line at the first page only conditionally
of the report exactly as the below looks, without
putting/Inserting any additional line control or Text
control:

The line should be as any of the below :

____________________________Page
No.1______________________

OR

______________________________________________________Page
No.1

OR

Page
No.1___________________________________________________


Any one of the above can help to complete my need.

Generally the code used to draw a line I used :

If Me.Page=1 Then


Could any one , please advise for the above.
 
NP said:
I want to draw a line at the first page only conditionally
of the report exactly as the below looks, without
putting/Inserting any additional line control or Text
control:

The line should be as any of the below :

____________________________Page
No.1______________________

OR

______________________________________________________Page
No.1

OR

Page
No.1___________________________________________________


Any one of the above can help to complete my need.

Generally the code used to draw a line I used :

If Me.Page=1 Then


Use the report's Print and Line methods in the section's
Print event. Here's an example of something like you want:

Me.FontName = "Times New Roman"
Me.FontSize = 11
Me.FontBold = True
Me.Line (0, 99)-(2880, 99)
Me.CurrentX = 2880: Me.CurrentY = 0
Me.Print "Page"
Me.CurrentX = 0: Me.CurrentY = 266
Me.Print "No.1";
Me.Line (Me.TextWidth("No.1"), 350)-Step(2800, 0)

You'll have to set the various numbers to whatever positions
you need.
 
Back
Top