manipulating headers / footers through API?
Niels Fanøe
NFA at maconomy.dk
Wed Jan 11 03:50:05 PST 2006
Hi Jakob,
Can't you manipulate the markers "Header/Footer $1" and "Header/Footer $2" instead, and just include those markers in the footer?
I've made a FrameScript program that does this in order to create footers for an index, so I guess you can do that with the API. Might prove easier.
Best regards,
Niels
> -----Original Message-----
> From: framers-bounces+nfa=maconomy.dk at lists.frameusers.com
> [mailto:framers-bounces+nfa=maconomy.dk at lists.frameusers.com]
> On Behalf Of Jakob Fix
> Sent: 11. januar 2006 12:25
> To: Framers List
> Subject: manipulating headers / footers through API?
>
> Hello,
>
> I'm currently exploring the feasibility to modify/update what
> is displayed in the running footer through an API client
> which reads information from an initialization file, and
> updates the footer accordingly, like this:
>
> maker.ini
> ----------------8<----------------8<----------------
> [MyInitSection]
> initfile = TestInit.ini
>
> TestInit.ini
> ----------------8<----------------8<----------------
> [Publication1]
> FooterCenter="DRAFT"
> FooterBinding="January 2006"
>
>
> Now, it can't be very hard to read these configuration
> settings from within an API client. However, what I'm
> currently struggling with is how to access the footer of my
> document. So far, I've found this:
>
> FO_MasterPage
> -> FP_PageFrame (which is a FO_UnanchoredFrame)
> -> FP_FirstGraphicInFrame and then
> -> FP_NextGraphicInFrame (apparently TextFrames are "graphics")
> -> use this object's objId with F_ApiGetText
> -> and then F_ApiDeleteText and F_ApiAddText
>
> All this comes from reading the FDK reference and the FDK
> Guide. As I said I'm investigating this because we may hire a
> programmer to do this (and more), but I'm no C++ programmer
> myself, so testing out the above would take me quite some time.
>
> BTW, we're currently updating the information in the footer
> through text insets located in a separate file (I guess that
> this may be your first suggestion to "do it another way"),
> but we'd like to centralize information like this in one
> easy-to-manage configuration text file for each publication.
>
> Thanks in advance.
> --
> cheers,
> Jakob.
> _______________________________________________
>
>
> You are currently subscribed to Framers as NFA at maconomy.dk.
>
> To unsubscribe send a blank email to
> framers-unsubscribe at lists.frameusers.com
> or visit
> http://lists.frameusers.com/mailman/options/framers/nfa%40maconomy.dk
>
> Send administrative questions to lisa at frameusers.com. Visit
> http://www.frameusers.com/ for more resources and info.
>
More information about the framers
mailing list