Page Numbers
Hello.
I need to create a report with different pages number and is not necessary that initial page start in 1 (initial page and total pages are defined by the user). Also the page number format must be E-0001, E-002 depending of the page number. I had created a report with a page header and one TfrMemoview, this TfrMemoView will display a variable called Folio, at this moment I can assign an integer value to this variable but I can't assign a string value. Well I need your help to solve the following problems:
- How can I assign a string value into my variable folio.
- How can I create and print all pages defined by the user.
- I am using the child band beforeprint event to create a newpage but this instruction is creating pages without control, how can a declare how many pages I want to create?
Thank you very much for your help and excuse my spanglish.
I need to create a report with different pages number and is not necessary that initial page start in 1 (initial page and total pages are defined by the user). Also the page number format must be E-0001, E-002 depending of the page number. I had created a report with a page header and one TfrMemoview, this TfrMemoView will display a variable called Folio, at this moment I can assign an integer value to this variable but I can't assign a string value. Well I need your help to solve the following problems:
- How can I assign a string value into my variable folio.
- How can I create and print all pages defined by the user.
- I am using the child band beforeprint event to create a newpage but this instruction is creating pages without control, how can a declare how many pages I want to create?
Thank you very much for your help and excuse my spanglish.
Comments
take a look to the str function
ej. folio := 'E'+ [str(mypagenumber)];
to create controled new pages you can use this script
totalnewpages := number defined any ware in the fr report definition
for t := 1 to totalnewpages do begin
new page
end;
make sure your child is not positioned inside a master data band or detail band. beacuase this script be execute each time the band iterate.
Thank you very much for your explanation, it really help me and my report is working now.