Reporting is a very important functionality in any application. The ability for the software to generate reports that can later be e-mailed, printed, and published on the Web, can prove the visibility of the system. In this section, we will learn how to generate an HTML report for our excavation design:
If necessary, open the
Yharnam
project as administrator.Double-click on
frmDesignManager.vb
to view the form designer.Double-click on the Report button to generate the
btmReport_Click
method.This is a straightforward functionality. We will simply build an HTML file and write all form details into the file as follows:
Private Sub btnReport_Click(sender As Object, e As EventArgs) Handles btnReport.Click Dim sHTML As String = "" sHTML &= "<html><body><br>" sHTML &= "<h1>Yharnam Excavation Planning Manager:</h1>" sHTML &= "<b>DesignID:</b> " & txtDesignID.Text...