Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

How to load rtf in richtextbox with header and footer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sahil - 05 Mar 2008 06:14 GMT
Hi everyone,

I am trying to load  an rtf in a richtextbox with header and footer
but i am not able to do that.
Can any one tell how i can do this.
Or is there any other control  in C# that can solve my problem..

If you have any solution than please mail me  at
khaleek_ahmad@yahoo.com

Thanks & Regards
Khaleek ahmad
Peter Duniho - 05 Mar 2008 07:24 GMT
> Hi everyone,
>
> I am trying to load  an rtf in a richtextbox with header and footer
> but i am not able to do that.
> Can any one tell how i can do this.

Maybe you could be more specific.  Are you expecting the document-level  
RTF codes that specify a header and footer to work inside a RichTextBox?

If so, it doesn't surprise me at all that that doesn't work.  The  
RichTextBox uses RTF as the formatting interface, but that doesn't mean  
that it supports everything that RTF does.  I would only expect things  
that pertain to formatting the text itself to have any effect.  Margins,  
page breaks, headers/footers, etc. are all things that I would not expect  
to be relevant when there's not any document page to relate those items to.

> Or is there any other control  in C# that can solve my problem..

Without more specifics regarding what you really expect to happen, it's  
hard to say.  But no, I don't think that there's a control that works like  
a page.

On the other hand, you might try using the built-in print-preview  
support.  That _does_ operate basically on a page level, and if you embed  
it into your own control that could produce the visual results you're  
looking for (albeit at a significant performance cost, since you'd be  
dragging the printer driver into the processing).

Of course, depending on what visual results you're really looking for,  
it's possible that a few RichTextBox controls directly next to each other  
would serve your purpose.  Or that some sort of simple custom control  
might as well.  Like I said, it's hard to say without a more specific  
problem description.

> If you have any solution than please mail me  at
> khaleek_ahmad@yahoo.com

I guess no one ever bothered to tell you that it's VERY rude to post a  
question on a newsgroup and then ask for replies to be emailed to you.

If your question is important enough for you to post it here, it's  
important enough for you to read the answer here.

Pete

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.