You can always make a call to the xFunction Sparklines using code something like ...
#include <xfbase.h>
bool ShowSparkLines(int StartCol=0, int EndCol=-1)
{
/*
StartCol ... First column for the operation ... default first column the worksheet
EndCol ... Last column for the operation ... default last column of the worksheet
*/
Worksheet Wks=Project.ActiveLayer();
if(EndCol<0)
{
EndCol=Wks.GetNumCols()-1;
}
if(Wks.IsValid()==true && StartCol>=0 && StartCol<=EndCol && StartCol<Wks.GetNumCols())
{
string strXFname="SparkLines";
XFBase xfSparkLines(strXFname);
if(xfSparkLines)
{
if(xfSparkLines.SetArg("c1",StartCol)==true && xfSparkLines.SetArg("c2",EndCol)==true && xfSparkLines.SetArg("sel",0)==true)
{
return(xfSparkLines.Evaluate());
}
}
}
return (false);
}