How to add document information fields in a CALC header?

The header/footer setup under Format > Page appears to only allow the inclusion of timestamps, file information, tab labels, etc.

How does one include document information fiels (including custom fields) in the CALC Spreadsheet header or footer?

Not ideal, but is there a way to achieve this using BASIC?