Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
3 unrelated files into one report
Message
From
26/04/2007 12:41:08
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01219736
Message ID:
01220188
Views:
24
This message has been marked as a message which has helped to the initial question of the thread.
>>>BTW, one funny thing here - on my form I only have 3 grids, nothing more. Now, in order to avoid problem with Preview and grids documented in my FAQ should I put an invisible button on the form to set focus to? But if it's invisible, would I be able to set focus to it?
>>
>>Most likely not, but you can make it visible right before preview, set focus on it and make invisible after preview.
>
>This doesn't work, for some reason. The idea of moving the button outside the visible portion of the screen doesn't work either. Perhaps I really need to have the button visible and on the form.

It has to work. Been doing this for ages.

Put a textbox (say TextBoxDummy) in your form's baseclass with left = -1000 or so. Set its TABSTOP to FALSE

Add a method to the form's class, eg TakeFocusOff(). TakeFocusOff() will just do: =m.thisform.TextBoxDummy.SetFocus()

printing then becomes
= m.thisform.TakeFocusOff()
select cursor
report form ....
=m.thisform.SomeOtherControl.SetFocus()

&& note:  TakeFocusOff could be called with a parameter returning the reference of the object having the focus
&& The last step would then be to set to focus back to that one
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform