Hello everyone,

We are trying to embed an excel in a document through script, but could not find any clue as to how to embed a file in output document.

Does anyone know how to do this or has tried it before? Please let me know if there is a way...

 

I found below code but this only appends the report with imported contents at the end. 

var docToInsert = Context.getFile("ProcedureReport.doc", Constants.LOCATION_SCRIPT)

var myOutputObjToInsert = Context.getOutputObject("tmp.doc", docToInsert)

oOutput.InsertDocument(myOutputObjToInsert, false, false)

oOutput.WriteReport()

Kindly need your help to understand a way to embed?

Regards,

Kaushik

 

 or register to reply.

Notify Moderator