PaulBarter
MIS
I have a picture box which I want to use for a 1 page report which I can the preview. However I am having problems trying to subsequently print the picture box.
E.g.
With a form containing one command button and one picture box and the following code
when I run it I get a run time error 481 "Invalid Picture" on the PaintPicture line.
Any ideas.
Also is there an easy way of doing the preview or do I have to put my own scroll bars and zoom in/out code in.
Thanks
E.g.
With a form containing one command button and one picture box and the following code
Code:
Private Sub Command1_Click()
Picture1.AutoRedraw = True
Picture1.CurrentX = 100
Picture1.CurrentY = 100
Picture1.Print "Text"
Printer.PaintPicture Picture1.Picture, 0, 0
Printer.EndDoc
End Sub
Any ideas.
Also is there an easy way of doing the preview or do I have to put my own scroll bars and zoom in/out code in.
Thanks