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 propertyVB Code:
Private Sub mnuPrint_Click() With rptBusinessCardPrinting .Orientation = rptOrientPortrait .Sections("Section1").Controls("imgBusinessCard1").Height = pbHidden.Height .Sections("Section1").Controls("imgBusinessCard1").Width = pbHidden.Width [hl].Sections("Section1").Controls("imgBusinessCard1").Picture = pbHidden.Image[/hl] .Sections("Section3").Controls("lblFooter").Caption = "Printed using Stationary Designer. Version " & _ App.Major & "." & App.Minor & "." & App.Revision .Sections("Section3").Controls("lblWebsite").Caption = "Located at http://www.StationaryDesigner.com" .Show vbModal End With End Sub




Reply With Quote