Results 1 to 2 of 2

Thread: Object doesnt support method or property

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Object doesnt support method or property

    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

  2. #2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width