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 10:02:11
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00840704
Message ID:
00842941
Views:
34
>>Lazy, and yes. Updated accordingly!
>
>Hi Jim,
>
>Here's even shorter version using Ed Rauh's ClsHeap class.
...
>SET PROCEDURE TO clsheap ADDITIVE
>oHeap = NEWOBJECT("heap", "clsheap.fxp")
>* Build FORM_INFO_1 structure
>cForm = NumToLOng(0) + ;		&& Flags
>		NumToLOng(oHeap.AllocString("MyCustomForm")) + ;	&& Form Name
>		NumToLOng(190000) + ;	&& cx
>		NumToLOng(215000) + ;	&& cy
>		NumToLOng(0) + ;	&& Left
>		NumToLOng(0) + ;	&& Top
>		NumToLOng(190000) + ;	&& Right
>		NumToLOng(215000) 	&& Bottom
>...
>
Yep, that is one of the ways I could see it improved :-) All of Ed's warnings about 'fall down go boom' kept me away from that approach for the moment. Are you ready to put up a FAQ yet? Or shall I give you another 10 minutes to get it down to 3 lines of code? :-)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform