Here how you will print image from your windows application
step 1:
Imports System.Drawing.Printing
Imports System.Drawing.Imaging
step2:
Drag and drop PrintDocument Control on your windows form and rename control name to: PrintGraphicControl
step3:
Put this in your code
Dim GraphicLocation as TextBox = New TextBox()
GraphicLocation.Text = "c:\myimage.jpg"
AddHandler PrintGraphicControl.PrintPage, AddressOf Me.GraphicPrint
PrintGraphicControl.Print()
#Region "Print Graphics"
Private Sub GraphicPrint(ByVal sender As Object, ByVal e As PrintPageEventArgs)
e.Graphics.DrawImage(Image.FromFile(GraphicLocation.Text), e.Graphics.VisibleClipBounds)
e.HasMorePages = False
End Sub
#End Region
Wednesday, February 18, 2009
Tuesday, February 17, 2009
LendMySpace.Com is just launched
LendMySpace.Com is just launched.
About LendMySpace
LendMySpace.Com is online media ad service to all of ours users who would like to sell their new/old item(s) or services online through our website. We make every effort to make buying and selling more interactive by providing a forum where the buyer and seller can easily contact each other. We strive to do this through advanced technology, in-depth research and above all the highest quality of customer service delivered with a sense of warmth, understanding, respect, and company spirit.
So please take sometime to visit us at: http://www.lendmyspace.com
Subscribe to:
Posts (Atom)