Size problem when adding pic to Crystal report in Runtime
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I am using VB6 with Crystal Report viewer. I wrote a function that adds a picture to the report in runtime using OLEObject. here is the code I'm using:
Set CrPic = CRXReport.Sections(NewPicture.Section).AddPictureObject(NewPicture.Path, NewPicture.XLoc, NewPicture.YLoc) CrPic.Width = NewPicture.Width CrPic.Height = NewPicture.Height
the picture appears where I told it to be and in the requested size. However, it seems that when I first load the picture into the OLE, it "takes" the size of the original picture, and doesn't change it after I change the size. So I have a lot of blank space. I'm looking for a way to either make the OLE take less space from the beginning, or force some sort of refresh of the report. Any suggestions? Thanks.