I have an iPad app that creates Word Documents from data entered.
Originally i was using html word documents but these wont open in Pages.
I switch to using a RTF file which works for both.
I have a template where i replace sections of text like so:
[template replaceOccurrencesOfString:@"**DATE**" withString:[NSString stringWithFormat:@"%@",startDate] options:NSCaseInsensitiveSearch range:NSMakeRange(0, [template length])];
I can replace the text fine and save as expected.
However the carriage return \n new line character is ignored. I have tried replacing the \n with \r \r\n and \par to no avail
What do i need to replace the carriage return so that it works once saved. Currently it is ignored.
Thank
Dan
Failure of that - a way to create Word documents that work on Both Pages and Word would be great