Page numbers not showing up in print preview |
Post Reply |
Author | |
Mike Lewis
Groupie Joined: 29 April 2009 Status: Offline Points: 41 |
Post Options
Thanks(0)
Posted: 14 September 2009 at 4:29am |
I'm using the ActiveX Report Control, version 13.1.
I'm trying to print "Page x of y" in the footer of a printed report. I have set PrintOptions.Footer.TextLeft to "Page &p of &P". In both the printout and the preview, these characters are interpreted literally, that is, the control actually prints "Page &p of &P". Can anyone tell me what I should do to have these characters interpreted as page number and no. of pages? Everything else in print preview seems to be working OK. Thanks in advance. Mike |
|
Mike Lewis
Software Developer Edinburgh, Scotland |
|
joeliner
Senior Member Joined: 09 June 2006 Status: Offline Points: 273 |
Post Options
Thanks(0)
|
Hi,
Try
.footer.FormatString = "Page &p of &P"
regards
|
|
Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3 Language: Visual Basic 6 SP6 |
|
Mike Lewis
Groupie Joined: 29 April 2009 Status: Offline Points: 41 |
Post Options
Thanks(0)
|
Joeliner, you've delivered the good yet again. It works perfectly. Thanks.
Now, is there any way to specify that the footer will appear to the left, right or centre (like you can with Footer.TextLeft, etc)? Mike |
|
Mike Lewis
Software Developer Edinburgh, Scotland |
|
joeliner
Senior Member Joined: 09 June 2006 Status: Offline Points: 273 |
Post Options
Thanks(0)
|
Hi
try
Reportcontrol.Printoptions.footer.FormatString = "Copyright" & " &b &b " & "Pages &p of &P"
regards,
Joel
|
|
Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3 Language: Visual Basic 6 SP6 |
|
Mike Lewis
Groupie Joined: 29 April 2009 Status: Offline Points: 41 |
Post Options
Thanks(0)
|
Many thanks, Joel. That's exactly what I needed.
Mike |
|
Mike Lewis
Software Developer Edinburgh, Scotland |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
Guys - I was sure that this simple tag set (like &p, &D...) presented in documentation.
|
|
Mike Lewis
Groupie Joined: 29 April 2009 Status: Offline Points: 41 |
Post Options
Thanks(0)
|
Mark,
I found the spec for .TextLeft, etc. in the Help, but I didn't think to look for .FormatString. I discovered the use of &p etc. by looking at the dialogue (the one produced by .ShowPrintPageSetup). As always, the information was present in the documentation, but I had no way of knowing where to find it. Mike |
|
Mike Lewis
Software Developer Edinburgh, Scotland |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |