Delphi Area Print Preview Suite v4.77

FreewareSource is includedDelphi 3Delphi 4Delphi 5Delphi 6Delphi 7Delphi 2005C++Builder 3
DESCRIPTION

The TPrintPreview is a descendent of TScrollBox and has properties of both TScrollBox and TPrinter classes. Key features of TPrintPreview are:

  • Automatically adjusts printer's paper size and orientation at the print time.
  • Automatically adjusts mapping modes.
  • Preview pages can be scaled with an arbitrarily zoom factor.
  • Shows created pages while new pages are being processed.
  • Displayed pages can be scrolled by mouse dragging.
  • Pages can be saved/restored to/from disk.
  • Each page is accessible as a Windows MetaFile image.
  • Consumes a small portion of windows resources regardless of the number of previewed pages or their complexity.
  • Has some methods for rendering rich text format.
  • Can manage custom forms (custom paper sizes).
  • Lets showing background and annotation for the preview pages.
  • Both preview and print pages can be converted to grayscale.
  • Has a complete set of events.
  • Using dsPDF library can save pages as PDF.

TPrintPreview 

In addition, the TPrintPreview component has a complementary component named TThumbnailPreview, which is a thumbnail viewer of the preview pages.

TThumbnailPreview & TPrintPreview

WHAT'S NEW
Version 4.77 (December 18, 2007)
Fixed problem of calculating size of custom papers. [+]
Version 4.76 (November 20, 2007)
Improved printing of windowed controls.
Version 4.75 (May 3, 2007)
Fixed a bug in the Abort method.
Version 4.74 (April 27, 2007)
The page size included in saving pages as PDF. [+]
Version 4.73 (April 24, 2007)
The bug in saving landscape pages as PDF is fixed. [+]
Version 4.72 (April 9, 2007)
New methods for saving preview pages as PDF are introduced. [+]
Version 4.71 (February 5, 2007)
For displaying and/or printing pages in grayscale, the Grayscale property is introduced.
Version 4.70 (February 1, 2007)
To allow drawing background for the preview some new fields are added to the TPrintPreview control. [+]
Conditionall support of printing images with transparency is added. [+]
The new ThumbnailClass added to TThumbnailPreview control lets fully customize thumbails of preview pages.
The FastPrint property got obsolete.
Version 4.64 (February 23, 2006)
The inavlid parameter type of BltBitmapAsDIB function, where causing range check error is corrected.
Version 4.63 (January 30, 2006)
The calculation of printer's printable area corrected. [+]
Version 4.62 (May 12, 2005)
Some minor tweaks.
Version 4.61 (February 21, 2005)
A bug in thumbnail viewer fixed. [+]
Version 4.60 (July 28, 2004)
Now, each page can have annotations that are just visible in preview. Also, a new property for getting the printer's printable bouding rectangle added. [+]
Version 4.53 (June 30, 2004)
The bug of setting paper orientation on Windows NT fixed.
Version 4.52 (June 25, 2004)
Now, when a custom page size is set in the control, the control automatically adds it to the system.
Version 4.50 (June 19, 2004)
For managing forms (predefined and custom paper sizes), some new properties and methods added. [+]
Version 4.40 (May 14, 2004)
To make editing of an existing page easier, BeginEdit and EndEdit methods added. Consequently, The new state psEditing added to the list of available control's states.
Version 4.36 (May 13, 2004)
The OnEndPage event added.
Version 4.35 (April 10, 2004)
The n ew PaintGraphicEx2 method added to the interface of TPrintPreview component.
Version 4.34.1 (March 24, 2004)
A bug fixed.
Version 4.34 (December 8, 2003)
Now, a page on the preview can be altered by assigning a metafile to it.
Version 4.33 (December 6, 2003)
Two new methods ClientToPaper and PaperToClient added to the TPrintPreview component. Also, in the release, the preview pages can be saved as compressed, and preview scrolls much faster and smoother than before.
Version 4.32 (November 20, 2003)
Incorrect printing of the preview content when the measurement unit was mmPixel, was fixed.
Version 4.31 (November 2, 2003)
The unit conversion methods were not suitable for converting units on devices with different horizontal and vertical resolution, because of that the old methods replaced by a set of new methods. Also, since this release you can directly print the pages on the printer without need to create/show preview pages.
Version 4.30 (October 19, 2003)
In this release, the bugs regarding to font size issue and printing on printers with different horizontal and vertical resolution are fixed, and also the Points unit is added to the available measurement units. This release also introduced a new control named TThumbnailPreview. The new control can be attached to a TPrintPreview instance to display pages as thumbnails.
Version 4.21 (September 18, 2003)
In the older versions of the component, the paper size and paper orientation of the pages were missing in the saved preview files (streams). This issue is fixed in this release and saved preview files contain the neccessary information about the pages. I also provided one additional demo program to show how you can use standard PrintDialog to print a range of pages. By the way, I know this release can be compiled by C++Builder 3.
Version 4.20 (July 27, 2003)
In this release, the mouse wheel functionality added to the control. Using the mouse wheel user can scroll a page, change the current page, or change the zoom factor. As the result of this improvement, the new properties ZoomMin, ZoomMax, and ZoomStep, and the new event OnZoomChange are added to provide more control over changing zoom factor by using either keyboard shortcuts or mouse wheel.
Version 4.19 (July 8, 2003)
By mistake I had considered the values in mmLoEnglish and mmHiEnglish as one tenth of their correct values. This means the mmHiEnglish was considered as mmLoEnglish, and mmLoEnglish was meaningless. Because of that, the demo program was wrong also. In this release the bug fixed.
Version 4.18 (July 6, 2003)
The bug related to zooming factor was fixed. In addition, now changing the ZoomState property updates the value of the Zoom property.
Version 4.17 (May 29, 2003)
The new method GetRighTextRect added and the PaintRichEdit method modified to support all custom RichEdit controls.
Version 4.16 (May 18, 2003)
The component modified to use the resolution of the currently selected printer for more accurate print result.
Version 4.15 (May 3, 2003)
The bug in drawing windowed controls was fixed. In addition, the new proprty UsePrinterOptions and new methods GetPrinterOptions and SetPrinterOptions were added.
Version 4.14 (April 23, 2003)
The bug in setting the printer's paper orientation was fixed.
Version 4.13 (April 16, 2003)
Now when the page is dragged the cursor changes from open hand to fist. In addition, the component's icon on Delphi components palette changed. Thanks to Paul Van Gundy for making these improvements in the component.
Version 4.12 (April 8, 2003)
Bug in printing pages with custom paper size was fixed.
Version 4.11 (March 31, 2003)
Bug in rendering images on Windows 2000 and XP was fixed.
Version 4.10 (March 29, 2003)
Two new methods for printing images and windowed controls added. Using these methods you can control rendering images more than before. Also, a function for rendering rich text format added. Please look at the demo application to see how it works.
Version 4.01 (May 11, 2002)
A little optimization in SaveToStream and LoadFromStream methods, and some changes in the demo.
Version 4.00 (January 19, 2002)
The new version does not support the 16 bit platform and many properties are obsolete in this update. The control now works faster and is more stable than before.
Version 3.20 (January 13, 2002)
With the purpose of improving the component's functionality and speed, some internal procedures were modified. In addition, margin properties can now have any value and the previous limit has been removed.
Version 3.10 (January 6, 2002)
New property ZeroOrigion added. This property indicates how the control interprets the canvas coordinates. When this property is set to true, regardless of the page margins, the upper left pixel on the canvas has coordinate zero.
DOWNLOAD
preview.zip (134KB)
Component's source code, documentation, and three sample applications that demonstrate the component's usage.
KNOWN ISSUES
If Units property is set to mmHiMetric and width or height of the paper size is bigger than 32767 units, the page will not display correctly. This happens because SetWindowExtEx API function expects a two bytes signed integer (Smallint) as its X and Y parameters, so values bigger than 32767 are interpreted as negative values.
When zoom is not on actual size (100%), the control may display the preview of non-scalable fonts inproperly.
The PaintRichText and GetRichTextRect methods use EM_FORMATRANGE message of the rich edit control. This message has different behavior on different versions of the rich edit control. In addition, this message ignores the embedded objects in the RTF text of the standard Delphi's TRichEdit control.
The preview of a rich text may differ from its printed version. This issue is a known rich edit control problem.
UTILIZED IN
Futuris Imager
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 Filters Unlimited and much more...
MPEG Audio Collection
This is a cute, fast, easy to use, and freeware audio file collector/player written by Jurgen Faul.
IBUtils
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.
Just Right Click Greeting Card
A simple, small, and free application by Just Right Click Company for digital camera users to print out greeting cards of their photographs.
Chinese Practice
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.

If you have used Print Preview Suite in your product, and you would like your product to be listed here, please send a link to your application's homepage and a brief description about it to me via e-mail.


Copyright © 2001-2007 Kambiz R. Khojasteh, all rights reserved.

Back to Products