ProcessRequest for vsd not working with visio 2013

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>")



July 2nd, 2013 3:08pm

Hi,

You can check to see whether the reference are checked in Tools-> References.

And as for the code part, you'd better to post the case in Microsoft Office for Developers:

http://social.msdn.microsoft.com/Forums/en/category/officedev


Free Windows Admin Tool Kit Click here and download it now
July 3rd, 2013 2:35am

Thank you. I'll try in Microsoft Office for Developers
July 3rd, 2013 3:26am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics