default print preview dialog
Hi,
How can I prevent the default print preview form from appearing. I have a
TppViewer on my form and want all print previews to go there (which is what
happens) but the default viewer is also launched so I actually end up with 2
print previews. I am using the Print method as opposed to PrintToDevices.
I'm using print because I can't get the AutoSearchDialog to appear when I
use PrintToDevices.
Thanks
Jo Beaven
How can I prevent the default print preview form from appearing. I have a
TppViewer on my form and want all print previews to go there (which is what
happens) but the default viewer is also launched so I actually end up with 2
print previews. I am using the Print method as opposed to PrintToDevices.
I'm using print because I can't get the AutoSearchDialog to appear when I
use PrintToDevices.
Thanks
Jo Beaven
This discussion has been closed.
Comments
You'll have to show the autosearch dialog manually. Perhaps, you shoudl use
Print and create a preview plugin that shows the custom preview dialog that
you want to have. There is an example of this here:
http://www.digital-metaphors.com/tips/HidePrintButtonPlugin.zip
You can also take a look at the main reports demo project, as it does use a
viewer and controls the viewing process. It is located in your installed
directory RBuilder\Demos\1.Reports\Main.dpr
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com