[{"created":"20221020100957840","text":"\\define docx(src)\n\n<$set name=\"url\" filter=\"[<__src__>is[tiddler]get[_canonical_uri]else<__src__>addprefix[https://view.officeapps.live.com/op/embed.aspx?src=]encodeuri[]]\">\n\n
\n\n$set>\n\n\\end\n","title":"$:/talha131/macro/docx","creator":"talha","modified":"20221113175002183","modifier":"talha","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","revision":"0","bag":"default"},{"created":"20221020100703406","text":"","title":"$:/talha131/macro/docx/example/sample file","type":"application/msword","_canonical_uri":"https://filedn.com/laUTmcj57lPkQfIaVW9b29L/coursera-foundations-data-data-everywhere/1.1.3%20Introducing%20Data%20Analytics%20-%20Learning%20Log.%20Think%20about%20data%20in%20daily%20life-Template.docx","creator":"talha","modified":"20221110083428592","modifier":"talha","tags":"","revision":"0","bag":"default"},{"created":"20221110083354922","text":"This example shows how to display a document by passing its URL to the macro.\n\nConsider this URL \n\nhttps://filedn.com/laUTmcj57lPkQfIaVW9b29L/delete/file-sample_100kB.doc\n\nThis URL points to a MS Word document hosted on the cloud.\n\n! Code\n\n```\n<>\n```\n\n! Output\n\n<>","tags":"","title":"$:/talha131/macro/docx/example/Using direct link to a file","modified":"20221110083639212"},{"created":"20221110082738318","text":"This example shows how to display a document whose link is defined in a tiddler's `_canonical_uri` field.\n\n\nIf you open the [[$:/talha131/macro/docx/example/sample file]], you will see that it's `_canonical_uri` is set to a MS Doc URL\n\n! Code\n\n```\n<>\n```\n\n! Output\n\n<>","tags":"","title":"$:/talha131/macro/docx/example/Using tiddler _canonical_uri field","modified":"20221110083722123"},{"title":"$:/talha131/macro/docx/style","created":"20221023112858301","modified":"20221023122704261","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":"div.talham-docx {\n height: 1000px;\n border: <> 1px solid;\n border-radius: 5px;\n padding: 2px;\n}\n\ndiv.talham-docx iframe {\n height: 100%;\n width: 100%;\n}\n","revision":"0","bag":"default"}]