Crystal Reports XI - VB6 - Permission Denied - Ou: Carregando imagens dinamicamente no Crystal Reports
(Trying) English version : Category: Tools __________________________ If you are trying to dinamically set an image into the control Picture (ICROleObject) and you are getting the error "Permission Denied" when you are using SetOleLocation method, I suggest you try this following code instead of SetOleLocation method: Private Sub Section1_Format(ByVal pFormattingInfo As Object) Dim logofile As String logofile = app.Path & "\logo.jpg" If Dir$(file) <> "" Then 'File exists... Set Picture2.FormattedPicture = LoadPicture(logofile) 'FormattedPicture method used instead of SetOleLocation... Else Picture2.Suppress = True 'If does not exist, suppress that control. End If End Sub That error happens bec...