Problem copying Picturebox to Clipboard



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.


.



Relevant Pages

  • Re: Slightly OT - Best Photo Printer?
    ... i find home photo printing to be time consuming and expensive. ... First I tried printing a picture the ... printed I started seeing a big streak up and down the picture. ...
    (alt.sys.pc-clone.dell)
  • Re: Displaying Images on a Form
    ... Now it is showing the picture, ... If you are printing the images in reports, to avoid memory leakage, you ... This MDB also contains code showing how to convert the contents of the Image ... Memory" error that can popup when printing image intensive reports. ...
    (microsoft.public.access.forms)
  • Re: Displaying Images on a Form
    ... Now it is showing the picture, ... If you are printing the images in reports, to avoid memory leakage, you ...
    (microsoft.public.access.forms)
  • Re: Printing problem - double images
    ... edited digital photos). ... printing directly to the printer does solve the problem for the DJ. ... > I was able to fix it on another project by doing something to the picture ... > didn't write down what I did to fix it. ...
    (microsoft.public.word.docmanagement)
  • Print stop responding for 400KB JPG picture in Word then low virtu
    ... The problem is, with HP Deskjet 5740 printer, when I open a new blank MS ... Word and Insert a picture from file with 400 Kb JPG picture, the printing ...
    (microsoft.public.word.docmanagement)