Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to print an html page ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00634465
Message ID:
00634532
Vues:
21
Hi!

You can put a WEB Browser ActiveX control on the VFP form, navigate to required HTML page in a file and call "print" method of it.

I also think you can use a ShellExecute() function described here in API functions section, but instead of "Open" use "Print", as well as a file to run should be that file with HTM extension. The system will automatically open appropriate browser for HTM file. When Print command is associated with fil and that application, the file will be printed. This way works for DOC, files, but I do not know if it works for HTM files - need to try it.

>Does anyone have an idea how to print an html formated page that is on the disk from vfp7 ?
>Is it possible to just call internet explorer with a parameter to print ?
>
>Thanks
>Eric
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform