Problem copying Picturebox to Clipboard
- From: "Jennifer W" <jenniferw@xxxxxxxxxxxxxxx>
- Date: Tue, 17 Apr 2007 18:21:00 -0400
Hi it's me again, the Pest,
in VB6, Winxp I'm printing to a picturebox and then copying that to the
clipboard. It's working pretty well except when I paste the clipboard into
a Word document, there's a large blank space at the bottom of the picture I
just pasted. I know it can be cropped in Word but I'd like to prevent this
space from being created. I've tried changing the picture .height, and
..scaleheight but don't get predictable results. Does anybody have any ideas
?
Thanks, Jennifer
The important parts of the code looks like this:
Picture1.ScaleMode = 0 ' 0=user 3=pixel 5=inch
Picture1.AutoRedraw = True
Picture1.Height = 15840
Picture1.Width = 15000
Picture1.ScaleTop = 0
Picture1.ScaleLeft = 0
Picture1.ScaleHeight = 8500
Picture1.ScaleWidth = 18000
Picture1.Cls
....
Code prints to picture, no problems
....
Clipboard.Clear
Clipboard.SetData Picture1.Image, vbCFBitmap
Then I paste to Word.
I need to stick with the ScaleMode=0 because all the code that does the
printing uses that.
.
- Follow-Ups:
- Re: Problem copying Picturebox to Clipboard
- From: Mike Williams
- Re: Problem copying Picturebox to Clipboard
- Prev by Date: Re: Best Vista Setup for Development - Karl Peterson?
- Next by Date: Re: Newbie question: where to put Sub Main?
- Previous by thread: If I wanted to open an access form and have its recordset based on a value on my current form
- Next by thread: Re: Problem copying Picturebox to Clipboard
- Index(es):
Relevant Pages
|