hello!
how can i print picture in a data report?
assuming i have already path saved to the database.
ex: fieldname: picture_path
picture_path= C:\pix\sample.jpg
is this possible?
tnx!
Printable View
hello!
how can i print picture in a data report?
assuming i have already path saved to the database.
ex: fieldname: picture_path
picture_path= C:\pix\sample.jpg
is this possible?
tnx!
Are you trying to display a picture with every record on the report? Unfortunately you can't. The rptImage control cannot be bound to a datasource like the rptTextBox control. It is used for things like displaying a company logo on the page header.
yes the rptImage, is there any other way to print the image?
Again, if you mean print a different image for each record within the details section then the answer is you can't.
printing Image in Data Report is possible, after long way of searching eventually i found the sol'n. here i will share to you
Code:Dim rpt As New rpt
DE1.rsCommand2.Open "SELECT * FROM tbl", con, adOpenDynamic, adLockOptimistic
If DE1.rsCommand2.EOF <> True Then
With rpt.Sections("Section4")
Set .Controls("Image1").Picture = LoadPicture(CStr(DE1.rsCommand2.Fields(0).Value))
End With
End If
That prints a single Image in the Report Header which I never said was impossible. But you cannot use the same rptImage control to print differrent images within the details section.