Naomi,
Thanks, but I tried using _PAGETOTAL but it doesnt work also.
Im looking to see if using mscomdlg.commondialog it will work.
loComDialog = createobject("mscomdlg.commondialog")
loComDialog.CancelError = .f.
loComDialog.Copies=1
loComDialog.Orientation=2
loComDialog.Min=0
loComDialog.Max=30
loComDialog.FromPage=5
loComDialog.ToPage=5
loComDialog.ShowPrinter()
I newer tryed to print a report this way, and how to make a change from the default printer dialog for this one when user clicks in the printer icon in the toolbar when in preview mode I dont´t know and have no ideia where to start.
Thanks.
>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