Book Image

ArcGIS By Example

By : Hussein Nasser
Book Image

ArcGIS By Example

By: Hussein Nasser

Overview of this book

Table of Contents (17 chapters)
ArcGIS By Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Generating the excavation design report


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:

  1. If necessary, open the Yharnam project as administrator.

  2. Double-click on frmDesignManager.vb to view the form designer.

  3. Double-click on the Report button to generate the btmReport_Click method.

  4. 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...