Rick
Tue Dec 02 12:04:49 CST 2003
Altman,
A quote from Cathy Pountney's book "The Visual FoxPro=A9 Report Writer: =
Pushing it to the Limit and Beyond" (available at =
http://www.hentzenwerke.com/).=20
"If you'd rather have the Print button prompt the user for a printer, =
use a combination of the TO PRINTER PROMPT and PREVIEW clauses as =
follows.
REPORT FORM MyReport TO PRINTER PROMPT PREVIEW
Using these clauses together causes the Print button to display the =
Print dialog, from which the user can choose a printer, set some printer =
properties, select the range of pages, and select the number of copies. =
When combining these clauses, you must place the PREVIEW clause after =
the TO PRINTER PROMPT clauses. If you attempt to reverse the order, =
you'll get an error."
Rick
"Altman" <NotGiven@SickOfSpam.com> wrote in message =
news:uRHgfaPuDHA.1680@TK2MSFTNGP12.phx.gbl...
> OK how do I get the prompt to work on a preview, I can't get it to =
work?? I
> thought it only works when you go straight to the printer.
>=20
>=20
> "Villi Bernaroli" <a@b.c> wrote in message
> news:ec9vj9OuDHA.2224@TK2MSFTNGP09.phx.gbl...
> > Altman wrote:
> > > I have a customer trying to print multiple copies of a report.
> > They
> > > can pull up the print setup box and change the number of copies
> > but
> > > it will always print out one. Is there any way to print out
> > multiple
> > > copies of a report without having to go into the report 20
> > times and
> > > hitting print 20 times?
> >
> > Your software must have some particular routines that work on the
> > "number of copies", otherwise the user setting that number in the
> > windows' printer dialog box would make it print that exact number
> > of copies.
> > CHeck your report printing code.
> >
> > Another hint: try to add the PROMPT ... PREVIEW keywords to your
> > "REPORT FORM ... " command: this causes your report to appear in
> > preview and clicking on the print button in the report toolbar
> > (the one with navigation buttons to browse through pages) will
> > show a printer prompt where the user can set the number of
> > copies.
> > If this works, maybe you have special code for the printing
> > REPORT FORM command.
> >
> > Villi
> >
> >
>=20
>