Hi Chaim,
I assume you talk about the older REPORTBEHAVIOR 80 preview.
>How does VFP know where to put the report preview and what size to make it?
That's stored in the FOXUSER file
>Is there any way to control the size and location of the report preview?
You could a FOXUSER with the correct value and switch to this resource file just before previewing the report. This technique is also used to control the position and content of the report control toolbar.
Alternatively, you can use the various WINDOW commands to alter the preview. If there isn't any issue with previewing the report modeless with the NOWAIT option,m, you can simply put these commands after the REPORT FORM line. Otherwise you need to work with the keyboard buffer or a timer to execute the code after the preview has launched:
On Key Label Chr(255) Zoom window "report designer" max
Keyboard Chr(255)
Report Form d preview
--
Christof