Re: Problem copying Picturebox to Clipboard
- From: "Mike Williams" <mikea@xxxxxxxxxxxxxxxxx>
- Date: Wed, 18 Apr 2007 05:05:21 +0100
"Jennifer W" <jenniferw@xxxxxxxxxxxxxxx> wrote in message news:%231$i06TgHHA.3368@xxxxxxxxxxxxxxxxxxxxxxx
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.
You need to explain *exactly* what it is you are trying to do, and you need to show us your code that draws to the Picture Box. Your code is a bit "iffy" at the moment because it does not take into account the differences between different machines, but if you are running your machine at the standard 96 dpi setting (which is very likely) and if you have left the ScaleMode of the Form itself at its default seting of Twips (which, looking at your specific Picture Box Height and Width values, is extremely likely) and if your Picture Box has the standard borders then your code currently creates a Picture Box such that the bitmap it contains is 996 pixels wide by 1052 pixels wide (996 x 1052 pixel bitmap). That is an almost (but not quite) square bitmap. Is that the size of the bitmap you are trying to create?
And are you sure that your drawing code needs to be using a ScaleWidth of 18000 and a ScaleHeight of 8500? Those sizes bear no relation at all to the aspect ratio of the bitmap. There's nothing wrong with doing that of course if that's what you really want, but is that really what you want to do? And does your drawing code take that into account?
And, do you actually know the difference between Width and ScaleWidth (and Height and ScaleHeight), or the differences between machines which can cause your bitmap to be a different size depending on which machine your code is running on unless your code takes account of them? Do you know how those things work? You need to explain *exactly* what it is you are trying to do, and you need to show your code, including the drawing code.
Mike
.
- Follow-Ups:
- Re: Problem copying Picturebox to Clipboard
- From: Jennifer W
- Re: Problem copying Picturebox to Clipboard
- References:
- Problem copying Picturebox to Clipboard
- From: Jennifer W
- Problem copying Picturebox to Clipboard
- Prev by Date: Re: FreeFile vs hard-coded file number
- Next by Date: Re: Famous cracked software download
- Previous by thread: Problem copying Picturebox to Clipboard
- Next by thread: Re: Problem copying Picturebox to Clipboard
- Index(es):
Relevant Pages
|