Page 1 of 1

visible area copy to clipboard

Posted: 19 Jun 2007, 22:28
by alfons
Hi,
i am using delphi 7 and i dont know how i can copy the visible area
to clipboard.
Please give me an example if possible.

Thanks
alfons

Posted: 21 Jun 2007, 10:23
by support
Hello!

It is necessary to use property <b>PrintViewArea</b>.

Please find procedure TfmMain.mmiPrintClick in the <b>Delphi</b> demo. This demo is available in the ..\CADViewX\Demos\Delphi\.. folder after installation of <b>CADViewX Component</b> package. Then add <i>FCADViewX.PrintViewArea := True;</i> like the following:

Code: Select all

<b>procedure</b> TfmMain.mmiPrintClick(Sender: TObject);
<b>begin</b>
  FCADViewX.PrintViewArea := True;
  FCADViewX.PrintImage;
<b>end</b>;
Sergey.

Please post questions to the forum or write to support@cadsofttools.com