Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to print HTML
Message
De
27/06/2000 10:55:33
 
 
À
27/06/2000 09:46:00
Amit Abhangrao
Charmi Software Exports
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00385019
Message ID:
00385065
Vues:
27
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform