markdesign Posted August 3, 2001 Posted August 3, 2001 I am trying to create a Letter form. I have created a print script wich will take it to a form layout with the proper header on each page. All I need now is an automated field on top wich display "page 1 of 3" and "page 2 of 3" etc.... I am currently using <@@> to just put in page number but is not effective when faxing. Please help....
bobsmith Posted August 3, 2001 Posted August 3, 2001 If you are using a script to print you can add some script steps to acomplish this. Add field gPage (Global Number) add script steps Go to record/page (Last) Set field gPage = Status ( CurrentPageNumber ) You can add gPage to your footer <<@@>> of gPage
LiveOak Posted August 3, 2001 Posted August 3, 2001 I would propose a slight modifiction to the script: Enter Preview Mode() Go to record/page (Last) Set field (gPage, Status(CurrentPageNumber)) You must be in Preview Mode to access the page number of the last page. -bd
markdesign Posted August 3, 2001 Author Posted August 3, 2001 OMG!! Soo... simple yet so complicated. hehe.. Well, thanks to both of you, it worked GREAT!! But another problem came up with the technique that I didn't consider. When it goes into preview...it counts all the record, including the ones I am not currently printing. The way I did it before, I would type in manually "page 1 of 2", then from browse mode, I would just print "current record" in the print dialog. Now if it was up to me... I guess I would creat a long script where it would search for the part I am sending it to... but then if there are duplicate names that I am printing to...then it would print those as well... wich means I would have to give each letter a unique serial number to make it unique, and implement a long script to search that one number to isolate it in preview mode then print. After printing have it come back to original layout... But if I do that, when it comes back to the original layout, I would loose my original found set... hmm....(Just thinking out loud).. Please let me know if that sounds like the correctg approach... Until I see some feed back on this thread.. i'm going to try that. =P Mark~ [ August 03, 2001: Message edited by: markdesign ]
DykstrL Posted August 3, 2001 Posted August 3, 2001 Just add these 2 steps to LiveOak's script just before the Enter Preview Mode: Omit Record Show Omitted Records This will work unless you are working with a Found Set, in which case you would need: Show all records Omit Record Show Omitted Records
Recommended Posts
This topic is 8584 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now