Question about the new- streamlined .Save(string fileName) method in C#.NET

I have the .Save() method in my code to convert a .DOC file to .PDF - that all works great. However, later on in my code I have to move that converted .PDF file somewhere else. Recently after introducng the new (without “washing” the .DOC thru .XML) .Save() method, my code began throwing this error…
The process cannot access the file ‘xxxxxxxx.pdf’ because it is being used by another process.
…when trying to move the newly converted .PDF . I suspect this is because the Save() has not completed yet. There doesn’t seem to be a .Close and/or .Dispose method for the Aspose.Words.Document object.
Do you have any suggestions on what I can do to ensure that the .Save() has completed before I try and move it?
BTW - I am getting the same error for the new Aspose.Cells.Workbook.Save(string fileName) as well when I convert Excel spreadsheets to .PDF.

Please close this support request. During a peer code review, it was discovered that fileStreams were not being properly Closed & Disposed. This had nothing to do with Aspose - sorry for the inconvenience.

Hi

It is nice that you have found the reason and resolved the problem.
Best regards.