Image Control of Data Report Designer
Image Control of Data Report Designer (RptImage) at design time get picture correctly, but when I try to apply picture at run time using function LoadPicture I get error 438: "Object doesn't support this property or method". The syntax I use is:
Report_Name.sections("section_name").controls("RptImage_name").picture=LoadPicture("Graphic_file_pat h"). How can I salve this problem? Thank everybody for advance.
Re: Image Control of Data Report Designer
try this way
with rpt
Set .Sections("section2").Controls("image3").Picture = LoadPicture("c:\picture1.jpg")
set .sections("section_name").controls("RptImage_name").picture=LoadPicture("Graphic_file_pat h")
end with