>Edward,
>Sorry, if I fail to reply immediately on your graceful assistance. I tried the code, but I still couldn't dock the print toolbar.
>
>Maybe I'm missing out something. The print toolbar was at the top of the Preview Screen but did not actually docked. So its small close button still shows up.
Hmm.. It should work, try it couple times (you may do it from commahd window). Maybe you will need another numbers in MOVE WINDOW.
>
>The NOWAIT clause caused the remaining of my codes to execute, like making the system toolbar and the form, that launched the Preview Screen, to appear.
>
>Maybe you could help me with another approach.
I guess that another approach would involve using 'custom' foxuser.dbf file. You can do following way: run your application, preview report, dock toolbar manually and then immediately save Foxuser.dbf/Fpt to some place. Now you may use this file in real run-time like this:
COPY FILE myfoxuser.dbf To dynamicfoxuser.dbf
COPY FILE myfoxuser.fpt To dynamicfoxuser.fpt
SET RESOURCE TO dynamicfoxuser
REPORT FORM myreport PREVIEW
SET RESOURCE TO
DELETE FILE dynamicfoxuser.dbf
DELETE FILE dynamicfoxuser.fpt
I have never used it, but it probably should work.
Edward Pikman
Independent Consultant