Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print HTML
Message
From
27/06/2000 10:55:33
 
 
To
27/06/2000 09:46:00
Amit Abhangrao
Charmi Software Exports
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00385019
Message ID:
00385065
Views:
29
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
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Reply
Map
View

Click here to load this message in the networking platform