Click here to Skip to main content
16,018,650 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i wanna create an editor like microsoft word!
i dont mean that efficient and complex! just a simple one!
so how can i simulate the PAGES !? for ex. page 1, page 2, ... in ms word! the blank pages i mean! that we can WRITE TEXT in the pages, and IMPORT PICTURES, and SAVE the file for example!
what control should i use that contains at least these three conditions? richtextbox (as many as the pages)!? ..?
thank you and sorry for my bad english.
Posted

1 solution

Since you probably are going to show a page at time, you don't need a richtextbox for each page. You may just store all the needed page info in a object of (your own defined) class Page (your Document would be a collection, at least an array, of Page objects) and load the current page content into the richtextbox.
 
Share this answer
 
Comments
Mohamad77 26-Dec-11 15:15pm    
thank you for answering,
but would you please explain more about storing my pages info (containing pictures) in an object :-? i'm sorry i didn't understand.
i wonder how the microsoft done it in MS WORD!? what's behind MS WORD's pages !!?
please help me, i realy need it !
thanks again.
CPallini 26-Dec-11 16:48pm    
Forget Word (at least for a while) and start with minimal requirements, for instance plain text. You may design a class Page having all the required attributes for actually rendering the contained text (for instance the text itself, the font properties and so on...)
Mohamad77 27-Dec-11 15:07pm    
so you mean that I forget including picture, ok thanks, plaese show me how I can design a class Page!?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900