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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can some one help please.. VB. And CR.8.5

Status
Not open for further replies.

ALSayegh

Programmer
Mar 27, 2001
25
0
0
KW
I wont to load a picture in run time in CR. But I am getting Error
“Loading the picture from directory not database”

Run-time error 70
Permission denied

This is my code :
MyRep.Database.SetDataSource MyRst
Her I am getting the error ---- > MyRep.picture1.SetOleLocation LoadPicture(App.Path & “\Picture\Love.bmp”)

….

Can some one help please..


 
This will load (Add) a picture to your report at runtime, but you may need to settle a runtime licensing issue with Crystal Decisions. The AddPictureObject call is not part of the standard runtime API license.

Dim TheReport As New CrystalReport1 ' Default report
Dim crSect As CRAXDRT.Section
Dim crPic As CRAXDDRT.OLEObject
Set crSect = TheReport.Section1 ' Normally the report header
Set crPic = crSect.AddPictureObject("C:\icons\pl.bmp", 0, 0)
crPic.Height = 1500
crPic.Width = 1000
CRViewer1.ReportSource = TheReport
CRViewer1.ViewReport

Mark
 
thanks for help
i try it but i get error
Argument not optional.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top