Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple HTML Page / Table application
Message
 
To
24/10/2002 09:17:36
Armando Villasmil
Visualpoint Business Solutions
Oranjestad, Aruba
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00714792
Message ID:
00715672
Views:
12
Well the simplest would be(from VFP 7 Help): using the Save As HTML option on the File menu when you are browsing a table to save the contents of a table as an HTML (Hypertext Markup Language) file.
To save a table as HTML
Open the table.
Browse the table by issuing the BROWSE command in the Command window or by choosing Browse from the View menu.
Choose Save As HTML on the File menu.
Enter the name of the HTML file to create and choose Save.

More ambitious is using VFP's TEXTMERGE. Here's a good HTML primer by Les Pinter: http://www.lespinter.com/LearningCenter.asp?ArtNum=217&Language=English

More ambtious still is doing all this dynamically. For example, I've developed an HTML class that will take an HTML template(maybe developed in FrontPage or Dreamweaver) and evaluate any embedded VFP expression or codeblocks within it and deliver the fully expanded page with all VFP tables listed. Check out http://www.activevfp.com/AVFPdemo15/AVFPdemo15.asp?action=sessionlist. This is a vfp mtdll that's called from asp (or asp.net). The code that calls the HTMLTable method is as follows:
SELE * FROM Customer INTO CURSOR tCursor
lcHTMLfile = 'custlist.htm'  && html template
lcHTMLout= FILETOSTR(oProp.HtmlPath+lcHTMLfile)
lcHTMLout= oHTML.htmlTable('customers',lcHTMLout,10,.T.,'#E5E5E5',.F.;
	,VAL(oRequest.querystring("page")),oRequest.querystring("nav"))
lcHTMLout= oHTML.mergetext(lcHTMLout)
>Hi,
>
>Can someone suggest a tutorial about a simple table on the internet which can be viewed with the Internet Explorer? Any help would suffice.
>
>Thank you,
>
>Armando
Previous
Reply
Map
View

Click here to load this message in the networking platform