현재 BDS2006 을 사용중인데요..
Rave Reports 6.5 BE가 같이 포함되어 있더군요..
그것을 이용해보려고 홈페이지를 찾아보던중 Tips 에서
http://www.nevrona.com/Default.aspx?tabid=73
이렇게 TChart를 프린팅하는 방법에 대해 나와있는 것이 있더라고요..
C++Builder Example:
#include "RPTChart.hpp"
#pragma link "RPTChart"
void __fastcall TForm1::RvCustomConnection1GetCols(
TRvCustomConnection *Connection)
{
// PieChart is the name of the DataField that you will use in Rave
Connection->WriteField("PieChart", dtGraphic, 30, "", "");
}
void __fastcall TForm1::RvCustomConnection1GetRow(
TRvCustomConnection *Connection)
{
// Chart is the name of the TChart component you are wanting to print
WriteChartData(Connection, Chart);
}
빌더 example은 이렇게 되어있고요..
문제는.. #pragma link "RPTChart" 이부분에서 일어나더라고요..
[Linker Fatal Error] Fatal: Unable to open file 'RPTCHART.OBJ'
이렇게 링크오류가 나구요..
혹 6.5BE버전이어서 이 기능을 지원 안하는지....
제가 뭔가 빠뜨린것이 있는지 감을 못잡겠습니다.;;
알려주세요~
|