Query a child table of another doctype in print format

How can we query a child table of another doctype in print format?

Maybe @UmaG can help on this, but one way you can do it is to add a custom died that is Read Only and pull the data from another document into the current document. Then you can just pull that custom field into your print format.

Hope this helps.

Thanks

Jay