Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with no Preview Window showing
Message
From
05/12/2006 17:00:43
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
05/12/2006 16:42:55
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01175037
Message ID:
01175044
Views:
7
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform