Clicky

i want to be able to do hit a print button in a form to print the following:
thank you,

please visit: http://www.ayhoo.com.

any suggestion really appreciate. thanks

asked 12/09/2011 01:26

StewSupport's gravatar image

StewSupport ♦♦


8 Answers:
Sorry, the page you requested was not found.


Did you mean yahoo? Do you want to print a web page in a winforms app?

Check following

http://www.daniweb.com/software-development/vbnet/threads/277946

http://stackoverflow.com/questions/2425258/print-html-page-in-winforms-without-using-ie

http://www.websitesscreenshot.com/
link

answered

CodeCruiser's gravatar image

CodeCruiser

no i just want to print a string but has html format.
link

answered 2011-12-09 at 14:52:22

StewSupport's gravatar image

StewSupport

link

answered 2011-12-09 at 14:54:03

CodeCruiser's gravatar image

CodeCruiser

all i really wanted was the following code below. i dont know who i should give the point too
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
Private Sub print()
        PrintDialog1.Document = PrintDocument1
        'If (printDialog1.ShowDialog() = DialogResult.OK) Then
        PrintDocument1.Print()
        'End If
    End Sub


 Private Sub PrintDocument1_PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
        Dim printFont As Font = New Font("Arial", 11)
        Dim leftMargin As Integer = 0
        Dim topMargin As Integer = 0
        e.Graphics.DrawString(PrintString, printFont, Brushes.Black, leftMargin, topMargin)
    End Sub
link

answered 2011-12-09 at 16:06:41

StewSupport's gravatar image

StewSupport

Where did you get that code?
link

answered 2011-12-13 at 13:49:34

CodeCruiser's gravatar image

CodeCruiser

Accept above comment as solution then.
link

answered 2011-12-13 at 13:56:56

CodeCruiser's gravatar image

CodeCruiser

accept

link

answered 2011-12-13 at 13:59:55

StewSupport's gravatar image

StewSupport

Your answer
[hide preview]

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

Asked: 12/09/2011 01:26

Seen: 296 times

Last updated: 12/17/2011 05:20