I am programming a Product catalogue (MS SQL SERVER, Crystal 6.0) and need to include the picture of each product next to the product description. The graphics (BMP) are not stored as BLOB's on the database - rather, the graphics are stored on the local hard drive and the database field indicates the name of the BMP.
One Solution that was given to me is this but it is rather cryptic and I do not understand it at all!
If you have CR7 (not sure for CR6) you can use the Crystal designer component. Import or create a new report, insert a dummy picture (from windows dir)in the section you need , then goto the CrystalReport1 code and use the FormatSection event. Each time the report shows a section, also fires this event.
Private Sub SectionX_Format(ByVal pFormattingInfo As Object)
Set .FormattedPicture = Loadpicture("ImageName.bmp"
End Sub
Where SectionX is the section you want to format
Sincerly
Igor
One Solution that was given to me is this but it is rather cryptic and I do not understand it at all!
If you have CR7 (not sure for CR6) you can use the Crystal designer component. Import or create a new report, insert a dummy picture (from windows dir)in the section you need , then goto the CrystalReport1 code and use the FormatSection event. Each time the report shows a section, also fires this event.
Private Sub SectionX_Format(ByVal pFormattingInfo As Object)
Set .FormattedPicture = Loadpicture("ImageName.bmp"
End Sub
Where SectionX is the section you want to format
Sincerly
Igor