Your code looks fine. To you check to see if it is running?
Also, if you are loading the report from a file/stream/db field, you must reassign the event if the stored report does not have the event already assigned.
If you do a search on the messages in this newsgroup for all messages containing "PreviewFormCreate", you will see that it has been recommended in the TppReport.OnPreviewformCreate event. The problem Eric is having is not the event he is using.
Comments
Your code looks fine. To you check to see if it is running?
Also, if you are loading the report from a file/stream/db field, you must
reassign the event if the stored report does not have the event already
assigned.
Ed Dressel
Team DM
is your Form named TForm1, and is your ReportName ppReport1 and did you
spell ppViewr correctly in your Uses clause?
Regards
Heinz
Jean-Paul
If you do a search on the messages in this newsgroup for all messages
containing "PreviewFormCreate", you will see that it has been recommended in
the TppReport.OnPreviewformCreate event. The problem Eric is having is not
the event he is using.
Ed Dressel
Team DM