Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling VFP report wizard with parameters
Message
From
15/12/2002 11:54:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
15/12/2002 11:37:13
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00730782
Message ID:
00733166
Views:
25
OK, thanks for the clarification.

>You actually pass an object whose properties are the parameters. This is the kind of code you need to use. Look at the wizard source for more details.
>
>oParametros = NEWOBJECT('line')
>oParametros.AddProperty('cWizTable','')
>oParametros.AddProperty('cWizAlias','')
>oParametros.AddProperty('lBlankForm',.F.)
>oParametros.AddProperty('aWizFields','')
>oParametros.AddProperty('cStyleFile','Styles\Style3H.frx')
>oParametros.AddProperty('aWizSorts','')
>oParametros.AddProperty('lSortAscend',.T.)
>oParametros.AddProperty('lTruncate',.F.)
>oParametros.AddProperty('cOutFile','rpt'+ALIAS()+'.FRX')
>oParametros.AddProperty('nLayout',1)
>oParametros.AddProperty('nColumns',1)
>oParametros.AddProperty('lLandscape',.T.)
>oParametros.AddProperty('nWizAction',GO_MODIFY)
>oParametros.AddProperty('cWizTitle',ALIAS())
>DO WzReport WITH '','AUTOREPORT',,oParametros
>
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform