` Printed Icetips Article

Icetips Article



ABC: Window not open error on empty reports
1999-04-26 -- Lee White
 
Newsgroups: topspeed.products.c4

> I am having the same problem but I have a generic, plain vanilla report that
> only has a report filter. I do not ref the report at any embed point. If no
> records are selected (There are no records available to process) the next
> window is a run time error, Window is not open, and the application issues
> an invalid page fault in C4RUNX.DLL.  This will also happen in 16bit mode.
> I have posted a message in the C4 bug area plus I sent a sample app to tech
> support but have not heard anything in the last 3 or so weeks.

Any chance you're using the page numbering control template in your report?

It will do this since it wasn't originally "wrapped" to protect against
empty reports. As far as I know it's the only standard template that
can/will cause this behavior.

If you -are- using the ReportPageNumber control template open the
abreport.tpw and search for "reportpagenumber". When you find it you need to
add a couple of lines...

Move down to the #AT containing 'OpenReport' and you'll find...
%Report$%Ctrl{PROP:PageNo}=True

Change this to...

IF ~ReturnValue
  %Report$%Ctrl{PROP:PageNo}=True
END

Recompile and the problem should disappear.

--
Lee White



Printed November 23, 2024, 6:56 am
This article has been viewed/printed 35448 times.
Google search has resulted in 324 hits on this article since January 25, 2004.