This application allows the end user to capture the HTML from a web page for later use.
The first navigation button is the Home Button. Click it when you want to reset the browser to it’s home location.
The second navigation control is the Back Button. This control allows the end user to navigate to the previous page.
The third control is the Forward button. This control allows the end user to move in a forward direction in the web surfing session.
The fourth control is the Save File button. This control allows the user to save HTML files of visited web pages.
Below is the control record for this application.
/// Dialog Record Area frm017_area = record /// Caption Caption: string; /// Target Location for Saved Files targetLoc: string; /// Save File Name Prefix filePref: string; /// File Name Incrementor fileInc: Integer; end;
The application detects whether the “targetLoc” contains a valid value. If not a dialog is displayed to select the target folder.
The application then checks for the “filePref” contains a valid value. If it does not a dialog collects the prefix and the “fileInc” value is initialized.
The application appends the incremented number to the file name prefix and adds the “.txt” extension.
After each page is saved to a file the “fileInc” field is incremented by one. This feature allows for an ongoing collection session without file name collisions.
A 32 bit executable program may be downloaded by clicking here.
A 64 bit executable program may be downloaded by clicking here.
The component documentation can be found by clicking here.
The source code may be found by clicking here.
Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.