Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing BMP's with Path Names

Status
Not open for further replies.

IgorV

Programmer
Sep 3, 2000
2
CA
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top