Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report preview from a top level form
Message
De
02/10/2001 10:38:48
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Report preview from a top level form
Divers
Thread ID:
00563016
Message ID:
00563016
Vues:
77
I have a small top level form running a scheduled backup routine.

I log the files backed up into a text file in case I need to review them.

After running the routine I would like to present the user with a print preview window allowing him to page through the text file on screen or to print the file.

I FileToStr the text file to a memo field and do a report preview of a report form. This works in the main foxprow screen.

However since I am working with a top level form which is very small the report preview (which is in the form) is too small to use.

So I tried the following :
define window LogPrint ;
	from 1,1 to 45,120 in desktop double grow close float ;
	name oLogPrint 
report form LogPrint preview window LogPrint noconsole 
-- thinking I would get the report preview screen outside of the top level form in the size shown. This works to a fashison when the main foxprow screen is available (the preview toolbar is hidden) but I only get a flash when in runtime with only the calloing top level form showing.

I also tried :

define window LogPrint ;
from 1,1 to 45,120 in desktop double grow close float ;
name oLogPrint
activate window LogPrint
report form LogPrint preview in window LogPrint noconsole
release windows LogPrint
Best Regards
Don Simpson
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform