Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you run the label wizard programatically?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00165199
Message ID:
00168130
Views:
22
Hi James,

You can use the following code to run the Label Wizard:
wbreturnvalue = ''
do (home() + '\wizards\wzreport' with 'wbreturnvalue', 'LABEL'
When the user exits the wizard, the variable wbreturnvalue will contain either '0' if they clicked cancel at any time, or '1' + the path & filename of the file generated by the wizard.

If you have VFP 6.0 you'll find the complete source code for all the Wizards in D:\Program Files\Microsoft Visual Studio\VFP98\Tools\XSource\Xsource.zip. For further information on the source code, refer to the following MSDN page:

INFO: Where to Find the Wizard Applications' Source Files



>I understand the report and label wizard can be run from the single file WZREPORT.APP. When I run WZREPORT.APP it only runs the Report Wizard. How do I run the label wizard using this file? (or is this possible?) Is there a parameter that will run the Label Wizard that you are suppose to include in the command line? (DO WZREPORT WITH ...)
>
>Any help here would be greatly appreciated. I have an application where the Label Wizard would be great!
>
>TIA,
>
>James
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Reply
Map
View

Click here to load this message in the networking platform