F
fridjhon
My database has a table with a field called "Picture""
that contains a string which is the file path to the
actual picture I want printed in the report.
(I am trying to keep the database size small, so I am not
embedding the actual pictuert in the table field.)
In my report I have a Bound Object Frame whose Control
Source is the field Picture. The frame contains a small
icon. I am trying to write a procedure so that at the
time of printing, the Print Event sets the Picture
Property of the icon to the file path recorded in the
table.
I have written the following piece of code, but I am
obviously doing something wrong.
Private Sub PageHeaderSection_Print(Cancel As Integer,
PrintCount As Integer)
Dim Pic As String
Set Pic = CurrentDb.TableDefs
("Inventory").Fields("Picture").Value
IconPlaceHolder.Properties("Picture") = Pic
End Sub
Can you help?
Lionel
that contains a string which is the file path to the
actual picture I want printed in the report.
(I am trying to keep the database size small, so I am not
embedding the actual pictuert in the table field.)
In my report I have a Bound Object Frame whose Control
Source is the field Picture. The frame contains a small
icon. I am trying to write a procedure so that at the
time of printing, the Print Event sets the Picture
Property of the icon to the file path recorded in the
table.
I have written the following piece of code, but I am
obviously doing something wrong.
Private Sub PageHeaderSection_Print(Cancel As Integer,
PrintCount As Integer)
Dim Pic As String
Set Pic = CurrentDb.TableDefs
("Inventory").Fields("Picture").Value
IconPlaceHolder.Properties("Picture") = Pic
End Sub
Can you help?
Lionel