I just replaced all the \n from the feed with \line for the rtf like so:
rtf[i] = elements[i].Value.Replace("\n", @"\line ")

2008/10/7 Jochen Hartmann (Google) <[EMAIL PROTECTED]>

>
> Aaron,
>
> Glad to hear that it's working. Can you post what you did end up using
> instead of \n for future c# developers.
>
> Thanks
> - Jochen
>
> On Oct 3, 9:21 pm, "SICU BOOK" <[EMAIL PROTECTED]> wrote:
> > Oops. Just figured out my newbie mistake - '\n' doesn't mean newline in
> rtf.
> > Solved!
> > Will 'rtfd' first next time.
> > Aaron
> >
> > 2008/10/4 SICU BOOK <[EMAIL PROTECTED]>
> >
> > >  Thanks for your reply. The data is posted to using google forms - so
> the
> > > newlines do appear correctly on the spreadsheet gui. My csharp app
> retrieves
> > > the spreadsheet feed but somehow doesn't see the newlines.
> > > Aaron
> >
> > > 2008/10/4 Jochen Hartmann (Google) <[EMAIL PROTECTED]>
>  >
> > >> Hi,
> >
> > >> I may have spoken too soon. Can you tell me exactly how you are
> > >> sending this data ? Are you including actual newlines in your POST?
> >
> > >> Thanks
> > >> - Jochen
> >
> > >> On Oct 3, 3:04 pm, "Jochen Hartmann (Google)"
> > >>  <[EMAIL PROTECTED]> wrote:
> > >> > Hi,
> >
> > >> > Yes, this is a problem. I have created a feature request for this
> > >> > issue. Please star the link below to be notified of updates:
> >
> > >> >http://code.google.com/p/gdata-issues/issues/detail?id=812
> >
> > >> > Thanks
> > >> > - Jochen
> >
> > >> > On Oct 2, 10:41 pm, BookMaker <[EMAIL PROTECTED]> wrote:
> >
> > >> > > Hi guys.
> >
> > >> > > I have a spreadsheet cell with multiline text like so:
> > >> > > 1. Line 1
> > >> > > 2. Line2
> >
> > >> > > I use csharp express to retrieve a feed, and put the cell into a
> > >> > > string with something like:
> > >> > > str = cell.Text;
> >
> > >> > > However, when i put the string into an rtftextbox, it seems like
> the
> > >> > > linefeeds get lost. What displays is:
> > >> > > 1. Line 12. Line2
> >
> > >> > > How do I fix this? Thanks!
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to