addhtmlpos question


addhtmlpos question

Postby kpshende on Wed Apr 20, 2005 4:40 am

I am using following code to display the information and using addhtmlpos to display this information. Then I am using pagenumber function to display the pagenumber. But no matter what I do page number is displaying on the left hand side. I want to print the page number at the center of the page. How do I do this?
Following is the code :

dim signoff
signoff="<table border=""0"" width=""100%"" cellpadding=""0"" cellspacing=""0"">"
signoff = signoff & "<tr>"
if worktype="PM" then
signoff = signoff & "<td width=""100%"" align=""center"" valign=""center"">"
signoff = signoff & "<font face=""Ariel"" color=""#000000"" size=""2"">"
signoff = signoff & "<b>Lead craft signoff : </b></font></td>"

signoff = signoff & "<td width=""15%"" align=""left"" valign=""bottom"">"
signoff = signoff & "<br><img src=""" & imgline & """ height=""1"" width=""135""><font face=""Ariel"" color=""#000000"" size=""3"">"
else
signoff = signoff & "<td width=""100%"" align=""center"" valign=""center"">"
signoff = signoff & "<font face=""Ariel"" color=""#000000"" size=""2"">"
signoff = signoff & "<b>Lead craft Signoff : </b></font></td>"

signoff = signoff & "<td width=""15%"" align=""left"" valign=""bottom"">"
signoff = signoff & "<br><img src=""" & imgline & """ height=""1"" width=""135""><font face=""Ariel"" color=""#000000"" size=""3"">"
signoff = signoff & "<td width=""100%"" align=""center"" valign=""center"">"
signoff = signoff & "<font face=""Ariel"" color=""#000000"" size=""2"">"
signoff = signoff & "&nbsp;</font></td>"

signoff = signoff & "<td width=""100%"" align=""center"" valign=""center"">"
signoff = signoff & "<font face=""Ariel"" color=""#000000"" size=""2"">"
signoff = signoff & "<b>Requester's Signoff : </b></font></td>"

signoff = signoff & "<td width=""15%"" align=""left"" valign=""bottom"">"
signoff = signoff & "<br><img src=""" & imgline & """ height=""1"" width=""135""><font face=""Ariel"" color=""#000000"" size=""3"">"
end if

signoff = signoff & "</tr>"

signoff =signoff & "</table>"
PDF.AddHTMLPOs 60,650,signoff
PDF.AddHTMLpos 300,700, pagefooter(pagenumber)



function pagefooter(pagenumber)
dim footer
footer="<table border=""0"" width=""100%"" cellpadding=""4"" cellspacing=""0"">"
footer = footer & "<tr>"
footer = footer & "<td width=""100%"" align=""Center"" valign=""center"">"
footer = footer & "<font face=""Ariel"" color=""#000000"" size=""2"">"
footer = footer & "Page:&nbsp; "
footer = footer & pagenumber & "</font></td>"
footer = footer & "</tr>"
footer = footer & "</table>"
PDF.AddHTMLPOs 61,730,footer

end function
kpshende
 
Posts: 3
Joined: Thu Apr 08, 2004 6:19 pm

Return to PDF

Who is online

Users browsing this forum: No registered users and 1 guest

cron

Fatal error: Not able to open ./cache/data_global.php in D:\Hosting\6480136\html\ForosBB3\includes\acm\acm_file.php on line 106