Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to print a indvidual frame programatically?
Message
De
11/08/2002 11:45:46
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
À
10/08/2002 14:08:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00688324
Message ID:
00688418
Vues:
17
Michel,

I'm supporting IE only and as such I'll give your second script a try. This is much easier to understand. As I said before, I don't know much about Javascript and my previous "complicated" code worked ok at the time:)

I appreciate the help

Mike

>Try something like this from the calling frame:
>
>
><A HREF=javascript:parent.YourFrameName.print()>Print the content of the YourFrameName frame</A>
>
>
>Note that will only work in Netscape. If you wish to make that work in IE, you'll have to use another approach. Basically, the concept is to put the focus on the targeted frame. IE will only print where the focus is. So, even if you put the target in the command, it won't work. So, the focus has to be put in the proper frame first. Something like this will work:
>
>
><A HREF=javascript:PrintIt()>Print the content of the YourFrameName frame</A>
>
><SCRIPT>
>function PrintIt()
>{
>   window.parent.YourFrameName.focus()
>   window.parent.YourFrameName.print()
>}
></SCRIPT>
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform