Hi,
I hope this message finds you well. I am reaching out in response to the issue you encountered while trying to convert a .doc file to a .txt file using Spire.Doc version 9.4 in Visual Studio 2022 Community.
Upon testing the scenario with the environment and version you specified, I can confirm that the FileFormat.Txt enum value does exist. To address the problem you faced, I recommend creating a new project and ensuring that the necessary packages are properly imported. Subsequently, you can retest the conversion process to see if the issue persists.
Additionally, I would like to suggest an alternative method for saving the document directly to a .txt file using the following code snippet:
- Code: Select all
doc.SaveToTxt("sample.txt", Encoding.UTF8);
I encourage you to try this alternative approach and verify if it meets your requirements. Should you encounter any further difficulties or have any questions, please do not hesitate to reach out to us promptly for assistance.
Best regards,
Triste
E-iceblue support team