Access violation when adding printer...
This is more of a bug report. Open the report designer and add a new printer
while the designer is open (make sure the added printer is set as default
printer). After this is done, press the print button on the preview pane.
You will get an access violation in ppPDlg, line 405 (RB 6.03). If the
printer is not set as default, no error occurs, but it does not show up in
the printer selection until the application is restarted.
Cheers, Marco...
-------------------------------------------------------------------
Marco Heine
QUMAS
Enterprise Compliance Management
Visit our Website: www.qumas.com
while the designer is open (make sure the added printer is set as default
printer). After this is done, press the print button on the preview pane.
You will get an access violation in ppPDlg, line 405 (RB 6.03). If the
printer is not set as default, no error occurs, but it does not show up in
the printer selection until the application is restarted.
Cheers, Marco...
-------------------------------------------------------------------
Marco Heine
QUMAS
Enterprise Compliance Management
Visit our Website: www.qumas.com
This discussion has been closed.
Comments
ppPrinters.Refresh to the Report.BeforePrint event. Add ppPrintr to your
uses clause. RB gets the printer info from the windows registry. We have no
timing to know when this is changed when RB is running in an application. RB
caches the available printers, and calling ppPrinters.Refresh will clear
this cache and retrieve the printer list again.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
it yourself when the printing button is pressed in the preview screen?
Cheers, Marco...
-------------------------------------------------------------------
Marco Heine
QUMAS
Enterprise Compliance Management
Visit our Website: www.qumas.com
is printed, which isn't the most efficient thing to do, that's all.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com