Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

OnPreviewFormCreate doesn't fire

edited January 2002 in General
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

Comments

  • edited January 2002
    Ok, I found it ... but that doesn't make things easier:
    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

  • edited January 2002
    After you load the template, you'll want to reassign the event handler to
    the report object.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.