OnPreviewFormCreate doesn't fire
Hello there,
I have a rather complex (for me report, which I use to print or preview
my invoice. By default the preview window is created at some default size.
So I found in help that I can adjust the size in the OnPreviewFormCreate
event. But in my case this function doesn't fire. I tried it with an empty
report and there it fires. How can I have disabled this feature or has it
got to do with my report-template being loaded?
Please help,
Marc Debold
I have a rather complex (for me report, which I use to print or preview
my invoice. By default the preview window is created at some default size.
So I found in help that I can adjust the size in the OnPreviewFormCreate
event. But in my case this function doesn't fire. I tried it with an empty
report and there it fires. How can I have disabled this feature or has it
got to do with my report-template being loaded?
Please help,
Marc Debold
This discussion has been closed.
Comments
I designed the report on a form, that is inherieted by many other forms,
from which I print. The ancestor-form (on which the original report resides)
is never created, but it's descendants. So when printing the descendants,
the OnPreviewFormCreate of the ancestor doesn't fire and thus non of my
forms is maximized. Can I do the maximizing somewhere else, where I can
access my descendant-reports? I haven't got a form, where I could change the
property of each descendant report, because the number of descendants is not
limited and they are created dynamically. Any ideas? Please?
Regards,
Marc Debold
the report object.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com