I will see how it works to save the image from my drawing app to HD as a png, then reload it, then place on clipboard then paste, or even see if can load directly into the document if I can target a word doc for a paste. as usual have learned alot just from the answers. Its a crappy system, but one am stuck with for now. It wont accept a document over a certain size, and even a small bmp seems to cross that line. The electronic medical record the document goes into for storage as part of a patients chart has a file size limit. Am using my little mouse drawing app I made to create then place a image into it. The reason the document file size is to large is because I am dictating a medical text into it. But from what I read, there should be a way to place an image from my drawing app I made to the clipboard in a format other then bmp, hard to tell though. Take the image made and save it in a png format (its a 2 color line drawing) then load it from the HD and paste it into the word document. Tall, thats sort of what I am working on now as a way to do it. I just want to copy to the clipboard the file, and not the full path text.
#Vb6 print to file clipboard pdf#
In my question I know the full path to the PDF file that I've created. Ms-help://MS.VSExpressCC.v80/MS./dv_fxmclignrl/html/6be085a2-2c13-47c8-b80a-c18b32777d8d.htm I create emails every day using VBA with attachments. ' Next line was commented out for first test.īm = CType(Image.FromFile( "c:\t1.gif"), Bitmap)Īlso see the help about different file format color depth (bits per pixel) Private Sub Button2_Click( ByVal sender As System.Object, _īyVal e As System.EventArgs) Handles Button2.Clickĭim bm As New Bitmap( My.Resources.sara1)īm.Save( "c:\t1.gif", .Gif) To the clipboard again and did the same steps in Word for Image in VB to a GIF file,) read in the GIF file and pasted I then in VB, (having already temporarily saved the original 'paste' to receive the image into a blank document. Of 24bbp (16 mil colors) and used VB to paste it In the following test, I took a resource file jpg picture Receives a pasted picture we can reduce the colorĭepth from 16million colors down to 256 colors. To reduce the file size of a Word document that