|
FlexCel Studio for VCL/LCL
|
Draws a preview for an specific page on a given TCanvas
procedure PreviewPage(const PrintRange: TXlsCellRange; const PageNumber: integer; const ACanvas: TCanvas; const ZoomPreview: integer);
__fastcall PreviewPage(const TXlsCellRange PrintRange, const int PageNumber, const TCanvas ACanvas, const int ZoomPreview);
|
Parameters |
Description |
|
const PrintRange: TXlsCellRange |
Range you want to print. Use MaxPrintableRow and MaxPrintableCol to know what is the maximum used range. |
|
const PageNumber: integer |
Page you want to preview. |
|
const ACanvas: TCanvas |
TCanvas where to draw the results. |
|
const ZoomPreview: integer |
Zoom for the preview. |
You can use this method to render a page into a custom canvas. However you will probably want to use TFlexCelPreview component for this. TFlexCelPreview is a wrapper around this method and takes care of all the details for you. If you want an example of how to use this method, take a look at TFlexCelPreview code.
|
Copyright (c) 2002-2008 TMS Software. All rights reserved.
|
|
What do you think about this topic? Send feedback!
|