` Window not open error on empty reports (Lee White) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

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 April 26, 2024, 11:08 am
This article has been viewed 35123 times.
Google search has resulted in 324 hits on this article since January 25, 2004.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: