>Mark
>that is what I have been trying to do. But so far the error only occurs from inside a compiled .exe. I will send you the code and table, if I have luck!
>
>Looks very similar to the C5s of the pre-sp VFP6. Will try it with several printer drivers. Sometimes I just hit "preview" say 4 times. When I EXIT the last preview, BOOM!. Sometimes it takes 10 previews to break, or just 2.
The code I posted here for you to test does create an EXE and does a RUN /N DEMOREPO.EXE. The actual PRG file that you copy the code to creates a second PRG, creates a project, adds that second PRG to the Project, compile the EXE from that project, then runs the EXE using the RUN /N command.
How complex is your report? Does it only use 1 table? All you really need is to open up whatever tables you need, then call REPO FORM YOUR_REPORT PREVIEW in a loop, compile that into an EXE and run it.
Mark McCasland
Midlothian, TX USA