This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Create a Print Preview using the data set in the rich text editor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Create a Print Preview using the data set in the rich text editor" Watch "Create a Print Preview using the data set in the rich text editor" New topic
Author

Create a Print Preview using the data set in the rich text editor

Pramod Krishna Murthy
Ranch Hand

Joined: Jun 30, 2009
Posts: 37

HI,
I need to create a print preview button in the jsp page. i am using a rich text editor in the jsp page and it has all the word editing functionalities. if the user clicks preview it should show a print preview of the text he has created.


"Nothing is forever except Change"
K West
Ranch Hand

Joined: Sep 10, 2008
Posts: 58

Show the innerHTML of the rich text editor in desired location.
K West
Ranch Hand

Joined: Sep 10, 2008
Posts: 58

I have used this editor [http://ckeditor.com/demo] and it has preview button with other features.
Pramod Krishna Murthy
Ranch Hand

Joined: Jun 30, 2009
Posts: 37

Thanks a lot for the reply and the time you have taken to help me out. It really helped me.
Pramod Krishna Murthy
Ranch Hand

Joined: Jun 30, 2009
Posts: 37

I need one more help from you.
i developed the rich text editor. now i need to save the text in the same format as it was in the editor. for this normally some text or some html tags will be appended to the text and will be saved. i saw the same thing in your application also. i even downloaded the source code and went through it. but when i tried to analyse it , my editor rendered it in one packed format. so i was not able to fully understand it. can you please give me the code that is appended with the text to recognize whether it is bold italic and so on. i need to insert it in this format for further processing.
Pramod Krishna Murthy
Ranch Hand

Joined: Jun 30, 2009
Posts: 37

I got it...
its working now...
 
jQuery in Action, 2nd edition
 
subject: Create a Print Preview using the data set in the rich text editor
 
Similar Threads
Printer friendly option from JSP
Printer friendly option in javascript
I want to display a print preview page
Change Text area's Limited Text Color
PageFormat and PrintRequestAttributeSet