New topic: IOException on Webfile
<http://forums.realsoftware.com/viewtopic.php?t=47555> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message bluesfannoz Post subject: IOException on WebfilePosted: Wed Apr 10, 2013 10:44 am Joined: Wed Apr 26, 2006 12:56 pm Posts: 22 Location: Topeka, KS I have the following code in the MouseEnter event of a WebLink. It works great for pointing to a PDF I want opened in another window. I have those PDFs listed in a Listbox. My problem is on the 6th attempt to Open a PDF it errors out with an IOException on the server. My attempt at catching it withe below exception has failed. Any ideas what my problem is? Dim LogoFile(500) as FolderItem Dim WebfileCounter as Integer Session.WebfileCounter=Session.WebfileCounter+1 WebfileCounter=Session.WebfileCounter LogoFile(WebfileCounter)=Session.PDFArray(ListBox1.ListIndex) // Below Line kicks the IOException error Session.LogoFile = WebFile.Open(LogoFile(WebFileCounter)) Session.LogoFile.mimetype = "application/pdf" If LogoFile(WebfileCounter).Exists Then Link1.URL=Session.LogoFile.URL Else MsgBox("File Selected "+LogoFile(WebfileCounter).Name+" does not exist") End If pgReportArchive.Show Exception err as IOException MsgBox STR(LogoFile(WebfileCounter).LastErrorCode) Exception err as OutOfBoundsException MsgBox STR(ListBox1.ListIndex) _________________ Stephen Koger SEKESC-Greenbush "Ensuring Equal Educational Oppurtunities for Everyone" Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
