>I have a couple of questions.
>
>I have a VFP 5.0 application that is distributed as an EXE, I have hidden the main FoxPro screen by including SCREEN=OFF in the config file.
>
>1
>I want to allow the user to preview reports from within this application, the VFP help files state that you can use the following:
>REPORT FORM repname PREVIEW WINDOW windowname / formname.
>
>However I can not seem to get the preview in a form, I can only get it working if I set the main FoxPro screen back on.
Dennis, actually you can use approach when you set _screen.visible = .t. before REPORT... PREVIEW, and then set it to .f. again
>2
>In the same application I want to allow users to Export data to Excel files, How do I invoke the built in Export facility, I have tried making a shortcut with the Menu/Shortcut builder, however when the shortcut pops up the Export option is dulled out, any ideas ?
Don't quite understand why you do this, but why not to use just
COPY TO myExcelFile.xls type XLS
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison