Text field with line break


#1

HI, My web asp.net application have a text field call “remarks” which allow user to input text in point form or with line break. And it will show in one powerpoint slide. however, aspose.slide doesnt accept line break. is there any suggestion to me to do it?


#2

There are 2 ways:
1. Put text with line breaks to TextFrame.Text property. And after that change formatting for all generated paragraphs and portions.
2. Split your input text by yourself and create paragraphs. Really there is nothing difficult.


#3

thanks, by any chance, do you have any sample code for asp.net or vb.net for me to have a look? thanks!


#4

Check code at the end of this thread.
http://www.aspose.com/Community/forums/thread/40338.aspx
Hope it will be useful for you.


#5

I cant download the Attachment file: ReplaceTokensInParagraphs.txt in the last post, any idea?


#6

Can you download it here? That is not splitting text example but just advanced work
with paragraphs our customer use.

How to split text please check MSDN String.Split method or may be this thread:
http://www.aspose.com/Community/forums/thread/41280.aspx


#7

cool, thanks alot


#8

[There are 2 ways:
1. Put text with line breaks to TextFrame.Text property. And after that change formatting for all generated paragraphs and portions.
2. Split your input text by yourself and create paragraphs. Really there is nothing difficult.]


when i read the sample, i cant really understand~!

doesnt anyone have a simple example? i have read the wiki, still cant find the idea. please help me with the simple example with item 1 or item 2.

thanks alot