I am trying to add an image in a hidden picturebox to an rptImage called imgBusinessCard1 but it will not let me. the report doesnt show and I get the following error. I am new to DataReports. I am not using a database or a data environment.
Object doesnt support this method or property
VB Code:
  1. Private Sub mnuPrint_Click()
  2.     With rptBusinessCardPrinting
  3.         .Orientation = rptOrientPortrait
  4.         .Sections("Section1").Controls("imgBusinessCard1").Height = pbHidden.Height
  5.         .Sections("Section1").Controls("imgBusinessCard1").Width = pbHidden.Width
  6.         [hl].Sections("Section1").Controls("imgBusinessCard1").Picture = pbHidden.Image[/hl]
  7.        
  8.         .Sections("Section3").Controls("lblFooter").Caption = "Printed using Stationary Designer.  Version " & _
  9.         App.Major & "." & App.Minor & "." & App.Revision
  10.         .Sections("Section3").Controls("lblWebsite").Caption = "Located at http://www.StationaryDesigner.com"
  11.         .Show vbModal
  12.     End With
  13. End Sub