Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Install in every computer Custom Paper Size?
Message
From
27/10/2003 14:29:13
 
 
To
27/10/2003 14:15:11
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00840704
Message ID:
00843208
Views:
40
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform