Subject Re: Preview.wfm and report printing
From trevor <bob@bob.com>
Date Mon, 30 Oct 2023 08:51:36 -0400
Newsgroups dbase.getting-started

Mervyn Bick wrote:
>
> Make a note of the actual classname, the query's name and the
> parameter names.
>
> Use dates that will return a rowset containing some records.  These
> dates are not important as they will be updated when the form is
> launched.

Mervyn,

Thanks for the reply. Seeding dates to the report form indeed is OK,
opens and should work.
However I am getting :

Class does not exist repFormForm :: pushbutton4_onclick.

This happens on any other pushbutton where the report is simple with
no params to pass.
I believe that the onclick events are Ok in themselves as per your
suggestion using "Form.oPreview.open()"

It appears that the onOpen event is causing this problem.

If I remove it  together with 'onOpen = class :: FORM_ONOPEN' and just
use  " do...with preview.wfm" the report renders.
( Albeit ignoring " file does not exist" for smallfonts and file path
for messanger and accompaning errors.)

I am at a loss to find a solution  to this having read preview usage
etc.

Trevor.