Hi,
I want to add page numbers to the banner text using the PXC_Document.PlaceHeadersAndFooters method? I could not find anything on the help site as well as the forum. Can you provide some sample code on how to do this?
Regards,
M
How to add page numbers using PlaceHeadersAndFooters?
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
-
- User
- Posts: 101
- Joined: Fri Sep 18, 2015 9:49 pm
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: How to add page numbers using PlaceHeadersAndFooters?
Hello mmasood,
If you are talking about the automatic page numeration, like the End-User Editor does, then use the same macros as you would use in the Headers And Footers dialog. For example:
Cheers,
Alex
If you are talking about the automatic page numeration, like the End-User Editor does, then use the same macros as you would use in the Headers And Footers dialog. For example:
Code: Select all
RightHeaderText = "<<1 of n>>";
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 101
- Joined: Fri Sep 18, 2015 9:49 pm
Re: How to add page numbers using PlaceHeadersAndFooters?
Hi Alex,
I am using Core API 6.0.319.0. I tried setting the text like you mentioned above but it just prints out the text itself instead of the page number.
Regards,
M
I am using Core API 6.0.319.0. I tried setting the text like you mentioned above but it just prints out the text itself instead of the page number.
Regards,
M
-
- User
- Posts: 101
- Joined: Fri Sep 18, 2015 9:49 pm
Re: How to add page numbers using PlaceHeadersAndFooters?
Hi Alex,
Any update on this? Following is the code that I am using:
Regards,
M
Any update on this? Following is the code that I am using:
Code: Select all
Set pIndex = pAInt.CreateBitSet(pageCount)
pIndex.Set 0, pageCount
Dim kfz As IPXC_HeaderAndFooterParams
Set kfz = pInst.CreateHeaderAndFooterParams
kfz.CenterHeaderText = "<<1 of n>>"
pDoc.PlaceHeadersAndFooters pIndex, kfz
M
-
- Site Admin
- Posts: 6815
- Joined: Mon Oct 15, 2012 9:21 pm
- Location: London, UK
Re: How to add page numbers using PlaceHeadersAndFooters?
Hi mmasood,
Alex is currently off celebrating the Orthodox Christmas, as with the rest our Ukrainian office, but we'll try to get an update for you within the next day or so.
Thanks,
Alex is currently off celebrating the Orthodox Christmas, as with the rest our Ukrainian office, but we'll try to get an update for you within the next day or so.
Thanks,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com