We use Rad Studio 10.4.1 and teechart 2020.30 for c++.
We need to export charts (fastline and line series) in EMF format in reports (Fast report 6). In report we use TfrxPictureView component for chart output.
example of exporting code:
Code: Select all
const int width = static_cast<int>( pictureView->Width );
const int height = static_cast<int>( pictureView->Height );
TRect r( 0, 0, width, height * 0.95 );
auto Metafile = chart->TeeCreateMetafile( /*Enhanced*/true, r );
if ( Metafile )
{
pictureView->Picture->Assign(Metafile);
}
Is there any way to optimize chart before export? For example, hide unvisible points. We need emf format, not picture.