Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing preferences
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01042664
Message ID:
01042705
Vues:
21
See if this help:
oShell = CreateObject("WScript.Shell")
Ltimer=createobject("TmpTimer")

?sys(1037)

Ltimer=.NUll.
oShell=.Null.
Return
*----------------------------------------
Define class TmpTimer as Timer
	Interval 	= 1000
	Name 		= "TmpTimer"
	timeoutdef 	= 10000
	
	Procedure Init
		this.addproperty("starttime",SECONDS())
	EndProc
	
	Procedure Timer
		if oShell.AppActivate("Print Setup")
			oShell.SendKeys("%p")
			this.interval=0
		ENDIF			
		IF SECONDS() - this.starttime >= this.timeoutdef/1000
			this.interval=0
		ENDIF
	Endproc
Enddefine 
>Hi, I've adapted the ReportFormPrompt sample from microsoft, so that now it works in my app similarly to getPrinter().
>I'd like to add a button to invoke the printing preferences.
>I've already discarded sys(1037) and the "report form.. prompt" option.
>
>Should I use the windows API or is there any simpler way?
>
>Thank you in advance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform