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--