sairam

sairam

  • NA
  • 69
  • 0

RichTextBox PageBreaks-

Nov 24 2008 11:59 AM

Hi

I have a question about Pgae Breaks in RichTextBox. My query is explained below.

I have two forms. F1 and F2.

F1 contains a richtextbox. I enter some data in rich text box. My text is given below.

for ex.

aaaaaaaaa

bbbbbbbbb

cccccccc

dddddddd

After entering this data i save this content of RichTextBox In database.   I dont have any problem till here.

In F2 form, i extract the data created in Form1 and Print it.I cannot edit the data in F2. Neither i can edit the richtextbox content in F2. All i have to do is extract data in the richtextbox present in F2 and print it.

But i want ccccccc to be printed in a new page and ddddddddd to be printed in a new page. So how shud the data move automatically to the beginning of a new page and print

SO all i need is how shud i create a page break and print the text in separate pages. If at all it is impossible to create page breaks , can we use any tags in richtext box which allows the text after the tag to be printed in new page.

 

Please Let me know,

Thanks