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!

Display image from file to Crystal Report ?????

Status
Not open for further replies.

0000000001

Programmer
Dec 13, 2002
4
BD
hi,
i want to display image into Crystal Report from disk, by any way. But not using "Insert object dialog box .... "


 
You can accomplish this using the Crystal reports RDC if you have the path to the image file available in your database or to your report.

place an image controlon the report and a field that will pull in the path. suppress the path because you don't want it to show on the report. Then in the formatsection event of the crystal report use the loadpicture function to load the image control with the file represented by the path.

Code:
Private Sub Section5_Format(ByVal pFormattingInfo As Object)
    Set Picture1.FormattedPicture = LoadPicture(Field1.Value) 'changes the pic in section5
End Sub

Field1 is the field that has retrieved the path to the file.

Thanks and Good Luck!

zemp
 

your tips are right but
could u plz describe details with an example ?
i am new in crystal report.very argent. plz ensure runtime crystal report can load picture from disk file.

thanks
nazmul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top