how does this errors look like? maybe we are also lucly and nobugz will take a look at this thread, as he is the one who wrote the printing function in the link you've posted... though it seems to me that is the same with the code over here.
anyway, please copy/paste some of the errors you recieve.