Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Install in every computer Custom Paper Size?
Message
 
 
À
27/10/2003 14:15:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00840704
Message ID:
00843208
Vues:
41
Great, now it Works fine, the final code looks like this (with the class)
SET PROCEDURE TO cCustomForm.PRG
SET CLASSLIB TO struct.vcx

loForms = CREATEOBJECT("cCustomForms")
IF loForms.CreateForm(190000,215000,"MyPaper",GETPRINTER())
   Messagebox("Custom Form Created Sucefull")
ELSE
   Messagebox("Error Creating Form")
ENDIF

loForms = NULL
RELEASE loForms
>This works in VFP8 Service Pack 1:
DEFINE CLASS forminfo as Struct
  nflags = 0
  pName = NULL
  sizel = NULL
  rectl = NULL
  cMembers = "ul:nflags, pz:pName, o:sizel, o:rectl"

  PROCEDURE init
    this.sizel = CREATEOBJECT("PSIZE")
    this.rectl = CREATEOBJECT("PRECT")
    DODEFAULT()
  ENDPROC  
ENDDEFINE
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform