locked
visio drawing in asp.net using vb RRS feed

  • Question

  •  

            Can any one please tell about how to display visio stencils(basic flow chart shapes) on aspx page(web page) or how to draw flowchart in asp.net using visio.I am using .NET 2003 &visio 2003. 

    thanks in advance.

    Tuesday, May 8, 2007 10:21 AM

All replies

  •  

    Hi.  You can use Visio Viewer 2003.

     

    http://www.microsoft.com/downloads/details.aspx?FamilyID=3fb3bd5c-fed1-46cf-bd53-da23635ab2df&DisplayLang=es

     

    If you have files .vsd on a folder in the server, visio viewer have a property Filepath that you can use.

    ctrVisio.FilePath = "myvisio.vsd";

     

    If you have the files .vsd in a data base (array of bytes) you can use a class that derived of

    IHttpHandler . and use code similar at:

     

    ctrVisio.FilePath= "myclaseHandlerVisio.axd?id=1";

    myclaseHandlerVisio go to DataBase, read registry that id=1 and return array bytes with :

    context.Response.OutputStream.Write(arraybytes...)

     

    You have to declared in web.config:

     

    <httpHandlers> 

    <add path="myclaseHandlerVisio.axd" verb="*" type="MiType"/>

    </httpHandlers>

     

     

     

     

    Thursday, May 17, 2007 10:58 AM
  • Javier13, I need to implement the same feature, and your post seems to be a great solution. Could you please provide more details?

    Thanks.

    Thursday, July 19, 2012 7:27 PM