Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
FYI for those who've had the same issue I have just asked for assistance with. I have resolved the issue and yes indeedie it can be done without upgrading, a third party product, or printing to a PDF.
Using the same logic of setting a Private nOffset = 0 and incrementing nOffset = nOffset + _PageNo. When Printing consecutive reports and continuing page numbers from report to report.
EXAMPLE :: As in the following when Printing:
Private nOffset
nOffset = 0
= SYS(1037)
*!* REPORT 1
IF RECCOUNT("c_summary")<1
else
REPORT FORM youreportnamehere.frx NOCONSOLE TO PRINTER
nOffset = nOffset + _pageno
ENDIF
*!* REPORT 2
IF RECCOUNT("c_summary")<1
else
REPORT FORM youreportnamehere.frx NOCONSOLE TO PRINTER
nOffset = nOffset + _pageno
ENDIF
*!* REPORT 3 etc. etc
IF RECCOUNT("c_summary")<1
else
REPORT FORM youreportnamehere.frx NOCONSOLE TO PRINTER
nOffset = nOffset + _pageno
ENDIF
SOLVED WITH :: My solution was as follows:
In a right click event of a command button:
PUBLIC nOffset
nOffset = 0
*!* Report 1
IF RECCOUNT("c_reportdata")<1
else
REPORT FORM youreportnamehere.frx PREVIEW
nOffset = nOffset + _pageno
ENDIF
*!* Report 2
IF RECCOUNT("c_reportdata")<1
else
REPORT FORM youreportnamehere.frx PREVIEW
nOffset = nOffset + _pageno
ENDIF
*!* Report 3 and etc. etc.
IF RECCOUNT("c_reportdata")<1
else
REPORT FORM youreportnamehere.frx PREVIEW
nOffset = nOffset + _pageno
ENDIF
RELEASE nOffset
This effectively put the correct page number upon the preview of each of my reports with no hassle. As long as in the report control that displayed the page number the following line was used.
"Page"+space(1)+alltrim(str(_pageno + nOffset))
I have to give thanks to the suggestions here on the UT but through some trial and error and a little help from Cathy Pountney's book I've solved my own issue. Hopefully, if anyone needs this information what I've provided herin will help tremendously.
Thanks,
Steve
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement