Please help!
I want to add picture to my report.
I write:
void __fastcall TformPrintAut::frxPrintAutBeforePrint(
TfrxReportComponent *Sender)
{
if(Sender->Name == "Picture1")
{
TJPEGImage *jpg = new TJPEGImage;
jpg->LoadFromStream(s1);
TfrxPictureView(Sender).Picture = Image1->Picture;
delete s;
delete jpg;
}
}
but no pics showed to report ... what I do wrong???
I write:
void __fastcall TformPrintAut::frxPrintAutBeforePrint(
TfrxReportComponent *Sender)
{
if(Sender->Name == "Picture1")
{
TJPEGImage *jpg = new TJPEGImage;
jpg->LoadFromStream(s1);
TfrxPictureView(Sender).Picture = Image1->Picture;
delete s;
delete jpg;
}
}
but no pics showed to report ... what I do wrong???
Comments
where TfrxPictureView(Sender).Picture = Image1->Picture; is
TfrxPictureView(Sender).Picture->Assign(jpg);