Hi,
The following code gives me a warning ("The file doca[1] cannot be opened because there are problems with the contents.") If I click OK it eventually displays the word document.
However, could you please let me know why I am getting this warning?
public void btnClick(object sender, EventArgs e)
{
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Write("ahbt");
doc.Save(HttpContext.Current.Response, "doca.docx", ContentDisposition.Inline, SaveOptions.CreateSaveOptions(SaveFormat.Docx));
}