Mallari,
>Hi All
> I am using HTML for developing report. i dont know how to print
> it directly from VFP
> I m using SHELLEXEC for printing, but it opens printerdialog
> box that i dont want. please help
If you are using IE4 or 5, or the web browser control, you can download the free version of ScriptX, an active-X control that can be inserted into your HTML with the < OBJECT > tag, and can automatically control the printer without the prompt.
When the page is loaded, you can trigger the print from VFP code by calling a method in the control, or you can control it from script in the page, such as ONCLICK="factory.printing.copies=2;factory.printing.portrait=false;factory.printing.header='';factory.printing.footer='';factory.print()"
The above example would set to landscape mode, eliminate the browser header and footer in the printout, and print two copies.
http://www.meadroid.com/scriptx/index.htm