C
Co
Hi All,
I'm trying to create a html file from VB.NET.
But when I run the code it stops at the next line:
Dim cssFile As String = Path.Combine(Path.GetDirectoryName("C:\"),
"preview.css")
If File.Exists(cssFile) Then
sb.Append("<style>" & vbLf)
sb.Append(My.Computer.FileSystem.ReadAllText(cssFile))
sb.Append("</style>" & vbLf)
End If
The file exists and has the following content:
..tableheader
{
font-size: 14px;
color: White;
background-color: #2c7393;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
..td {
font-size: 11px;
color: #666666;
background-color: #F0F0F0;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: none;
border-bottom-style:none;
}
..tr {
font-size: 11px;
color: #666666;
background-color: #F0F0F0;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: none;
border-bottom-style:none;
}
..form {
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
margin: 0px;
color: #000000;
}
I don't understand what is happening.
Can someone help me?
Marco
I'm trying to create a html file from VB.NET.
But when I run the code it stops at the next line:
Dim cssFile As String = Path.Combine(Path.GetDirectoryName("C:\"),
"preview.css")
If File.Exists(cssFile) Then
sb.Append("<style>" & vbLf)
sb.Append(My.Computer.FileSystem.ReadAllText(cssFile))
sb.Append("</style>" & vbLf)
End If
The file exists and has the following content:
..tableheader
{
font-size: 14px;
color: White;
background-color: #2c7393;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
..td {
font-size: 11px;
color: #666666;
background-color: #F0F0F0;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: none;
border-bottom-style:none;
}
..tr {
font-size: 11px;
color: #666666;
background-color: #F0F0F0;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: none;
border-bottom-style:none;
}
..form {
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
margin: 0px;
color: #000000;
}
I don't understand what is happening.
Can someone help me?
Marco