>George,
>
>I ran across this thread below and, since you mentioned the Common Dialogs ActiveX control, I thought that you might be able to help. I have a similiar problem to the one below except I want to have the user select a Page Range of mailing labels to print. The LABEL command, of course, does not have the RANGE option.
>
>I have been doing a LABEL FORM .....TO PRINTER PROMPT but a
of users were missing the "Pages" option. I want to be able to add the FromPage and ToPage option in my own form instead of using the PRINTER PROMPT.
>
>I was hoping that the Common Dialog Control would be the ticket. I Programatically set Flags = 2, Min = 1, Max = 9999, PrinterDefault = .t., and then the FromPage and ToPage but this never gets passed on to the LABLE FORM...TO PRINTER command. It will always default to "All".
>
>Is there something that I am missing or is there some Window's setting that I can read or set other than what the Common Dialog Control has?
>
>Thanks for any help or suggestions you can pass my way.
>
Hi Ed,
I retrieve the values for the pages in the FromPage and ToPage properties. As Fred mentioned the REPORT command does have a RANGE clause that allows you to specify the page numbers. You might try using that instead, getting the values back from the Common Dialogs control. AFAIK, the only thing that it'll impact is the number of copies (which doesn't do much good in VFP< g >) and the default printer.
George
Ubi caritas et amor, deus ibi est