Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing Graph through MSWord
Message
 
 
To
31/05/2003 12:47:04
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00794886
Message ID:
00794997
Views:
12
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform