Printing a Mashup on runtime
Good day, everyone
I am trying to print my webpage/mashup, (an image just for now).
Following this article guide: https://www.ptc.com/en/support/article/CS319138
I wrote the below in a service and I invoke this service on a button click with the hopes of getting the print page to open up (Like how it would when you press Ctrl+P).
This isn't working. Is there something I am missing?
The code:
let table = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape({
infoTableName: "InfoTable",
dataShapeName: "dataShape_DS"
});
let html = "window.open('http://xx.xx.co/:port/Thingworx/MediaEntities/Icon'); html.print()";table.AddRow({htmlColumn:html});
result = table.htmlColumn;

