I was able to get past that, now i'm back to my very original problem. Code below, i'm taking my html string, converting it to a word doc, then to a pdf. it does it, but the text ends up smushed together. it looks ok in the word doc, just not in the pdf after the conversion.
***** CODE ******
Dim buffer() As Byte
Dim encoder As New System.Text.ASCIIEncoding
Dim str As String = "
" + FN(dat, "ctext") + "
"
ReDim buffer(str.Length - 1)
encoder.GetBytes(str, 0, str.Length, buffer, 0)
Dim ms As MemoryStream = New MemoryStream(buffer, False)
Dim license As Aspose.Words.License = New Aspose.Words.License
license.SetLicense(Request.ServerVariables("APPL_PHYSICAL_PATH") + "bin\Aspose.Words.lic")
Dim license2 As Aspose.pdf.License = New Aspose.pdf.License
license2.SetLicense(Request.ServerVariables("APPL_PHYSICAL_PATH") + "bin\Aspose.PDF.lic")
Dim WDoc As Aspose.Words.Document = New Aspose.Words.Document(ms)
WDoc.Save(Request.ServerVariables("APPL_PHYSICAL_PATH") + "temp\" + TempFileName + ".doc",SaveFormat.Html)
Dim ms2 As MemoryStream = New MemoryStream
Dim xml As XmlDocument = New XmlDocument
WDoc.Save(ms2, Aspose.Words.SaveFormat.FormatAsposePdf)
ms2.Position = 0
xml.Load(ms2)
Dim pdf As New Aspose.Pdf.Pdf
pdf.IsTruetypeFontMapCached = False
pdf.BindXML(xml, Nothing)
ms2.Close()
Dim pdfMS As MemoryStream = New MemoryStream
pdf.Save(Request.ServerVariables("APPL_PHYSICAL_PATH") + "temp\" + TempFileName)
WDoc = Nothing
pdf = Nothing
Dim ReadStream As System.IO.FileStream = New System.IO.FileStream(Request.ServerVariables("APPL_PHYSICAL_PATH") + "temp\" + TempFileName, FileMode.Open, FileAccess.Read)
Dim FileLen As Integer
Dim arrFile(ReadStream.Length) As Byte
ReadStream.Read(arrFile, 0, ReadStream.Length)
Response.ContentType = "application/pdf"
Response.BinaryWrite(arrFile)
Response.Flush()
ReadStream.Close()
**** END CODE ******