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

load picture

Status
Not open for further replies.

ALSayegh

Programmer
Mar 27, 2001
25
KW
hi
How can i load a picture in to crystal 8.5 during run mode ?

i try this code but i get an error -
Run-time error 70
permission denied

Dim bmpHold As StdPicture

Screen.MousePointer = vbHourglass
OneM.DiscardSavedData
OneM.Database.SetDataSource rstTable
Set bmpHold = LoadPicture(App.Path & "\Picture\" & MySir & ".bmp")
Set OneM.Picture3.FormattedPicture = bmpHold --> ((( her i'm getting the error)))


'Rem OneM.Picture3.SetOleLocation App.Path
& "\Picture\" & MySir & ".bmp"

CRViewer1.ReportSource = OneM
CRViewer1.ViewReport
Screen.MousePointer = vbDefaul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top