Walter Meester
HoogkarspelNetherlands
>>>>Just, take another look at my reply. It isn't that hard and solves your problem very nicely. The preview is actually being displayed in your desktop !!<<<
>We have tried it, and it actually works pretty good on most of our reports! But I was wondering, is there anyway to get multiple reports to open in the main VFP window as well? What we've discovered is that with the FoxHWnd approach, on our front ends that chain multiple reports, the first report will appear inside, but subsequent reports will pop up outside, just like they do now. This would be fine, but when you ctrl+f4, all the reports close! (Our customers are used to alt+f4-ing to close each report.) Also, if you have the WindowShowSearchBtn property set, you can't get to the box to type in a search value.
The approach I use is to have a preview class which previews one report. For additional reports you'll have to instantiate the same class more than once. I think You'll have to change the WindowParentHandle for each subsequent report to be displayed.
However I don't work with the ActiveX control, so it might not work exactly as advertised.
>One more thing, a search in the VFP 7 help file returned this:
>
>"The Calendar, Outline, and FoxHWnd controls no longer ship with Visual FoxPro."
I didn't know. However you can use the same activeX control from VS 6.0.
walter,
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only