Fetching creator name of docs in print format

i wwant material request name who has requested to that document which is fetch from material request form and want to show in PO format…
i tried this,
frappe.db.get_value(“Material Request”, doc.items[0].material_request, “owner”) but its shows email id of that person…as we need we have to show full name of the requested person…

@suvarna_bhangare,

You can use the get_user_fullname to get the user’s full name from the email_id

i tried this…still i got error…

@suvarna_bhangare,

Can you share what have done so far ?

this is my code…

this is error which i got…:

@suvarna_bhangare @makarand_b frappe.get_fullname(doc.owner)
I think this one is work