I have created a program that merges files and I have decided to output the results as an HTML document so that it is legible. I have achieved this output using System.IO.StreamWriter and creating a textfile with all the html formatting and in-line CSS and saving it with the .html extension like so:
Dim lstrBackupOutput = "Test.html"
Dim lobjWriter As New System.IO.StreamWriter(lstrBackupOutput)
Dim lobjWriter as
lobjWriter.WriteLine("<html>")
lobjWriter.WriteLine("</head>")
lobjWriter.WriteLine("<style type=""text/css""> h1,h2,h3{font-family:Arial, Serif;} table{border-collapse:collapse; width:100%; font-family:Arial,Helvetica,Sans-serif;} th{height:30px;} td{text-align:left; padding:7px;} table, th, td{border:1px solid green;} </style>")
lobjWriter.WriteLine("</head>")
etc.
Is there more of a VB.NET way to do this? Most of my searches churn out ASP.NET results that don't seem to apply.
Thanks.