I am facing some problem while replacing string in a document using Range object.
The sample code is
Range oRange = m_oOutDoc.Range;<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
int nReplace = oRange.Replace(“, “\r\r\rNovember 28, 007\r\r\rAB Road ", false, false);
The last statement actually throwing exception
“The replace string cannot contain special or break characters.”
Teh placeholder exists in a document and I'm reading the address from another document and repalcing the placeholder. The address read from the other document contains newline characters.