Please provide some code you have written to do that. It's hard to discuss the situation without it.