Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Browser Printing
Message
De
21/09/1999 07:21:05
 
 
À
20/09/1999 14:58:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00266682
Message ID:
00267006
Vues:
24
>>>>Is it possible to programmatically ( using VBScript or javaScript on the client side )force a browser to print the current web page?
>>>>
>>>>Thanks,
>>>>Bill
>>>
>>>You can print from the IE object, the problem is, I don't think that that (top level) object is available from a script, only from externally (Automation or ActiveX). Someome might call me on this, but I think this is by design for security purposes.
>>>
>>>FWIW, this is how to print the current document in IE
>>>oIE.ExecWB( 6, 10, 0, 0 )
>>
>>Ok, if I'm reading you correctly, if you create a browser object from VFP you can use this method to print from it. But I'm referring to printing from a VBScript or JavaScript from within the actual browser the user started up on their desktop, and that this cannot be done.
>
>It can't be done as far as I know. That doesn't mean it can't be done. :-)

Gotcha. But since there is no Print method in the browser exposed object model, I suspect it can't be done without some sort of kludgy workaround. And since I like to use kludges only when I really have to, I'll probably look for another solution. :-)
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform