Preview, Print
Hi all... [img]style_emoticons/<#EMO_DIR#>/cool.gif" style="vertical-align:middle" emoid="B)" border="0" alt="cool.gif" />
I want use with the print button my own print procedure. Is this possible? Like a click event and nothing else.[/img][img]style_emoticons/<#EMO_DIR#>/tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />
Backgound:
All printouts, also on the printer, are saved as PDF in a special folder. With the preview button only printing is done.
Thanks...[/img]
Comments
Looking at the frxPreview.pas module, the PrintB button fires off PrintBClick. The code for TfrxPreview.Print then runs PreviewPages.Print: TfrxPreview.Print looks to be the code to "override" as it is also invoked through KeyDown. I expect your next question will be, "How do I override TfrxPreview.Print?"... [img]style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> Tsch??ss, Paul[/img]
[I am having a bad day - sorry if this is a dumb question!]
You are calling PrepareReport () somewhere in your code, before you try to print it, I assume. [img]style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" /> Tsch??ss, Paul[/img]