|
-
Nov 28th, 2000, 11:50 AM
#1
Thread Starter
New Member
Here's a good one:
I have need to show an electronic signature on a form I created on a data report from code. I have everything working great on the data report from the code what I can't get to work is adding the .bmp into the image control on the form from the code. I have attempted to use this line:
.Item(intCtrl) = LoadPicture("c:\pic") statement but VB returns a "Object doesn't support this method" error. It is easy to go to the datareport designer to add the picture into the image control but it's not what I need.
Here is the code module:
With rptPrint485
Set .DataSource = Nothing
.DataMember = ""
Set .DataSource = rs485
With .Sections("Section1").Controls
For intCtrl = 1 To .Count
If TypeOf .Item(intCtrl) Is RptTextBox Or _
TypeOf .Item(intCtrl) Is RptFunction Then
.Item(intCtrl).DataMember = ""
End If
If TypeOf .Item(intCtrl) Is RptImage Then
.Item(intCtrl) = LoadPicture("c:\source code\idis\testsign.bmp")
End If
Next intCtrl
End With
Has anyone ever tried to accomplish this?
[Edited by chronic on 11-28-2000 at 11:54 AM]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|