=====ShowVisioAction===== This is the development page for the ""ShowVisio"" action Please feel free to make changes or leave comments! There are 2 ways to show a Visio document within a Wikka page and they both require the MS Visio Viewer plugin. You can get it from http://www.microsoft.com/downloads/details.aspx?FamilyID=3fb3bd5c-fed1-46cf-bd53-da23635ab2df&displaylang=en I have tested it with IE and it works very well. Sadly, it does not work with Firefox. ~1) Using an action ~""{{visio url="http://devpc/application%20data/rpc_http_diagram.vsd" height="750" width="900"}}"" !This was based on the Mindmap.php action. Thanks go to the author of that action! ~2) Using iframe ~ ""{{iframe width="1200" height="2000" url="http://devpc/application%20data/rpc_http_diagram.vsd"}}"" I came up with the action before I realised that it could also be done with an iframe. If anyone can point out the pros/cons of each approach, I'd be grateful. %%(php) cleanUrl(trim($visio_url)); $height = $this->htmlspecialchars_ent(trim($vars['height'])); $width = $this->htmlspecialchars_ent(trim($vars['width'])); if ($visio_url) { if (!$height) { $height = "650"; } if (!$width) { $width = "550"; } $output = "\n". "". "". "". "". "". "". "". "". "". "". "". "". "". "". "\n". "
$visio_url\n"; print($output); } else { echo "Error: Invalid visio action syntax.
Proper usage: {{visio http://domain.com/visiodiagram.vsd}} or {{visio url=\"http://domain.com/visiodiagram.vsd\"}}
"; } ?>%% ====Categories==== CategoryUserContributions