Too Many Devices attached - Can add but how to remove?
We have a custom viewer, and also print the same report
one page or all pages - when we go through the process we
assign the publisher
FPrinterDevice.Publisher := FMedicalReport.Publisher;
FMedicalReport.PrintToDevices;
but if we do it several times it winds up with say 4 devices
in the devices array in the RB source code. This I believe
then causes the RB not to print. It is complicated too follow.
The bottom line is it will print at first but not after a while.
When I say print I mean it appears to pour the report into
the printer but it nver comes out...
Because we wind up with 4 devices attached
to the printer device I assume its getting confused
and would like to remiove all the attached devices - but
I can find no command to do this
help -
D5 RB 6.03
Frank
one page or all pages - when we go through the process we
assign the publisher
FPrinterDevice.Publisher := FMedicalReport.Publisher;
FMedicalReport.PrintToDevices;
but if we do it several times it winds up with say 4 devices
in the devices array in the RB source code. This I believe
then causes the RB not to print. It is complicated too follow.
The bottom line is it will print at first but not after a while.
When I say print I mean it appears to pour the report into
the printer but it nver comes out...
Because we wind up with 4 devices attached
to the printer device I assume its getting confused
and would like to remiove all the attached devices - but
I can find no command to do this
help -
D5 RB 6.03
Frank
This discussion has been closed.
Comments
but not free it? Make a call after PrintToDevices:
FPrinterDevice.Publisher := FMedicalReport.Publisher;
FMedicalReport.PrintToDevices;
FPrinterDevice.Publisher := nil;
This way everytime you assign a report to print, you can print it and then
disconnect the device.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com