SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente

Guia rapida de programacion vista 48 la
Guia rapida de programacion vista 48 laGuia rapida de programacion vista 48 la
Guia rapida de programacion vista 48 laJaime Ruiz
 
Varipulse - Milton Roy
Varipulse - Milton RoyVaripulse - Milton Roy
Varipulse - Milton RoyVibropac
 
Tự học sử dụng Linux
Tự học sử dụng LinuxTự học sử dụng Linux
Tự học sử dụng LinuxVu Hung Nguyen
 
Report on routing interface configuration
Report on routing interface configurationReport on routing interface configuration
Report on routing interface configurationDebjyotiSaha9
 
44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick
44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick
44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick44CON
 

La actualidad más candente (9)

acl configuration
acl configurationacl configuration
acl configuration
 
Guia rapida de programacion vista 48 la
Guia rapida de programacion vista 48 laGuia rapida de programacion vista 48 la
Guia rapida de programacion vista 48 la
 
Varipulse - Milton Roy
Varipulse - Milton RoyVaripulse - Milton Roy
Varipulse - Milton Roy
 
Honeywell EPKS System Certified
Honeywell EPKS System CertifiedHoneywell EPKS System Certified
Honeywell EPKS System Certified
 
Tự học sử dụng Linux
Tự học sử dụng LinuxTự học sử dụng Linux
Tự học sử dụng Linux
 
Report on routing interface configuration
Report on routing interface configurationReport on routing interface configuration
Report on routing interface configuration
 
Fanuc 15i alarms
Fanuc 15i alarmsFanuc 15i alarms
Fanuc 15i alarms
 
44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick
44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick
44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick
 
4. SMTP.ppt
4. SMTP.ppt4. SMTP.ppt
4. SMTP.ppt
 

Similar a Html and visual fox pro

Railo Presentation Railo 3.1
Railo Presentation Railo 3.1Railo Presentation Railo 3.1
Railo Presentation Railo 3.1Rhinofly
 
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
 
Html for desktop applications
Html for desktop applicationsHtml for desktop applications
Html for desktop applicationsMike Feltman
 
CustomizingStyleSheetsForHTMLOutputs
CustomizingStyleSheetsForHTMLOutputsCustomizingStyleSheetsForHTMLOutputs
CustomizingStyleSheetsForHTMLOutputsSuite Solutions
 
WPF 4 Series: Getting Started
WPF 4 Series: Getting StartedWPF 4 Series: Getting Started
WPF 4 Series: Getting StartedGhasem Karimi
 
Wpf4 july2010
 Wpf4 july2010 Wpf4 july2010
Wpf4 july2010tedhu
 
Webform Server 351 Architecture and Overview
Webform Server 351 Architecture and OverviewWebform Server 351 Architecture and Overview
Webform Server 351 Architecture and Overviewddrschiw
 
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 MinutesIn a Rocket
 
Best Implementation Practices with BI Publisher
Best Implementation Practices with BI PublisherBest Implementation Practices with BI Publisher
Best Implementation Practices with BI PublisherMohan Dutt
 
Wiring the Web
Wiring the WebWiring the Web
Wiring the Webgoodfriday
 
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)Safe Software
 
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 symfonyFrancois Zaninotto
 
The Zeitgeist Movement
The Zeitgeist MovementThe Zeitgeist Movement
The Zeitgeist Movementguest915c8c5
 
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 BookingJagannadham Thunuguntla
 
How and Why to extend Firefox
How and Why to extend FirefoxHow and Why to extend Firefox
How and Why to extend FirefoxGraham King
 

Similar a 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
 

Más de Mike Feltman

Feltman collections
Feltman collectionsFeltman collections
Feltman collectionsMike Feltman
 
Java script for foxpro developers
Java script for foxpro developersJava script for foxpro developers
Java script for foxpro developersMike Feltman
 
N tier web applications
N tier web applicationsN tier web applications
N tier web applicationsMike Feltman
 
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 8Mike Feltman
 
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 9Mike Feltman
 
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 9Mike Feltman
 
Introduction to afp
Introduction to afpIntroduction to afp
Introduction to afpMike Feltman
 
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 2007Mike Feltman
 
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 todayMike Feltman
 

Más de 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