Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with no Preview Window showing
Message
De
05/12/2006 17:00:43
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
05/12/2006 16:42:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01175037
Message ID:
01175044
Vues:
8
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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform