Get Blogged by JoKi

"The only frontiers are in your mind"
23 | 04 | 2017
Navigation
Latest Tweets

About me
Family guy, geek, entrepreneur, software craftsman: Visual FoxPro, C#, SQL Server, MySQL, Linux consultant, conference speaker

Certificates & Awards

Microsoft Certified Professional

Microsoft Specialist - Programming in HTML5 with JavaScript and CSS3 Specialist

Get in touch

Sharing is caring

Recent books


Sponsoring
If you like the information on these pages, your support is highly appreciated.
Thank you very much!
Affiliates

 

Spacer for layout formatting

HTML Plugin for Active FoxPro Pages

User Rating:☆☆☆☆☆ / 0
PoorBest 
Projects 14 July 2006 - 

HTML Plugin for Active FoxPro Pages

Motivation
Html Plugin is primarily a plug-in for Active FoxPro Pages. But that's only half the truth. The plug-in itself is build as a component and offers stand-alone functionality for VFP developers and through COM as well for other programming languages.
 
Setup and Installation
The setup routine installs and registers the component in Windows. The current version of the setup is available here:
 
 
Just get the file and follow the installation instructions.
 
Usage in Visual FoxPro
In VFP you just create an object like so:
 
Set Procedure To "html.plugin.dll" Additive
Html = CreateObject("CHTML")
 
If you have to use COM instead, then this works just fine:
 
Html = CreateObject("AFPPlugin.Html")
 
It was quite funny to get this component working in .NET Framework and I'm still working on this topic, but at the moment I got it to create my own namespace (tree) based on this single DLL. After you added a reference to the COM server, you'll have an new namespace tree instead of just one plain entry: ProLib.AFP3.Plugin.Html and due to COM interoperability in .NET the instance name of the class is simple HtmlClass.
 
I wrote a sample solution that's able to convert an RSS Feed to a .NET DataSet through the Html Plugin. Well, not too hard to implement in pure .NET but the fact is, that the plug-in provides the same functionality to VFP developers.
 
And Html Plugin is a core part of AfpWiki - a Wiki engine on top of Active FoxPro Pages. Actually the Html Plugin does all the stuff related to Regular Expressions. It's really nice to see that just one line of code parses all hyperlinks of the entire document and converts them into clickable links with 'title' attribute and protocol indicator. There is still a lot of work to do inside of AfpWiki, like backup and restore of the database, online upgrade mechanism as well as an abstraction layer to user authentication and management, but this will be implemented during a couple of weeks. You might check out http://faq.dfpug.de to see the system in action.
 
Ah, before I forget to mention Html Plugin and AfpWiki are both available for free (as in beer *g*). So, if anyone of you is interested in a Wiki solution just drop me a note.
 
Spacer for layout formatting