Peter,
I may be wrong, but I don't think you can hook into Print dialog. If you can, it would be quite complicated code.
You do know how many pages you have by using _PAGETOTAL variable. However, I'm not sure how can you use this variable (may be your own dialog).
I believe (don't know for sure), that commercial products here in Downloads section can deal with this information...
>Hi,
>In the dialog box that opens when I click in the Print from the File menu or CRTL + P
>
>I Need to specify the total number os pages of a report in Print Range...
>The user sometimes wants to print only the last page of the report, but the print range allways defines the total number os pages to 65534.
>But to print only the last page the user has to know wich it is.
>
>Any ideia how to solve this problem in the dialog box ?
>
>Thanks in Advace.
>
>Peter
If it's not broken, fix it until it is.
My Blog