From: Gary Miller on 19 Jan 2010 15:33 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 19 Jan 2010 17:10 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 20 Jan 2010 06:59 Gary I think of you use Setprinter() to a non-existant printer it should pop-up from memory! Phil McGuinness
From: DC on 20 Jan 2010 11:59 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 23 Jan 2010 20:39 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
|
Pages: 1 Prev: Combit List&Label together with VO Next: CDX numeric Seek (old problem?) |