Page 1 of 1

PageNumber(Center Align) & CurrentDate(Left Align) in Footer

PostPosted: Thu Jan 19, 2012 2:24 am
by sureshbabubv
Dear All,

My Requirement is as shown below.

Each page should have a footer with a left justified date field (ie today’s date), a centered Page number (Example: Page 7) and a right justified Report Title ( Ex:"My Test report"), for right now the report name can be taken as a command line parameter

Please help me how to do the same.

Thanks & Regards,
B.V.Suresh Babu.

Re: PageNumber(Center Align) & CurrentDate(Left Align) in Fo

PostPosted: Mon Jan 23, 2012 12:27 pm
by jason
Not sure what you are asking for here.

Do you know how to do what you want in Word?

Have you looked at the resulting XML?

If you are trying to create that XML programmatically with docx4j, which bit are you having trouble with?

I'm not here to do all your work for you...

Re: PageNumber(Center Align) & CurrentDate(Left Align) in Fo

PostPosted: Tue Jan 24, 2012 2:05 am
by sureshbabubv
Hi Jason,

I am a new guy to docx4j. My intention is not to give inconvenience to you with my requests.

I resolved this as per the solution u have given for my previous question.

I added the footer to a normal word file and then unzipped it, fetched the code and used that code in my application.

Thanks & Regards,
B.V.Suresh Babu.