Focal Point
Reset page number in compound PDF Report

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1921000842

September 21, 2007, 05:31 PM
UC_Mark
Reset page number in compound PDF Report
I've been searching the forum and haven't had much luck in finding an answer. I have a compound PDF report that contains two reports. I want to have the second report start with page one, so if the user prints the PDF it will look like two seperate reports.

Here is sample using CAR.

TABLE FILE CAR
HEADING
"This is report one"
"Page: TABPAGENO"
PRINT RCOST
BY COUNTRY
ON TABLE PCHOLD FORMAT PDF OPEN
END
-RUN

TABLE FILE CAR
HEADING
"This is report two - page number should start over"
"Page: TABPAGENO"
PRINT RCOST
BY CAR
ON TABLE PCHOLD FORMAT PDF CLOSE
END
-RUN

Less than symbol removed from message for TABPAGENO.

Thanks in advance for the response.

Mark

WF 7.1.3 on WinXP/IIS
September 21, 2007, 05:41 PM
Leah
Are you meaning the pages adobe assigns? Don't know as you can.


Leah
September 21, 2007, 07:58 PM
FortuneCookie
This worked for me on my 7.1.7 Reporting Server

SET FOCFIRSTPAGE= 1
-RUN
TABLE FILE CAR
HEADING
"This is report one"
"Page: TABPAGENO"
PRINT RCOST
BY COUNTRY
ON TABLE PCHOLD FORMAT PDF OPEN
END
-RUN

SET FOCFIRSTPAGE= 1
-RUN
TABLE FILE CAR
HEADING
"This is report two - page number should start over"
"Page: TABPAGENO"
PRINT RCOST
BY CAR
ON TABLE PCHOLD FORMAT PDF CLOSE
END
-RUN
September 24, 2007, 10:55 AM
UC_Mark
Thanks for the feedback. I am looking to start each seperate report at page one, with the understanding the report pages number will be different than what Adobe indicates.

I tried the suggested code, and it is not working for me. I did a search in tech support and found this to be a problem in 5.2.x, so my thought is that it still was not fixed in 7.1.3
http://techsupport.informationbuilders.com/known_problems/92571114.html

I did some searching on FOCFIRSTPAGE and found a couple of ideas to get around this problem, and I'll give them a try.

Thanks,
Mark