|
sanzarak 님이 쓰신 글 :
: 안녕하세요
:
: TMS Advanced Charts 를 사용하여 만든 차트를 (첨부한 그림) 화면에 보이는 차트 모양 그대로
: FastReport 의 Picture Object 에 나타나도록 하고 싶은데 방법을 몰라서 질문 드립니다.
:
: 혹시 경험 있으신 분이나 꼭 위와 같은 방법 말고도 다른 방법을 알고 계신분 있으면 답변 주시면 감사하겠습니다.
저는 다음처럼 했습니다.
void __fastcall TfrmMain::frxReport1BeforePrint(TfrxReportComponent *Sender)
{
TfrxPictureView *report = (TfrxPictureView*)Sender;
try
{
if( Sender->Name == "Picture1" )
{
report->Width = 10;
report->Height = 5;
report->Picture->LoadFromFile(".\\Temp\\title.jpg");
}
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
}
"Picture1"이 Picture Object이름입니다.
|