Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Cetin Basoz
  Where is Cetin Basoz?
 Izmir
 Turkey
 Cetin Basoz
 To: Russell Hill
  Where is Russell Hill?
 Sydney
 Australia
 Russell Hill
 Tags
Subject: RE: Opening an XML file
Thread ID: 228503 Message ID: 228516 # Views: 1 # Ratings: 1
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Tuesday, May 19, 2009 3:01:53 PM         
   


LOCAL lcXMLFile
lcXMLFile = forcepath('myXML.xml',SYS(2023))
USE (_samples+'data\customer')

CURSORTOXML('customer',m.lcXMLFile,2,512,0,"1")

PUBLIC oForm
oForm = CREATEOBJECT('HTMLViewerForm')
oForm.Show()
oForm.htmlviewer.navigate2('file://'+m.lcXMLFile)
DO WHILE oForm.htmlviewer.readyState != 4
ENDDO
erase(m.lcXMLFile) 

define class HTMLViewerForm as form
  height = 500
  width = 800
  add object htmlviewer as olecontrol with ;
    height = 500, width = 800, anchor=15,visible = .t., ;
    oleclass = 'Shell.Explorer'

  procedure htmlviewer.refresh
    nodefault
  endproc
enddefine


Cetin Basoz

.Net has got better.Think about moving - check my blog:
Blog (main)
Blog (mirror)

ENTIRE THREAD

Opening an XML file Posted by Russell Hill @ 5/19/2009 2:18:45 PM
RE: Opening an XML file Posted by Frank Cazabon @ 5/19/2009 2:31:04 PM
RE: Opening an XML file Posted by Russell Hill @ 5/19/2009 2:43:09 PM
RE: Opening an XML file Posted by Frank Cazabon @ 5/20/2009 2:20:10 PM
RE: Opening an XML file Posted by Russell Hill @ 5/21/2009 1:01:07 AM
RE: Opening an XML file Posted by Yuri Rubinov @ 5/19/2009 2:35:42 PM
RE: Opening an XML file Posted by Russell Hill @ 5/19/2009 2:44:07 PM
RE: Opening an XML file Posted by Cetin Basoz @ 5/19/2009 3:01:53 PM
RE: Opening an XML file Posted by Russell Hill @ 5/20/2009 5:29:16 AM
RE: Opening an XML file Posted by Yousfi Benameur @ 5/19/2009 9:36:26 PM
RE: Opening an XML file Posted by Russell Hill @ 5/20/2009 5:31:33 AM
RE: Opening an XML file Posted by Yousfi Benameur @ 5/20/2009 12:15:04 PM
RE: Opening an XML file Posted by Russell Hill @ 5/20/2009 1:40:50 PM