>Your problem is in your syntax, using WINDOW Pepe does NOT put your preview in that window, it causes the preview to build a window just like Pepe and put the preview in there. You can change the WINDOW Pepe to IN WINDOW Pepe and you code should then work.
thanks, but my VFP do not recognize IN WINDOW sintax giving me "unknow keyword" message if I wrote:
REPORT FORM gamas1 PREVIEW IN WINDOW pepe
I am testing an example from VFUG last newsletter that looks pretty good.
thanks.