x=createobject("CrystalRuntime.application") rep=x.openreport(cReport,1) rep.EnableParameterPrompting=.F. THISFORM.Rep=Rep3. Now you'll have to figure out how to adress the OLE control in the report. It is somewhere in the objecthierarchy in one of the sections. Each section generates a format event (Can be captured with the VFPCOM utility available from the MS VFP home site)
Picture1.FormattedPicture = LoadPicture("Xtreme.bmp")5. Now you can display the report in the activeX viewer
THISFORM.CrViewer.ReportSource=rep
THISFORM.CrViewer.Viewreport()
To be honest I've never done this before, so the actual procedings might be slightly different. I know that there were made some improvements in CR 8, but I don't know what from the top of my head.
You also might search here for the keywords Crystal and Picture, there are others who had the same question as you do, I don't recall if they found a suitable solution.
Good luck, and let me know what you've come up with.
Walter,
>How can I insert a picture from VFP General field into Crystal Report?
>Any help will be greatly appreciated.
>
>Irina