add page # |
Post Reply |
Author | |
moe188
Senior Member Joined: 27 March 2006 Status: Offline Points: 220 |
Post Options
Thanks(0)
Posted: 10 May 2009 at 6:21pm |
hi,
how can I be able to add the page # when I send the reportcontrol to the printer? thank you |
|
moe188
Senior Member Joined: 27 March 2006 Status: Offline Points: 220 |
Post Options
Thanks(0)
|
Any idea ?
please help.... |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
You can use:
wndReportControl.PrintOptions.Header.FormatString = "Page &p of &P"
or
wndReportControl.PrintOptions.Footer.FormatString = "Page &p of &P" For more options see help file.
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
moe188
Senior Member Joined: 27 March 2006 Status: Offline Points: 220 |
Post Options
Thanks(0)
|
thank you for the reply.
your code works just fine, but the only problem that I have now, is that I did have some details to show in the footer, but when I added your code "Footer" part, my details is gone: my code: wndReportControl.PrintOptions.Footer.TextLeft = Format(Date, "dddd, mmmm dd, yyyy") & vbLf & Time wndReportControl.PrintOptions.Footer.FormatString = "Page &p of &P" my report after adding the page at the bottom, the date is gone, please help !!! Thank you |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi, wndReportControl.PrintOptions.Footer.FormatString = "Date: &D Time: &T &b Page &p of &P"
Output:
wndReportControl.PrintOptions.Footer.FormatString = "Date: &D \nTime: &T &b Page &p of &P"
Output:
These are options to format strings in header / footer
&d Date in short format (as specified by Regional Settings in Control Panel)
&D Date in long format (as specified by Regional Settings in Control Panel) &t Time in the format specified by Regional Settings in Control Panel &p Current page number &b The text immediately following these characters as centered. &w Window title && A single ampersand (&) |
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
moe188
Senior Member Joined: 27 March 2006 Status: Offline Points: 220 |
Post Options
Thanks(0)
|
Thank you very very very much, you are always there when needed.
|
|
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 |