Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - add page #
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

add page #

 Post Reply Post Reply
Author
Message
moe188 View Drop Down
Senior Member
Senior Member


Joined: 27 March 2006
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote moe188 Quote  Post ReplyReply Direct Link To This Post Topic: add page #
    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
Back to Top
moe188 View Drop Down
Senior Member
Senior Member


Joined: 27 March 2006
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote moe188 Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2009 at 6:29pm
Any idea ?
please help....
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2009 at 9:37am
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....
Back to Top
moe188 View Drop Down
Senior Member
Senior Member


Joined: 27 March 2006
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote moe188 Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2009 at 4:16pm
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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2009 at 2:23pm

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
 &T  Time in 24-hour format

 &p  Current page number
 &P  Total number of pages

 &b  The text immediately following these characters as centered.
 &b&b    The text immediately following the first "&b" as centered, and the text following the second "&b" as right-justified.

 &w  Window title

 &&  A single ampersand (&)
 \n  new line marker

 
 
 
 
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....
Back to Top
moe188 View Drop Down
Senior Member
Senior Member


Joined: 27 March 2006
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote moe188 Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2009 at 4:43pm
Thank you very very very much, you are always there when needed.


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.