Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automation and IE
Message
De
18/07/2005 11:20:51
Tim Muller
Innovative Solutions, Inc.
West New York, New Jersey, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01024241
Message ID:
01033539
Vues:
19
Mike--


>
#DEFINE OLECMDEXECOPT_PROMPTUSER 1
>#DEFINE OLECMDID_PRINT 6
>oIE = CREATEOBJECT('internetexplorer.application')
>oIE.navigate('about:blank')
>_screen.Visible = .f.
>oIE.ExecWB(OLECMDID_PRINT , OLECMDEXECOPT_PROMPTUSER)
>oIE.visible = .t.
>
>
>>
>>It appears that a better solution for this problem might be to click on the print button provided on the web page and send the report to the Generic Text printer provided by Windows (but have the Print dialog box send the text to a local disk file rather than a printer). If I do this, I must automate the fiddling in the Print dialog box to select the Generic printer, select the print to file and specify the file name.
>>

My customer just gave me the OK to start the project. Your code sample appears to be the way to go. I do not understand the "about:blank" parameter to the navigate method. Navigate needs to know where to go. Is there some kind of name for the "Print command button" on the web page? How do I find it?

I need to fire the Print "command button" on the web page (when I move the cursor over the "command button" the IE status bar at the bottom of the screen shows "JavaScript:PrintReport()"). Perhaps rather than asking the "Print command button" to do its magic, I can just run the JavaScript UDF PrintReport?


Tim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform