SlideShare ist ein Scribd-Unternehmen logo
1 von 17
HTML and Visual FoxPro
About Me


   President/Founder F1 Technologies since 1990
   Co-author Visual FoxExpress
   Speaker
   Consultant
   Xbase Developer since dBase III/FoxBase 1987
   Web Developer since 1994
Contact Me
Agenda
   HTML Features in VFP
   Generating HTML with VFP
   Parsing HTML with VFP
HTML Features in VFP
   Save as HTML
   Web Publishing Wizard
   GenHTML
   Foundation Classes
   HTML Report Listener
Save as HTML
   What
       Allows forms, menu, reports and tables to be saved
        as HTML.
   How
       Open/Create a Form, Menu, Report or Table
       From File Menu Choose Save as HTML
   Why
       Limited use for forms & tables
       Useless for menus.
       Moderately Useful for reports.
Using the Web Publishing Wizard
   What
       Generates HTML, Script and more for use in publishing data
   How
       Tools -> Wizards –> Web Publishing
   Why
       Generate HTML to publish on the web or distribute
       Generate Code to use in applications to generate HTML on the
        fly.
       Most useful output formats are IE only.
GenHTML.PRG
   What
       Default HTML generation program for VFP
       Referenced by _GENHTML
       GENHTML.PRG in VFP HOME() directory.
       Called by all we’ve covered so far
   How
       Do (_GENHTML) WITH …
   Why
       Automate publishing reports/data to HTML
HTML Foundation Classes
   What
       HOME() + [FFC_INTERNET.VCX]
            _DBF2HTML
            _FRX2HTML
            _SCX2HTML
   HOW
       FFCSample.PRG, FFCSAMPLE2.PRG & FFCSAMPLE3.PRG
   Why
       Generate an HTML Table, Output an SCX layout to HTML,
        Output a report to HTML
HTML Report Listener
   Most Useful of Built-In
    Features
   See Cathy
    Pountney’s Session:
    Making the Most
    of VFP 9 SP2
    Reports 
HTML Report Listener
   New Advanced Page in Expression Dialog in
    SP2
   HTML Related Properties
       HTML.Link
       HTML.Anchor (Name)
       HTML.Alt-Title
       CSSClass.OverrideFRX
       CSSClass.ExtendFRX
       HTML.PrintablePageLink
   Example: FanList2.FRX
Generating HTML with VFP
   SQL Select directly to HTML
   XML & XSLT
   CursorToHTML Class
   GenForm Class
   HTML Text Merge
SQL Select to HTML
   What
       Use VFP SQL Select to generate HTML
       How
   How
       SQL Select to Text File w/ HTML
       SelectToHTML.PRG
   Why
       Easy
       Performance
XML & XSLT
   What
       Uses XML and XSLT (via COM or .NET interop) to convert XML
        to HTML
       XSLT = EXtensible Stylesheet Language Transformations
   How
       XSLTExample.prg, XSLTExample2.prg, GenericXSLT.PRG
   Why
       Output data to HTML using XSLT
       Use .NET framework
       Performance
CursorToHTML Class
   What
       Class to render HTML from VFP data
   How
       Instantiate, set properties, render
       TestCursorToHTML1 - 6.PRG
   Why
       Fast, Flexible, Easy, All VFP
Parsing HTML with VFP
   What
       Read HTML into VFP
   How
       ALINES()
       STREXTRACT()
       IE Automation
       ParseDemo.PRG
       ParseDemo3.PRG
   Why
       Data Mining
       HTML manipulation
Conclusion
   VFP has a number of built-in ways to generate
    HTML
       Most uses are limited
   It’s easy to roll your own HTML generators
   VFP’s String Handing Capabilities make it easy
    to parse HTML
   IE Automation is also an easy way to parse
    HTML

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Mise en place vidéoconférence + chat avec Openfire
Mise en place vidéoconférence + chat avec OpenfireMise en place vidéoconférence + chat avec Openfire
Mise en place vidéoconférence + chat avec Openfire
 
Mise en place d’un OpenVPN sous PfSense
Mise en place d’un OpenVPN sous PfSenseMise en place d’un OpenVPN sous PfSense
Mise en place d’un OpenVPN sous PfSense
 
OpenStack API's and WSGI
OpenStack API's and WSGIOpenStack API's and WSGI
OpenStack API's and WSGI
 
OPA: The Cloud Native Policy Engine
OPA: The Cloud Native Policy EngineOPA: The Cloud Native Policy Engine
OPA: The Cloud Native Policy Engine
 
alphorm.com - Formation Cisco ICND1-CCENT (100-101)
alphorm.com - Formation Cisco ICND1-CCENT (100-101)alphorm.com - Formation Cisco ICND1-CCENT (100-101)
alphorm.com - Formation Cisco ICND1-CCENT (100-101)
 
SFDX Presentation
SFDX PresentationSFDX Presentation
SFDX Presentation
 
Vpn d’acces avec cisco asa 5500 et client
Vpn d’acces avec cisco asa 5500 et clientVpn d’acces avec cisco asa 5500 et client
Vpn d’acces avec cisco asa 5500 et client
 
Kong, Keyrock, Keycloak, i4Trust - Options to Secure FIWARE in Production
Kong, Keyrock, Keycloak, i4Trust - Options to Secure FIWARE in ProductionKong, Keyrock, Keycloak, i4Trust - Options to Secure FIWARE in Production
Kong, Keyrock, Keycloak, i4Trust - Options to Secure FIWARE in Production
 
Mininet Basics
Mininet BasicsMininet Basics
Mininet Basics
 
Intro to Force.com Canvas: Running External Apps within the Salesforce UI Web...
Intro to Force.com Canvas: Running External Apps within the Salesforce UI Web...Intro to Force.com Canvas: Running External Apps within the Salesforce UI Web...
Intro to Force.com Canvas: Running External Apps within the Salesforce UI Web...
 
Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017
 
Managing ejabberd Platforms with Docker - ejabberd Workshop #1
Managing ejabberd Platforms with Docker - ejabberd Workshop #1Managing ejabberd Platforms with Docker - ejabberd Workshop #1
Managing ejabberd Platforms with Docker - ejabberd Workshop #1
 
Ceilometer to Gnocchi
Ceilometer to GnocchiCeilometer to Gnocchi
Ceilometer to Gnocchi
 
Version Final Presentation
Version Final PresentationVersion Final Presentation
Version Final Presentation
 
Guide mise en oeuvre-pfsensev2
Guide mise en oeuvre-pfsensev2Guide mise en oeuvre-pfsensev2
Guide mise en oeuvre-pfsensev2
 
Mise en place d'un wifi securise
Mise en place d'un wifi securiseMise en place d'un wifi securise
Mise en place d'un wifi securise
 
The Basic Introduction of Open vSwitch
The Basic Introduction of Open vSwitchThe Basic Introduction of Open vSwitch
The Basic Introduction of Open vSwitch
 
Certificate Pinning in Mobile Applications
Certificate Pinning in Mobile ApplicationsCertificate Pinning in Mobile Applications
Certificate Pinning in Mobile Applications
 
JNDI Java Naming Derectory Interfaces
JNDI Java Naming Derectory InterfacesJNDI Java Naming Derectory Interfaces
JNDI Java Naming Derectory Interfaces
 
Dhcp
DhcpDhcp
Dhcp
 

Ähnlich wie Html and visual fox pro

Railo Presentation Railo 3.1
Railo Presentation Railo 3.1Railo Presentation Railo 3.1
Railo Presentation Railo 3.1
Rhinofly
 
Web Development From the Ground Up, a Series for Novice ...
Web Development From the Ground Up, a Series for Novice ...Web Development From the Ground Up, a Series for Novice ...
Web Development From the Ground Up, a Series for Novice ...
webhostingguy
 
CustomizingStyleSheetsForHTMLOutputs
CustomizingStyleSheetsForHTMLOutputsCustomizingStyleSheetsForHTMLOutputs
CustomizingStyleSheetsForHTMLOutputs
Suite Solutions
 
Wpf4 july2010
 Wpf4 july2010 Wpf4 july2010
Wpf4 july2010
tedhu
 

Ähnlich wie Html and visual fox pro (20)

Railo Presentation Railo 3.1
Railo Presentation Railo 3.1Railo Presentation Railo 3.1
Railo Presentation Railo 3.1
 
Xhtml
XhtmlXhtml
Xhtml
 
Web Development From the Ground Up, a Series for Novice ...
Web Development From the Ground Up, a Series for Novice ...Web Development From the Ground Up, a Series for Novice ...
Web Development From the Ground Up, a Series for Novice ...
 
Html for desktop applications
Html for desktop applicationsHtml for desktop applications
Html for desktop applications
 
CustomizingStyleSheetsForHTMLOutputs
CustomizingStyleSheetsForHTMLOutputsCustomizingStyleSheetsForHTMLOutputs
CustomizingStyleSheetsForHTMLOutputs
 
Web Programming introduction
Web Programming introductionWeb Programming introduction
Web Programming introduction
 
Html.pptx
Html.pptxHtml.pptx
Html.pptx
 
WPF 4 Series: Getting Started
WPF 4 Series: Getting StartedWPF 4 Series: Getting Started
WPF 4 Series: Getting Started
 
Wpf4 july2010
 Wpf4 july2010 Wpf4 july2010
Wpf4 july2010
 
HTML5 and DHTML
HTML5 and DHTMLHTML5 and DHTML
HTML5 and DHTML
 
Webform Server 351 Architecture and Overview
Webform Server 351 Architecture and OverviewWebform Server 351 Architecture and Overview
Webform Server 351 Architecture and Overview
 
1- Learn HTML Fundamentals / Start in 5 Minutes
1- Learn HTML Fundamentals / Start in 5 Minutes1- Learn HTML Fundamentals / Start in 5 Minutes
1- Learn HTML Fundamentals / Start in 5 Minutes
 
Best Implementation Practices with BI Publisher
Best Implementation Practices with BI PublisherBest Implementation Practices with BI Publisher
Best Implementation Practices with BI Publisher
 
Html5
Html5Html5
Html5
 
Wiring the Web
Wiring the WebWiring the Web
Wiring the Web
 
How to Build Complex Calls to APIs (Without Writing Any Code)
How to Build Complex Calls to APIs (Without Writing Any Code)How to Build Complex Calls to APIs (Without Writing Any Code)
How to Build Complex Calls to APIs (Without Writing Any Code)
 
Simplify your professional web development with symfony
Simplify your professional web development with symfonySimplify your professional web development with symfony
Simplify your professional web development with symfony
 
The Zeitgeist Movement
The Zeitgeist MovementThe Zeitgeist Movement
The Zeitgeist Movement
 
India Pr Wire May 11, 2009 Sensex Down 193 Points On Profit Booking
India Pr Wire May 11, 2009 Sensex Down 193 Points On Profit BookingIndia Pr Wire May 11, 2009 Sensex Down 193 Points On Profit Booking
India Pr Wire May 11, 2009 Sensex Down 193 Points On Profit Booking
 
How and Why to extend Firefox
How and Why to extend FirefoxHow and Why to extend Firefox
How and Why to extend Firefox
 

Mehr von Mike Feltman

Mehr von Mike Feltman (14)

Drop acid
Drop acidDrop acid
Drop acid
 
Feltman collections
Feltman collectionsFeltman collections
Feltman collections
 
Feltman js4 vfp
Feltman js4 vfpFeltman js4 vfp
Feltman js4 vfp
 
Java script for foxpro developers
Java script for foxpro developersJava script for foxpro developers
Java script for foxpro developers
 
N tier web applications
N tier web applicationsN tier web applications
N tier web applications
 
What’s new in x case 8
What’s new in x case 8What’s new in x case 8
What’s new in x case 8
 
Web 101
Web 101Web 101
Web 101
 
VFP & Ajax
VFP & AjaxVFP & Ajax
VFP & Ajax
 
Error handling in visual fox pro 9
Error handling in visual fox pro 9Error handling in visual fox pro 9
Error handling in visual fox pro 9
 
Docking from a z in visual fox pro 9
Docking from a z in visual fox pro 9Docking from a z in visual fox pro 9
Docking from a z in visual fox pro 9
 
Client server
Client serverClient server
Client server
 
Introduction to afp
Introduction to afpIntroduction to afp
Introduction to afp
 
Where do you want to go today 2007
Where do you want to go today   2007Where do you want to go today   2007
Where do you want to go today 2007
 
Where do you want to go today
Where do you want to go todayWhere do you want to go today
Where do you want to go today
 

Html and visual fox pro

  • 2. About Me  President/Founder F1 Technologies since 1990  Co-author Visual FoxExpress  Speaker  Consultant  Xbase Developer since dBase III/FoxBase 1987  Web Developer since 1994
  • 4. Agenda  HTML Features in VFP  Generating HTML with VFP  Parsing HTML with VFP
  • 5. HTML Features in VFP  Save as HTML  Web Publishing Wizard  GenHTML  Foundation Classes  HTML Report Listener
  • 6. Save as HTML  What  Allows forms, menu, reports and tables to be saved as HTML.  How  Open/Create a Form, Menu, Report or Table  From File Menu Choose Save as HTML  Why  Limited use for forms & tables  Useless for menus.  Moderately Useful for reports.
  • 7. Using the Web Publishing Wizard  What  Generates HTML, Script and more for use in publishing data  How  Tools -> Wizards –> Web Publishing  Why  Generate HTML to publish on the web or distribute  Generate Code to use in applications to generate HTML on the fly.  Most useful output formats are IE only.
  • 8. GenHTML.PRG  What  Default HTML generation program for VFP  Referenced by _GENHTML  GENHTML.PRG in VFP HOME() directory.  Called by all we’ve covered so far  How  Do (_GENHTML) WITH …  Why  Automate publishing reports/data to HTML
  • 9. HTML Foundation Classes  What  HOME() + [FFC_INTERNET.VCX]  _DBF2HTML  _FRX2HTML  _SCX2HTML  HOW  FFCSample.PRG, FFCSAMPLE2.PRG & FFCSAMPLE3.PRG  Why  Generate an HTML Table, Output an SCX layout to HTML, Output a report to HTML
  • 10. HTML Report Listener  Most Useful of Built-In Features  See Cathy Pountney’s Session: Making the Most of VFP 9 SP2 Reports 
  • 11. HTML Report Listener  New Advanced Page in Expression Dialog in SP2  HTML Related Properties  HTML.Link  HTML.Anchor (Name)  HTML.Alt-Title  CSSClass.OverrideFRX  CSSClass.ExtendFRX  HTML.PrintablePageLink  Example: FanList2.FRX
  • 12. Generating HTML with VFP  SQL Select directly to HTML  XML & XSLT  CursorToHTML Class  GenForm Class  HTML Text Merge
  • 13. SQL Select to HTML  What  Use VFP SQL Select to generate HTML  How  How  SQL Select to Text File w/ HTML  SelectToHTML.PRG  Why  Easy  Performance
  • 14. XML & XSLT  What  Uses XML and XSLT (via COM or .NET interop) to convert XML to HTML  XSLT = EXtensible Stylesheet Language Transformations  How  XSLTExample.prg, XSLTExample2.prg, GenericXSLT.PRG  Why  Output data to HTML using XSLT  Use .NET framework  Performance
  • 15. CursorToHTML Class  What  Class to render HTML from VFP data  How  Instantiate, set properties, render  TestCursorToHTML1 - 6.PRG  Why  Fast, Flexible, Easy, All VFP
  • 16. Parsing HTML with VFP  What  Read HTML into VFP  How  ALINES()  STREXTRACT()  IE Automation  ParseDemo.PRG  ParseDemo3.PRG  Why  Data Mining  HTML manipulation
  • 17. Conclusion  VFP has a number of built-in ways to generate HTML  Most uses are limited  It’s easy to roll your own HTML generators  VFP’s String Handing Capabilities make it easy to parse HTML  IE Automation is also an easy way to parse HTML