Visio

PURPOSE

This macro is used to enable an attached Visio image to be displayed in a browser. Optionally, the size of the image can be adjusted. (Obviously this is a small modification of the svg Macro)

Download & Release Notes

Download

Release Version

Moin Version

Release Notes

Visio.py

>=1.3

CALLING SEQUENCE

[[Visio(attachment[,width=width,[height=height]])]]

use << and >> instead of [[ in recent moin

INPUTS

attachment:name of Visio attachment

KEYWORD PARAMETERS

width: width of the embedded image (default is 95% !)
height: height of the embedded image (default is 100%)

OUTPUT

The svg macro will output an <object> tag as follows:

<object classid="CLSID:279D6C9A-652E-4833-BEFC-312CA8887857" codebase="http://download.microsoft.com/download/visiostandard2003/vviewer/2003/w2kxp/en-us/vviewer.exe" id="viewer1" width="..." height="..."> <param name="CurrentPageIndex" value="0"> <param name="Zoom" value="-1"> <param name = "SRC" value = ="...url-of-attachment..." >Your browser cannot display Visio</object>

WARNING

You will probably need Internet Explorer before Visio content can be seen. It should download the Visio viewer if not already installed.

PROCEDURE

This routine requires attachments enabled. If the attachment is not already present on the wiki then the attachment upload page is shown allowing you to upload the missing attachment.

This macro must be put in "[yourwiki]/data/plugin/macro/"

MODIFICATION HISTORY

@copyright: none

License

@license: GNU GPL, see COPYING for details.

OwenJones: 2005-12-08

Based on svg macro by: AndrewArmstrong


The object code was added to EmbedObject please can you check if it does work for you -- ReimarBauer 2006-06-29 20:37:48

MoinMoin: MacroMarket/Visio (last edited 2011-09-15 19:31:40 by 64)