See
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/cr8_vb_rdc_loadpic.exe.asp>Dear All,
>
>I'm using Crystal Report 8.5 and VB 6.0. And i have already design a report to print out my company product catalogue with product picture. It's work fine under Win98SE platform. But when i run the same program with same config in Win 2000 platform. All the catalogue picture are the same as the first product picture loaded.
>
>My coding in the CR designer as following:
>****************************
>Private Sub Section10_Format(ByVal pFormattingInfo As Object)
>If UCase(Field5.Value & ".jpg") = UCase(Dir(syspath & "photo\" & Field5.Value & ".jpg")) Then
> Set stylepic.FormattedPicture = LoadPicture(syspath & "photo\" & Trim(Field5.Value) & ".jpg")
>Else
> Set stylepic.FormattedPicture = LoadPicture(syspath & "photo\" & "no_pic.jpg")
>End If
>End Sub
>****************************
>Section10 is the Detail Section of the Crystal Report
>Field5 is the Product Code which the product picture filename is the same as the product code.Example : Product Code: ABC100 , the product picture ABC100.jpg
>
>Did anyone experience on this? Anyone can give me some hints on it?
>Thanks you very much
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer