A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Hi Denis,
Glad that you have found a solution and we appreciate your sharing. This will definitely benefit other community members who have the same requirement.
Regarding your questions about this, as it is related to SharePoint development, and I notice that you have post the question in our MSDN forum. We would suggest you continue monitor the thread in our MSDN forum as that forum is a specific support channel for SharePoint development related queries. The engineers and members there might provide you with professional support about your requirement.
Thanks for your understanding.
Allan