Hi, I have a problema and I hope someone can help me.
I've implemented a custom IhttpHandler.ProcessRequest to get a .vsd file from a database. It Works, but only with visio 2010 installed. With visio 2013 the processrequest doesn't even fire. Why it doesn't work on visio 2013? I cant use custom handlers? is there anything I can change to make the handler work?
This is the handler code:
Public Sub ProcessRequest(ByVal context As System.Web.HttpContext) Implements System.Web.IHttpHandler.ProcessRequest Dim idFile as String = context.Request.QueryString("idFile") Dim filedata() as Byte = getFileFromDB(idFile) context.Response.OutputStream.Write(filedata, 0, filedata.Lenght) End sub
This is the code form the aspx
<object classid=clsid:279D6C9A-652E-4833-BEFC-312CA8887857 id=vviewer codebase=vviewer.exe Width = 800 Height = 600 > <param name=SRC value="VisioDoc.vsd?idFile=1234"> <param name=HighQualityRender value=1> <param name=BackColor value=#000000> <param name=PageColor value=#000000> <param name=PageVisible value=1> <param name=AlertsEnabled value=1> <param name=GridVisible value=1> <param name=PropertyDialogEnabled value=0> <param name=ScrollbarsVisible value=1> <param name=ToolbarVisible value=1> <param name=ContextMenuEnabled value=1> <param name=CurrentPageIndex value=1> <param name=Zoom value=-1> visio is not installed </object>")