I have writting an application which follows this logic:
1 - reads a document from database
2 - create a new document
3 - copys all items from old document to the new one
4 - open the new document with EditDocument method in write mode.
One of the copied items is a richt text and I can have a picture pasted. So if the size of the picture is big the script receives the error “User defined error” Erl = 4412.