Well, i was wrong… the problem doesn’t have to do with importing. The borders seems to get lost when saving a document to a client browser…
the following is in an aspx page. All it does is open a document, and add a cell with borders to it.
As written, the borders will not appear in the browser. However, the document saved to the file system shows the borders correctly. The borders also show correctly when the save format is HTML.
private void Page_Load(object sender, System.EventArgs e)
{
Document m_document;
DocumentBuilder m_builder;
m_document = new Document ("d:\\dev\\asposeTest\\test2\\blankDoc.doc");
m_builder = new DocumentBuilder(m_document);
m_builder.StartTable();
m_builder.CellFormat.Width = 100f;
m_builder.InsertCell();
m_builder.CellFormat.Borders[BorderType.Top].LineStyle = LineStyle.Single;
m_builder.CellFormat.Borders[BorderType.Bottom].LineStyle = LineStyle.Single;
m_builder.CellFormat.Borders[BorderType.Left].LineStyle = LineStyle.Single;
m_builder.CellFormat.Borders[BorderType.Right].LineStyle = LineStyle.Single;
m_builder.Writeln("Row 1, Cell 1");
m_builder.EndRow();
m_builder.EndTable();
m_document.Save("d:\\dev\\asposeTest\\test2\\docOutput.doc");
//m_document.Save("EMS.doc", SaveFormat.FormatDocument
// , SaveType.OpenInBrowser, HttpContext.Current.Response);
m_document.Save("Document", SaveFormat.FormatHtml,
SaveType.OpenInBrowser, HttpContext.Current.Response);
}