Hello,
I have a document that uses table for document layout. After calling Document.Save method the column widths are changed. The document produced appears to be all squashed together and details pushed together.
Here is the code:
class Program
{
static void Main(string[] args)
{
RegisterAsposeWords();
string inputFile = @"c:\temp\InputFile.docx";
string outputFile = @"c:\temp\OutputFile.docx";
SaveDocument(inputFile, outputFile);
}
private static void RegisterAsposeWords()
{
var license = new Aspose.Words.License();
license.SetLicense("Aspose.Total.lic");
}
private static void SaveDocument(string inputFile, string outputFile)
{
var document = new Document(inputFile);
document.Save(outputFile);
}
}
Here is what the input and output document looks like:
Sample input and output document.JPG (257.9 KB)
I have attached a sample console application project. Please save “InputFile.docx” to c:\temp
and include a “Aspose.Total.lic” as Embedded Resource
DocumentSave.zip (353.7 KB)