Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
3 unrelated files into one report
Message
From
26/04/2007 12:58:11
 
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:
01220195
Views:
22
>>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
>>
>
>It has to, but it does not!
>
>And the funny thing, it showed Preview correctly but now it even doesn't show Preview anymore. If I comment SetFocus() and browse then preview shows up correctly but clicking Print button from the preview still gives me an error.

Dunno. Seeme like you've forgotten to select the print cursor prior to printing
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform