J
Jon
Hi guys,
I have a report with a picture box which dynamically accesses the image via
a text field using the following sub (which is an event procedure of the
detail bar)
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim filename As String
On Error GoTo nofilename
filename = "E:\My Documents\wholesale\catalogue\" & Me![imagename] & ".jpg"
Me![codepicture].Properties("Picture") = filename
Me![codepicture].Properties("visible") = True
Exit Sub
nofilename:
On Error Resume Next
Me![codepicture].Properties("visible") = False
End Sub
This method works fine for a few images, but I have 217 (its a catalog) and
the report generation is no longer smooth. Worse still, when I try to print,
the programme always bombs out at about record 50-70. Each image is between
50-90k.
Is there a way around this?
Is there a way to automatically bind the jpg image to the table as an ole
object based on the field "imagename", rather than manually selecting the
image for each record?
Thanks,
Jon
I have a report with a picture box which dynamically accesses the image via
a text field using the following sub (which is an event procedure of the
detail bar)
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim filename As String
On Error GoTo nofilename
filename = "E:\My Documents\wholesale\catalogue\" & Me![imagename] & ".jpg"
Me![codepicture].Properties("Picture") = filename
Me![codepicture].Properties("visible") = True
Exit Sub
nofilename:
On Error Resume Next
Me![codepicture].Properties("visible") = False
End Sub
This method works fine for a few images, but I have 217 (its a catalog) and
the report generation is no longer smooth. Worse still, when I try to print,
the programme always bombs out at about record 50-70. Each image is between
50-90k.
Is there a way around this?
Is there a way to automatically bind the jpg image to the table as an ole
object based on the field "imagename", rather than manually selecting the
image for each record?
Thanks,
Jon