Hi,
I am developing a program similar to Notepad called Notes 2006. have done most of the subs and functions and made classes. I have put in a print function that saves the file to the users temp directory and then prints the file and deletes it. This doesn't work i get a header with RTF information. I also need help in making a print preview dialog show the contents of a rich text box. If you reply could you make a class for the code called NotesPrintPreview so i can copy it into a new file.
Thanks,
Andrew Pope
p.s. please reply a.s.a.p.

Help with PrintPreview
SollenbC
I don't have the time to write a complete class for you. But, here's a link to another set of posts on this forum, that does what you want. Adapting it to work with a RichTextBox isn't all that hard to do.
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=370932&SiteID=1
Read down thru all the posts there and you will see how it's done.
OH, and post the code you have for Saving the RTF file that you are having problems with. It is easier to help you fix it, if we can see what you have done so far.
james
aka:Trucker
parheric
i have got the print function fine now thanks!
andy