<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DELPHI AREA &#187; Delphi  8</title>
	<atom:link href="http://www.delphiarea.com/articles/tag/d8/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.delphiarea.com</link>
	<description>DELPHI AREA is a Delphi resource website offering freeware and open source Delphi components, packages, and applications.  DELPHI AREA has also a forum to discuss and answer the questions about Delphi programming.</description>
	<lastBuildDate>Tue, 28 Jun 2011 17:34:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Print Preview Components</title>
		<link>http://www.delphiarea.com/products/delphi-components/preview/</link>
		<comments>http://www.delphiarea.com/products/delphi-components/preview/#comments</comments>
		<pubDate>Thu, 31 Dec 1998 20:30:06 +0000</pubDate>
		<dc:creator>Kambiz</dc:creator>
				<category><![CDATA[Delphi Products]]></category>
		<category><![CDATA[Delphi  3]]></category>
		<category><![CDATA[Delphi  4]]></category>
		<category><![CDATA[Delphi  5]]></category>
		<category><![CDATA[Delphi  6]]></category>
		<category><![CDATA[Delphi  7]]></category>
		<category><![CDATA[Delphi  8]]></category>
		<category><![CDATA[Delphi 2005]]></category>
		<category><![CDATA[Delphi 2006]]></category>
		<category><![CDATA[Delphi 2007]]></category>
		<category><![CDATA[Delphi 2009]]></category>
		<category><![CDATA[Delphi 2010]]></category>
		<category><![CDATA[Freeware]]></category>
		<category><![CDATA[Source Included]]></category>

		<guid isPermaLink="false">http://www.delphiarea.com/?page_id=43</guid>
		<description><![CDATA[The Print Preview components provide an easy way to control the printer, mange its settings, and display a preview of the output to the end-user. In addition, the user can easily navigate through the preview pages, manipulate them, and even save them as a PDF or multi-frame TIFF file.]]></description>
			<content:encoded><![CDATA[<p>The print preview components consist of three visual components for low level print and print preview. All of these components are fully customizable and have extensive set of useful methods and events.</p>
<h4>TPrintPreview</h4>
<p>TPrintPreview is a descendent of TScrollBox and has properties of both TScrollBox and TPrinter classes. Key features of TPrintPreview are:</p>
<ul>
<li>Supports almost unlimited amount of pages</li>
<li>Automatically adjusts printer&#8217;s paper size and orientation at the print time</li>
<li>Automatically adjusts mapping modes</li>
<li>Preview pages can be scaled with an arbitrarily zoom factor</li>
<li>Shows created pages while new pages are being processed</li>
<li>Displayed pages can be scrolled by mouse dragging</li>
<li>Pages can be saved/restored to/from disk</li>
<li>Each page is accessible as a Windows Metafile image</li>
<li>Has some methods for rendering rich text format</li>
<li>Can manage custom forms (custom paper sizes)</li>
<li>Allows background and annotation for both print and preview pages</li>
<li>Both preview and print pages can be displayed in grayscale, with ability to adjust brightness and contrast</li>
<li>Allows inserting, replacing, editing, deleting, and reordering of pages freely at any time
<li>By using <a href="http://delphistep.cis.si" target="_blank">dsPDF library</a> or <a href="http://www.synopse.info" target="_blank">Synopse PDF library</a>, can save pages as PDF</li>
<li>Can save pages as multi-page TIFF image</li>
<li>Has a complete set of events</li>
</ul>
<p><img src="http://www.delphiarea.com/wp-content/uploads/preview1.png" alt="" width="543" height="704" class="aligncenter" /></p>
<h4>TThumbnailPreview</h4>
<p>The TThumbnailPreview control is a special ListView for showing thumbnails of pages generated by TPrintPreview control.</p>
<p>Not only you can use this control to show thumbnail of pages, but also the users can get benefit of it to do some actions (e.g. delete, print, move, &#8230;) on the selected pages.<br />
<img src="http://www.delphiarea.com/wp-content/uploads/preview2.png" alt="" width="560" height="626" class="aligncenter" /></p>
<h4>TPaperPreview</h4>
<p>The TPaperPreview control represents a sheet of paper in the TPrintPreview control, but you can use it as standalone too.</p>
<p>Usage of the TPaperPreview control is very similar to TPainBox control of Delphi. However, in opposite of TPainBox, the TPaperPreview control caches the last paint and do not generate redundant OnPaint events. It also paints only invalidate part of the control not the entire client area. Because of that, this control is much more efficient than TPaintBox control.</p>
<p>The TPaperPreview control also can be captioned. In this case the caption appears under the page.</p>
<p><img src="http://www.delphiarea.com/wp-content/uploads/preview3.png" alt="" width="413" height="617" class="aligncenter" /></p>
<h3 id="downloads">Download</h3>
Note: There is a file embedded within this post, please visit this post to download the file.
<h3 id="faq">Frequently Asked Questions</h3>
<ul>
<li><strong>I cannot preview an A2 paper</strong><br />
If Units property is set to mmHiMetric and width or height of the paper size is bigger than 32767 units, the page is displayed incorrectly. This is because the SetWindowExtEx API expects a 2-byte signed integer (Smallint) as X and Y parameters, therefore values bigger than 32767 are interpreted as negative values. To avoid this problem, use a less accrued unit.</li>
<li><strong>Characters appear overlapped when I change zoom</strong><br />
When zoom is other than 100%, characters in non-scalable fonts appear overlapped. To avoid this problem, always use TrueType or OpenType fonts.</li>
<li><strong>I have an RTF file with some embedded images, but images do not appear in preview and print</strong><br />
For rendering RTF, the component sends EM_FORMATRANGE message to the rich edit control. Some rich edit controls do not handle this message as expected. For example, the message handler of Delphi&#8217;s TRichEdit ignores all the embedded objects, including images. Instead of TRichEdit, you can use a third-party rich edit control.</li>
<li><strong>Preview of some RTF files do not look as their print</strong><br />
This issue is a known rich edit control problem.</li>
<li><strong>I am using TRxRichEdit control of <a href="http://sourceforge.net/projects/rxlib/" target="_blank">RxLibrary</a>, but I cannot print its content</strong><br />
There are some third party rich edit controls that are not derived from TCustomRichEdit class. In other hand, PaintRichText and GetRichTextRect methods of the TPrintPreview component expect a TCustomRichEdit as their RichEdit parameter. To workaround this problem and pass such kind of controls to PaintRichText or GetRichTextRect methods, safely type cast the control to TCustomRichEdit. The TPrintPreview component needs only Handle property of rich edit controls to send Windows messages to them.</li>
</ul>
<h3 id="using">Operational In</h3>
<div class="blogroll"><ul class="blogroll-bookmarks"><li id="blogroll-bookmark-18"><h4  class="blogroll-bookmark-name"><a class="blogroll-bookmark-link" href="http://tleilax.if.pw.edu.pl/~sala/Delphinus/index.php" target="_blank">Delphinus</a></h4><div class="blogroll-bookmark-notes"><p>Delphinus is a freeware 16-bit image processing software with many powerful filtering algorithms. It also allows you to control your camera exposure time through RS-232 (serial) and LPT (parallel) ports.</p>
</div></li><li id="blogroll-bookmark-22"><h4  class="blogroll-bookmark-name"><a class="blogroll-bookmark-link" href="http://futuris.plastiqueweb.com/imager/" target="_blank">Futuris Imager</a></h4><div class="blogroll-bookmark-notes"><p>This is a small and fast image viewer for Windows written by Alexander Tereschenko. It supports more then 30 graphic formats, TWAIN-compatible scanners/cameras, screen/window capture, wallpaper tools, HEX viewer, image transformations, file browser/manager, advanced printing features with preview, optional integration with <a href="http://www.icnet.de/" target="_blank">Filters Unlimited</a> and much more&#8230;</p>
</div></li><li id="blogroll-bookmark-27"><h4  class="blogroll-bookmark-name"><a class="blogroll-bookmark-link" href="http://sourceforge.net/projects/mac/" target="_blank">MPEG Audio Collection</a></h4><div class="blogroll-bookmark-notes"><p>This is a cute, fast, easy to use, and freeware audio file collector/player written by Jurgen Faul.</p>
</div></li><li id="blogroll-bookmark-28"><h4  class="blogroll-bookmark-name"><a class="blogroll-bookmark-link" href="http://www.riverdata.cz/ibutils/ibutils.htm" target="_blank">IBUtils</a></h4><div class="blogroll-bookmark-notes"><p>A freeware Interbase/Firebird Database Utilities by Ales Kahanek. IBUtils is designed to simplify the database design. The main purpose of this application is to visualize tables relationship in a database.</p>
</div></li><li id="blogroll-bookmark-29"><h4  class="blogroll-bookmark-name"><a class="blogroll-bookmark-link" href="http://www.justrightclick.com/products.html#greetingcard" target="_blank">Just Right Click Greeting Card</a></h4><div class="blogroll-bookmark-notes"><p>A simple, small, and free application by Just Right Click Company for digital camera users to print out greeting cards of their photographs.</p>
</div></li><li id="blogroll-bookmark-30"><h4  class="blogroll-bookmark-name"><a class="blogroll-bookmark-link" href="http://chinese.yuehan.net/" target="_blank">Chinese Practice</a></h4><div class="blogroll-bookmark-notes"><p>Chinese Practice is a freeware program with a nice user interface. Chinese Practice will not teach you Chinese, its purpose is to accompany your study at a school.</p>
</div></li><li id="blogroll-bookmark-51"><h4  class="blogroll-bookmark-name"><a class="blogroll-bookmark-link" href="http://www.trueboxshot.com/" target="_blank">True BoxShot</a></h4><div class="blogroll-bookmark-notes"><p>True BoxShot is an easy tool to create quality box shot of your software box cover. The first thing that you potential customers encounter when they meet your product is the boxshot. For many, this is the moment they decide to take a closer look at your product or search for another. Take full advantage of this first impression by presenting a professional boxshot!</p>
</div></li><li id="blogroll-bookmark-54"><h4  class="blogroll-bookmark-name"><a class="blogroll-bookmark-link" href="http://www.mandrillsoft.com/en/software.html" target="_blank">GraphicsMagic</a></h4><div class="blogroll-bookmark-notes"><p>GraphicsMagic is an open source image processing software. You do not need to install it on your computer. Also, it does not modify the system&#8217;s registry. You only need to decompress the program&#8217;s zip file into any folder on your computer, and launch the program.</p>
</div></li><li id="blogroll-bookmark-57"><h4  class="blogroll-bookmark-name"><a class="blogroll-bookmark-link" href="http://www.pecsforall.com/" target="_blank">Picto Selector</a></h4><div class="blogroll-bookmark-notes"><p>Select from 19000+ pictos and combine them into picto sheets. Fast search options and categories to select from. Create your own pictos from photos and text. Use drag and drop to combine picto in sheets that visualizes daily tasks. Available in Dutch, French, English, Spanish, Catalan, German and Italian.</p>
</div></li></ul></div>
<p>If you have a software using the TPrintPreview component, and you would like your product to be listed here, please post the link to your software&#8217;s homepage and a brief description about it on the <a href="http://forum.delphiarea.com/viewforum.php?f=6">miscellaneous section</a> of the <a href="http://forum.delphiarea.com/">forum</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.delphiarea.com/products/delphi-components/preview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.369 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-05 16:36:46 -->
<!-- Compression = gzip -->
