Hello Every one

I have problem in printing java i'm using Book class when i using

book.append(new Document(), pageFormat);
its working

but when i using this one "Document(Vector, Bean)" 2 arguments its not printing my data, mean printer not working on it.

book.append(new Document(Vector, Bean), pageFormat);

what can I do?