Forgive me, for I know nothing about WordXP–and we’re converting this weekend….
If anyone can help out, I would very much appreciate it.
What I’m trying to do: We have Word documents that need to be uploaded to a mainframe. In order to upload the documents, the lines need to be a maximum of 70 characters in length. If they’re longer, the lines cut off when uploaded.
My current solution: In Word97, I can format a document so that it will have no more than 70 characters per line, then save it in a Text format that adds line breaks at the end of each line. The command is as simple as ActiveDocument.SaveAs FileFormat:=wdFormatTextLineBreaks.
What _should_ be the solution: In XP, the above command doesn’t work (generates an error). The code in XP looks like this: ActiveDocument.SaveAs FileFormat:= wdFormatText, InsertLineBreaks:=True, LineEnding:=wdCRLF.
The problem: The code for XP does NOT work. I don’t know why. If you save the file manually (by clicking on File–>Save As), you click on Insert Line Breaks and choose the line eding of CRLF. When you open the document, it looks great, with line breaks in all the proper place. But when you try to do this through code, it doesn’t do anything.
Has anyone tried to do anything similar? Any ideas of what I should be looking for to make this work properly?
TIA!
Cecilia
Hoping that this is not a sign of XP things to come.