Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing Graph through MSWord
Message
 
 
À
31/05/2003 12:47:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00794886
Message ID:
00794997
Vues:
11
Anand,

Which line of your code generates this error?


>hi
>
>i am printing clipboard data (it is Graph) as follows
>
>(i use EditCopy() to send data in clipboard.)
>
>ox=CREATEOBJECT("Word.Application")
>mfile=ox.Documents.Add()
>ox.Selection.PasteSpecial(.f.,.f.,0,.f.,3)
>mfile.PrintOut
>mfile.Close(0)
>ox.Quit
>This code is running correctly when it runs in command window.
>
>
>when i run this code from Form by pressing
>command button
>
>code in Click event of command button is
>
>do wordprint.prg && (wordprint.prg contains above codes)
>
>
>it reports following error-----
>
>THE SERVER THREW AN EXCEPTION
>
>
>how can i solve it ?
>
>
>Anand
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform