Quick Search for:  in language:    
Also,known,DocPreview,functional,program,prov
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,011,557. lines
 Jobs: 115. postings

 How to support the site

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for Visual Basic
Click here to see a screenshot of this code!A#vb Undernet suczs
By Xasan on 6/30

(Screen Shot)

CAPS Trigger
By Trevor Burley on 6/30


Auto clip picture
By Kenneth. Jakobsen on 6/30


Click here to see a screenshot of this code!Game of life clone (cool math)
By Johannes B on 6/30

(Screen Shot)

String to CHR()
By Nikhil Raj on 6/30


Encryption Decryption Demo
By Nikhil Raj on 6/30


Click here to see a screenshot of this code!Serial Registration
By Christian (eXonite Team) on 6/30

(Screen Shot)

Click here to see a screenshot of this code!Danger:Can pc kill me? interesting article
By Xasan on 6/30

(Screen Shot)

AniViewer
By Jerrame Hertz on 6/30


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

RTPrintPreview

Print
Email
 
winzip icon
Submitted on: 7/6/1999
By: Herman L 
Level: Advanced
User Rating: By 108 Users
Compatibility:VB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0, VB Script, ASP (Active Server Pages)

Users have accessed this code 16064 times.
 
 
     (Also known as DocPreview) A functional program to provide print preview and actual printing facilities for RichText documents in a text editor. Written in VB, the program includes functions such as preview Zoom-in and Zoom-out, page margins setup, selection of any specific page to preview and selection of any ange of pages to print. It even allows you to selectively print a highlighted text and/or picture only, etc.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 7 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
7/7/1999 12:48:00 AM:Tigger
Excellent job... works well. 
But, 
to be picky; if you could get the 
printer linewidth without having to 
call a print job then the printer 
messenger service wouldn't be 
activated... even though you're not 
printing anything.
Still, V.Good
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/8/1999 11:09:00 AM:Bruce Wexler
FINALLY! Something that works! And I 
learned SO much from studying this 
code. I am an intermediate VB student, 
and this is something I learned so much 
from (and no, I did not take any 
credit, the teacher wouldn't have 
believed I did this. I would've gotten 
myself kicked out of the class!) Thank 
you, thank you ,thank you Herman, 
whoever you are. I LOVE YOU MAN! (Hey, 
BTW, if you get a chance, could you 
show me a quick way to create a text 
editor with a Common Dialog Control and 
MDI forms?) - Bruce
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/8/1999 6:11:00 PM:Ann Lord
Can you explain how to get headings and 
page numbers onto the preview - using a 
txt file as input rather than a rtf.??
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/10/1999 6:28:00 AM:Argun TURE
Thank you for the zip...
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/14/1999 8:15:00 AM:Brett
Your project must have been done in VB6 
since it won't load in VB5 without 
numerous complaints.
Do you plan on 
posting a VB5 version?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/14/1999 8:40:00 AM:Herman
Brett: Yes, VB6. Sorry I have no plan 
to try a VB5 version.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/10/1999 6:12:00 PM:Andy
Brett: open the vbp file in a text 
editor and remvoe the line that says 
"Retained=". This will generally allow 
vb 6 projects to be opened in vb 5
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/26/1999 1:36:00 AM:saman
how can make a MDI in Hebrow languege
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/30/1999 12:24:00 AM:Manu Gupta
Nice code. Thanks. Could you tell me 
how to add printing odd pages or even 
pages to the print dialog box. This 
functionality is provided in MS Word. 
It allows printing pages back to back 
for half duplex printers.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/29/1999 12:47:00 PM:Dennis
Great piece of code, thanks.
I have 
managed to incorporate the code into an 
SDI text editor/word pro that I am 
working on, and so far it works fine, 
but, the printout only prints a 25% 
version of the text, even when I do not 
use your print routine and return to 
using another one after doc preview. 
HEEEEELLLLLPPPPP!!.
Thanks for the 
great work.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/3/1999 3:36:00 PM:Herman
Manu:  In VB, I am afraid you have to 
do it programatically.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/11/1999 4:40:00 PM:Sonny FErguson
Greate code.
I would loke to know why, 
when I put this
in a MDI program I'm 
making to test it
that it always loads 
a new document.
I created an MDI word 
processor (text editor) with an rtf 
control
from the wizard and am using 
your code
to do the PrintPreview. But 
every time I click on
the PrintPreview 
menu item, it loads a new 
document
then the PrintPreview shows 
up with
nothing in it.
But good code 
and thanks.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/11/1999 6:00:00 PM:Herman
Sonny: The following original 
arrangements are relevant - (a) 
AutoShowChildren property of MDI 
frmFrame is set to True (b) 
frmDocPreview MDIChild property is  
False (so is frmPageSetUp). (c) 
frmDocMaster MDIChild is True. (d) 
Project Start up is from Sub Main. (e) 
Sub MDIForm_Load() has the following 
lines: Dim frmD As frmDocMaster, Set 
frmD = New frmDocMaster, 
frmD.Show.
Please check what 
variation(s) you have made in your 
testing.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/4/2000 2:58:30 PM:wazerface
DANG!!!! Great code!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/25/2001 9:18:31 AM:Robin McKay
I am making an RTF Editor and am using 
your code for it. I plan to release the 
RTF Editor when I have enough 
functionality though its gonna be here 
on PSC, absolutely free. 
Your code 
is extremely effective for previewing 
the contents of a rich text box and you 
deserve to have an award for the 
contest winner. Well Done You get 5 
globes from me, no problem.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/19/2002 8:11:10 PM:bickern
After looking at this I had to look at 
your other submissions.
What can I 
say.
Great stuff and keep up the 
good work.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.