Click here to Skip to main content
15,886,069 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: That Dammned Caret! Pin
Anybloodyid26-Feb-07 22:02
Anybloodyid26-Feb-07 22:02 
GeneralRe: That Dammned Caret! Pin
TwoFaced27-Feb-07 9:02
TwoFaced27-Feb-07 9:02 
GeneralRe: That Dammned Caret! Pin
Anybloodyid27-Feb-07 21:49
Anybloodyid27-Feb-07 21:49 
GeneralRe: That Dammned Caret! Pin
TwoFaced28-Feb-07 8:46
TwoFaced28-Feb-07 8:46 
GeneralRe: That Dammned Caret! [modified] Pin
Anybloodyid28-Feb-07 11:31
Anybloodyid28-Feb-07 11:31 
QuestionVB.NET Printing Alignment??? Pin
harveyhanson25-Feb-07 9:10
harveyhanson25-Feb-07 9:10 
AnswerRe: VB.NET Printing Alignment??? Pin
Snews25-Feb-07 19:42
Snews25-Feb-07 19:42 
QuestionVB.NET 2005 Printing Help please Pin
harveyhanson25-Feb-07 7:37
harveyhanson25-Feb-07 7:37 
I have this code to print some text:

---
Private Sub frmPrint_Load...
txtPrint.Text = strName & ", You Got " & intPerc & "Completed on " & Date.Today

Try
Dim printdoc As New PrintDocument
AddHandler printdoc.PrintPage, AddressOf Me.printtext
printdoc.Print()
Catch ex As Exception
MessageBox.Show("There is a problem printing, please check with your teacher", _
ex.ToString())
End Try
MsgBox("Your certificate has been sent to the printer")
Me.Close()
frmResultHigh.Show()
End Sub
---
Private Sub printtext...
ev.Graphics.DrawString(txtPrin... New Font("Century Gothic", 24, FontStyle.Bold), Brushes.Black, 120, 120)
ev.HasMorePages = False
End Sub
---

Is there any way to make the lines of text on different lines on the printout, as obviously it all comes out on the same line at the moment, and is there any way to insert a pic after the text e.g.

---
Well Done

Name

Score

PICTURE
----

Cheers
AnswerRe: VB.NET 2005 Printing Help please Pin
TwoFaced25-Feb-07 8:02
TwoFaced25-Feb-07 8:02 
GeneralRe: VB.NET 2005 Printing Help please Pin
harveyhanson25-Feb-07 8:21
harveyhanson25-Feb-07 8:21 
GeneralRe: VB.NET 2005 Printing Help please Pin
TwoFaced25-Feb-07 8:28
TwoFaced25-Feb-07 8:28 
GeneralRe: VB.NET 2005 Printing Help please [modified] Pin
harveyhanson25-Feb-07 8:34
harveyhanson25-Feb-07 8:34 
GeneralRe: VB.NET 2005 Printing Help please Pin
TwoFaced25-Feb-07 8:55
TwoFaced25-Feb-07 8:55 
GeneralRe: VB.NET 2005 Printing Help please Pin
harveyhanson25-Feb-07 9:09
harveyhanson25-Feb-07 9:09 
QuestionVS 2005 bindingsource using a complex filter Pin
steve_rm25-Feb-07 7:31
steve_rm25-Feb-07 7:31 
Questionkeeping a class in scope Pin
cstrader23225-Feb-07 7:14
cstrader23225-Feb-07 7:14 
AnswerRe: keeping a class in scope Pin
Christian Graus25-Feb-07 8:47
protectorChristian Graus25-Feb-07 8:47 
GeneralRe: keeping a class in scope Pin
cstrader23225-Feb-07 8:54
cstrader23225-Feb-07 8:54 
GeneralRe: keeping a class in scope Pin
cstrader23225-Feb-07 9:03
cstrader23225-Feb-07 9:03 
GeneralRe: keeping a class in scope Pin
Christian Graus25-Feb-07 10:01
protectorChristian Graus25-Feb-07 10:01 
GeneralRe: keeping a class in scope Pin
cstrader23225-Feb-07 16:22
cstrader23225-Feb-07 16:22 
GeneralRe: keeping a class in scope Pin
Christian Graus25-Feb-07 17:08
protectorChristian Graus25-Feb-07 17:08 
QuestionDatagrid and MS Access Pin
China-Gary25-Feb-07 5:19
China-Gary25-Feb-07 5:19 
QuestionCreating a Picture Box Pin
Klazen25-Feb-07 4:28
Klazen25-Feb-07 4:28 
AnswerRe: Creating a Picture Box Pin
Dave Kreskowiak25-Feb-07 6:06
mveDave Kreskowiak25-Feb-07 6:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.