ATOUTFOX
COMMUNAUTÉ FRANCOPHONE DES PROFESSIONNELS FOXPRO
Visual FoxPro : le développement durable

Forum AtoutFox : Re: Affiche des totaux dans un report   

Sujet

rss Flux RSS des derniers messages

Vous devez vous identifier pour pouvoir poser une question ou répondre.

ven. 18 mai 2012, 09h19
Jean à Grenoble
atoutfox.public.association

Re: Affiche des totaux dans un report


Voici un bout de programme qui remplit le curseur provisoire et ci-joint l'étatcorrespondant. Tous les champs de l'état étant l'un sur l'autre, il faut lesdéplacer si tu veux les voir ...

On a fait la même chose avec un document Word; si je le retrouve ....


CREATE TABLE (gcreplocal+"tmpimp.dbf") ;
  (italic12 C(140), normal12 M, centre12 C(90), gauche12 C(80), droite12 M, ;
   titre C(80), groupedemi C(1), groupepage N(8,0), marquage N(1,0), ;
    droite C(30), soutitre C(50))
SELECT titi
SCAN ALL
  ltltrmaj(1) = EMPTY(titi.rub01)
  ltltrmaj(2) = EMPTY(titi.rub02)
  ltltrmaj(3) = EMPTY(titi.rub03)
  ltltrmaj(4) = EMPTY(titi.rub04)
  ltltrmaj(5) = EMPTY(titi.rub05)
  ltltrmaj(6) = EMPTY(titi.rub06)
  ltltrmaj(7) = EMPTY(titi.rub07)
  ltltrmaj(8) = EMPTY(titi.rub08)
  ltltrmaj(9) = EMPTY(titi.rub09)
  ltltrmaj(10) = EMPTY(titi.rub10)
  INSERT INTO tmpimp VALUES( "MB"+titi.RUB01+" - DM"+titi.RUB02+" - EF"+ ;
    titi.RUB03+" - AS"+titi.RUB04+ " - TL"+titi.RUB05+" - AD"+ ;
    titi.RUB06+" - IT"+titi.RUB07+" - PM"+titi.RUB08+" - AG"+;
    titi.RUB09+" - FR"+titi.RUB10,;
     "", "", "", "", "", "", titi.numtit, 0, STR(titi.numtit,8), "")
  * contact mises à jour
  * jme 15/01/2006 amélioration de l'impression si une seule ligne
  IF titi.adresse == "3"
    * si adresse 3 il faut mettre l'adresse dans titadr pour le contact
    * dixit Stéphanie le 21/02/2006
    IF SEEK(titi.numtit, "a3imp")
      lcaccu1 = IIF(EMPTY(a3imp.fax),"","Fax : "+ALLTRIM(a3imp.fax))
      lcaccu2 = IIF(EMPTY(a3imp.email),"","email : "+ALLTRIM(a3imp.email))
      lnaccu = LEN(m.lcaccu1) + LEN(m.lcaccu2)
      IF m.lnaccu > 0
        INSERT INTO tmpimp VALUES( "Contact pour nos mises à jour : ", "", "", "", ;
     ALLTRIM(titi.nomc)+ IIF( EMPTY(a3imp.tel), "", ;
     " - "+ALLTRIM(a3imp.tel)), "", "", titi.numtit, IIF("*"$ titi.nomc, 1, 0),"", "")
      IF LEN(m.lcaccu1) + LEN(m.lcaccu2) < 75
        INSERT INTO tmpimp VALUES( "", "", "", "", ;
          m.lcaccu1+ IIF(EMPTY(m.lcaccu1) OR EMPTY(m.lcaccu2), ""," - ")+ m.lcaccu2, ;
           "", "", titi.numtit, 0, "", "")
      ELSE
        INSERT INTO tmpimp VALUES( "", "", "", "", m.lcaccu1, "", "", titi.numtit,0, "", "")
        INSERT INTO tmpimp VALUES( "", "", "", "", m.lcaccu2, "", "", titi.numtit,0, "", "")
      ENDIF && LEN(m.lcaccu1) + LEN(m.lcaccu2) < 70


Bon courage

Jean à Grenoble

Permalink : http://www.atoutfox.org/nntp.asp?ID=0000009018
20 286 messages dans le forum • Liste complète des messages

www.atoutfox.org - Site de la Communauté Francophone des Professionnels FoxPro - v3.4.0 - © 2004-2026.
Cette page est générée par un composant COM+ développé en Visual FoxPro 9.0-SP2-HF3