This often happens if there is no data, so this is one thing you should check for. All my reports work as follows (done through some generic report classes in my case):
select ...
from ...
where ...
into cursor Tmp
if _tally = 0
MessageBox("No data - perhaps you should check your criteria.")
else
report form ...
endif
>Hi Everyone,
>
>Not sure how to debug this one further: users have a printout that they can Preview and it works fine on my desktop - in developer mode. Move it to the server though and the preview does not show up. I can tell that "something" happens because I have a bunch of WAIT WINDOWs that fly by as it is doing a wack of calculations.
>
>- if I step through it on the server (running the .exe from my desktop), preview works
>- if I run the exe from VFP on my desktop (with no debug happening), no preview window
>- it is a VFP9 report and it uses a report listener
>- the listener type is indeed being set to 1
>- here is the code that fires the report
>
>
>
>REPORT FORM (.icTempFrxFileName) TO PRINTER &lcPrintDialogClause ;
> &lcPreviewClause NOCONSOLE ;
> OBJECT loReportListener
>
>
>
>where lcPrintDialogClause contains "PROMPT" and lcPreviewClause contains "PREVIEW".
>
>At a loss as to how to debug further because with debugging on, it works but when off, somehow it doesn't.
>
>Thanks,
>
>Albert
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)