Print Page | Close Window

Page numbers not showing up in print preview

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=15164
Printed Date: 15 November 2024 at 4:02am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Page numbers not showing up in print preview
Posted By: Mike Lewis
Subject: Page numbers not showing up in print preview
Date 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



Replies:
Posted By: joeliner
Date Posted: 14 September 2009 at 7:28am
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


Posted By: Mike Lewis
Date Posted: 14 September 2009 at 8:35am
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


Posted By: joeliner
Date Posted: 14 September 2009 at 8:44am
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


Posted By: Mike Lewis
Date Posted: 14 September 2009 at 8:47am
Many thanks, Joel. That's exactly what I needed.

Mike


-------------
Mike Lewis
Software Developer
Edinburgh, Scotland


Posted By: mdoubson
Date Posted: 15 September 2009 at 8:33pm
Guys - I was sure that this simple tag set (like &p, &D...) presented in documentation.

-------------
Mark Doubson, Ph.D.


Posted By: Mike Lewis
Date Posted: 16 September 2009 at 2:21am
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net