homepage Welcome to WebmasterWorld Guest from 54.211.47.170
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
Visio process hangs exporting to html
process hangs when exported thru code
mittu




msg:3660548
 5:18 am on May 28, 2008 (gmt 0)

hi,
im writing a code to export visio to html
======================================
Protected Sub converttoxml(ByVal strFileName As String, ByVal app As Microsoft.Office.Interop.Visio.Application)
'Dim app As New Microsoft.Office.Interop.Visio.Application
Try

' app.Documents.Open(Server.MapPath("../filestoread") & "\" & strFileName.Replace(" ", "") & ".vsd")
app.Documents.OpenEx(Server.MapPath("../filestoread") & "\" & strFileName.Replace(" ", "") & ".vsd", CShort(Microsoft.Office.Interop.Visio.VisOpenSaveArgs.visOpenDocked) + CShort(Microsoft.Office.Interop.Visio.VisOpenSaveArgs.visOpenRO))

If File.Exists(Server.MapPath("../HTMFiles") & "\" & strFileName.Replace(" ", "") & ".htm") Then
File.Delete(Server.MapPath("../HTMFiles") & "\" & strFileName.Replace(" ", "") & ".htm")
End If
app.Addons.ItemU("SaveAsWeb").Run("/quiet=True /openbrowser=False /PanAndZoom=True /target=" & Server.MapPath("../HTMFiles") & "\" & strFileName.Replace(" ", "") & ".htm")
app.Quit()
Catch ex As Exception
Response.Write(ex.Message)
End Try

End Sub
======================================================

the problem im facing here is when control reacheds to app.documents.open,the visio process hangs & the visio file is not exported to html

any help on this?

 

encyclo




msg:3661883
 2:24 pm on May 29, 2008 (gmt 0)

Welcome to WebmasterWorld mittu - does Visio have any error console or error log which could explain why the process is hanging?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved