MakeJPEG

Description

Creates a JPEG file containing the image of a chart.

This image takes the data in the current result set and generates a JPEG image using the current settings.

Syntax

VBScript


chartMgr.MakeJPEG pathName 

Perl


$chartMgr->MakeJPEG(pathName); 
Identifier
Description
chartMgr
The CHARTMGR object associated with the current session.
pathName
A String containing the pathname, including the file name and location, to use when generating the image.
Return value
Returns True if the image was created successfully, otherwise False.

Example

Perl


use CQPerlExt;

   $session = CQSession::Build();

   $user = "admin";

   $pass = "";

   $db = "SAMPL";

   $session->UserLogon($user, $pass, $db, "");

   $wkSpc = $session->GetWorkSpace();

   $chartDef = $wkSpc->GetChartDef("Personal Queries/Sample_Chart");

   $resultSet = $session->BuildResultSet($chartDef);

   $resultSet->Execute();

   $chartMgr = $wkSpc->GetChartMgr();

   $chartMgr->SetResultSet($resultSet);

   $chartMgr->MakeJPEG("C:\\temp\\BBChart.jpg");

CQSession::Unbuild($session);