Dear marmara2000 Burak,
In your scenario, the result you get is expected. The operation with the DocumentObject is run on the server, and the client only gets the result of the operation once it's finished.
If you want to catch intermediate results of a process that runs on a server, save them somewhere, and then process them on a client (for instance, to display the process's progress), you can rely, for instance, on background jobs. Please refer to 1C:Enterprise Platform Developer's Guide on the matter.