|
FlexCel Studio for VCL/LCL
|
Displays a Print-Preview of a TFlexCelGrid.
TFlexCelPreview = class(TScrollBox);
class TFlexCelPreview : public TScrollBox;
This is a very simple component, to display a print-preview of what TFlexCelGrid is going to print. You can use it as it is, or modify it to your needs. The preview is really generated by FlexCelGrid, this component just gives a nicer interface to it.
Drop a FlexCelPreview on a form, connect it to a TFlexCelGrid, and remember to call the init method before using it. You can look at XlsViewer for a demo.
Note that because printers usually have more resolution than screens (typically 1200 DPI on a printer vs 96 DPI on a screen), the preview can show the data with little rounding errors, maybe a missing line or a misaligned label, that won't show when you actually print the page.
|
Copyright (c) 2002-2008 TMS Software. All rights reserved.
|
|
What do you think about this topic? Send feedback!
|