>I am a newbies of VFP.
>
>I issue a command, REPORT FORM rptname TO PRINTER PROMPT, in Click event of print button.
>When I click OK on the printer setting dialog box, it prints out a blank paper.
>So, I create a second button for preview. In preview click event, I issue REPORT FORM rptname PREVIEW.
>When the preview screen comes out, there is a preview tool bar available. I click on the printer icon
> on the preview tool bar. The report is printed out fine.
>
>Where do I do wrong?
>
>Please Hee....lp! THANK YOU! THANK YOU!
Francis,
First try your report without the Prompt clause. If this works, use GetPrinter() instead to set your printer. This is a known problem with VFP5.0 and was partially (but not completely) fixed in VFP5.0a.
If this is NOT your problem, and the report still prints incorrectly with REPORT FORM rptname TO PRINTER, then check your data sources very carefully.
HTH
Barbara