Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link 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
Today is November 23, 2024, 2:10 am This article has been viewed 35448 times. Google search has resulted in 324 hits on this article since January 25, 2004.
|
|