Converting RTF files to DOCX after export
 
Product:
 
Export Utility for Notes
>
Export to MS-Word
>
Version
All
 
Platform(s):
 
Windows
 
Edition(s):
 
All
 
Doc Number:
 
1000103
Published
31-Aug-2017
Last Updated: 05-Apr-2020
 General Information
This support note provides LotusScript code you can use in the Post-Export custom script section of the export profile to convert all exported RTF files to DOCX files.
 Solution
Note: As of version 6.66 of the Export Utility you can export Lotus Notes documents directly to the Microsoft Word DOCX format. Please click the following link for information on enabling the feature to export to DOCX ...
If you are using the Export Utility 6.65 or earlier then continue reading for a workaround to convert exported RTF files to the DOCX format.
Please note: the attached LotusScript code is provided as-is and has been tested with Microsoft Word 2016. It may not work under all circumstances. It is provided as a convenience only and is not supported. If you make improvements to the code to make it work better or resolve an issue you experienced please let us know so we can update the information posted here for the benefit of everyone.
Here are the steps to implement the code:
Open the attached text file and copy all the code in it to the Windows clipboard.
Open the export profile for the MS-Word export.
Make sure the export profile has been put into Edit mode.
Go to the Custom Scripts -> Post Export section of the export profile.
Click the checkbox next to 'Run this script on next export' near the top of the section.
Paste the code into the field that appears underneath the 'Enter the custom script in the field below' label.
Update the value specified for the '
SourceFolder
' object to indicate the top level folder name to start searching for the rtf files to convert.
Make any other required customizations to the code.
Run the export as usual
Convert rtf to docx.txt
 
Related Attachments
©
2020
AGE Computer Consultancy. All rights reserved.
Material may not be reproduced or distributed in any form without permission.