Bonjour,
Dans un sous formulaire de Libreoffice, je cherche à afficher le résultat d' un calcul en rouge s'il s'agit d' un achat, en vert si c' est une vente.Je voulais utiliser TextColor mais j' ai un message qui m' indique que "propriété ou méthode n'ont trouvé."
Existe-t-il une autre commande?
Le bout de code concerné:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
	If Ach = 1 then
		With FrmlActif.getByName("Sf_Cmpt").getByName("Achat")
				.TextColor = RGB(255,0,0)
				.Value = MntAch
				.Commit 
		End With
		With FrmlActif.getByName("Sf_Cmpt").getByName("Vente")
				.TextColor = RGB(0,128,64)
				.Value = MntAch
				.Commit 
		End With
	End If
Cordialement