From: Gary Miller on
Still using RP 2. I'm reusing the "print export" button on the report pro
preview window for emailing of reports. How can I call the "print" method
that shows the user the windows print manager dialog? RpReport:Print()
sends it directly to the printer without showing the windows print manager.

Thanks,
Gary


From: Stephen Quinn on
Gary

> Still using RP 2. I'm reusing the "print export" button on the report pro
> preview window for emailing of reports. How can I call the "print" method
> that shows the user the windows print manager dialog? RpReport:Print()
> sends it directly to the printer without showing the windows print
> manager.

IIRC you need to subclass the dialog (preview window) and provide your own
print method to call the windows print dialog with the appropriate
parameters.

The RP print() method is embedded/hard coded in the runtime where you cannot
change it.

CYA
Steve


From: Sherlock on
Gary

I think of you use Setprinter() to a non-existant printer it should
pop-up from memory!

Phil McGuinness
From: DC on
On 19 jan, 21:33, "Gary Miller" <g...(a)lucero.com> wrote:
> Still using RP 2.  I'm reusing the "print export" button on the report pro
> preview window for emailing of reports.  How can I call the "print" method
> that shows the user the windows print manager dialog?  RpReport:Print()
> sends it directly to the printer without showing the windows print manager.
>
> Thanks,
> Gary

If I well undestand the question you have two ways to do that :

* you can call the ShowPrintDLG() of the RpReport class.

* you can also set the PromptForPrintDlg property of the PrinterDevice
object of the RpReport class to TRUE.

Daniel
From: Geoff Schaller on
Gary,

I'm with Steve here - you can simply override the classes with your own
methods and not show the dialog.

Geoff



"Gary Miller" <gary(a)lucero.com> wrote in message
news:XGo5n.905$KQ5.361(a)newsfe07.iad:

> Still using RP 2. I'm reusing the "print export" button on the report pro
> preview window for emailing of reports. How can I call the "print" method
> that shows the user the windows print manager dialog? RpReport:Print()
> sends it directly to the printer without showing the windows print manager.
>
> Thanks,
> Gary