We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose Words and Fixed Width File

We are trying to read a fixed width file using Aspose but are running into issues because leading and trailing whitespace is removed. Which options should we use to read? See below for our sample code:

LoadOptions myOpts = new LoadOptions(); myOpts.AllowTrailingWhitespaceForListItems = false;
myOpts.LoadFormat = LoadFormat.Text;
myOpts.Encoding = System.Text.Encoding.UTF8;
Document doc = new Document(FileUpload1.PostedFile.FileName,myOpts);

Hi Katrina,

Thanks for your inquiry. Could you please attach your input document here for testing? We will investigate the issue on our side and provide you more information.