in reply to Auto table generation

Have you broken down the problem into pieces? Can you show any code or pseudo-code?