共用方式為


Preview Report Foundation Class

Category Misc Buttons
Default Catalog Visual FoxPro Catalog\Foundation Classes\Buttons
Class _cmdRunReport
Base Class CommandButton
Class Library _miscbtns.vcx
Parent Class _commandbutton
Sample ...\Samples\Solution\Ffc\buttons.scx

Remarks

This class provides a generic button to run a report directly or through the Output dialog box class.

To use, drop the class on a project or form or, from the Component Gallery Item Shortcut Menu, select Add to Form. When you add the class to a form, Visual FoxPro opens a builder so you can specify the cFileName and lSetCaption values. When you drop the class on a project, you can choose between adding the class or creating a subclass.

See Guidelines for Using Visual FoxPro Foundation Classes for more information on using foundation classes.

Properties, Events, Methods Description
cDialogClass property Specifies the output dialog box class.
Default: _OutputDialog
cDialogClasslib property Specifies the output dialog box class
library.
Default: (IIF(VERSION(2)=0,"",HOME( )+"FFC\")+"_REPORTS.VCX"))
cFilename property Specifies the name of the form to run.
Default: ""
cOutputDialogAlias property Specifies the name of the output dialog
box alias.
Default: ""
lOutputDialogPreventScope property Specifies whether to prevent changing
the scope in dialog box.
Default: .F.
lOutputDialogPreventSource property Specifies whether to prevent changing
the alias/report in dialog box.
Default: .F.
lPromptForReport property Specifies whether to ask for a report
name.
Default: .T.
lSetCaption property Specifies whether caption is automatically
based on the value of cFilename.
Default:.T.
lUseOutputDialog property Specifies whether to display the
foundation class Output dialog box.
Default:.T.
ShowOutputDialog method Displays the foundation class Output
dialog box.
Syntax: ShowOutputDialog( )
Return: none
Arguments: none

See Also

Guidelines for Using Visual FoxPro Foundation Classes | Visual FoxPro Foundation Classes A-Z | Visual FoxPro Foundation Classes | Output Dialog Box