Click here to Skip to main content
15,900,530 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionTry to execute with shellExecute Pin
fritzdjam23-Nov-07 4:15
fritzdjam23-Nov-07 4:15 
AnswerRe: Try to execute with shellExecute [modified] Pin
Luc Pattyn23-Nov-07 4:30
sitebuilderLuc Pattyn23-Nov-07 4:30 
GeneralRe: Try to execute with shellExecute Pin
Dave Kreskowiak23-Nov-07 5:06
mveDave Kreskowiak23-Nov-07 5:06 
GeneralRe: Try to execute with shellExecute Pin
Luc Pattyn23-Nov-07 5:32
sitebuilderLuc Pattyn23-Nov-07 5:32 
GeneralRe: Try to execute with shellExecute Pin
Dave Kreskowiak23-Nov-07 5:52
mveDave Kreskowiak23-Nov-07 5:52 
GeneralRe: Try to execute with shellExecute Pin
Luc Pattyn23-Nov-07 6:01
sitebuilderLuc Pattyn23-Nov-07 6:01 
GeneralRe: Try to execute with shellExecute Pin
Dave Kreskowiak23-Nov-07 6:38
mveDave Kreskowiak23-Nov-07 6:38 
QuestionHelp for PrintPageEventArgs Pin
MrFulvio23-Nov-07 3:41
MrFulvio23-Nov-07 3:41 
Sub pd_Printpage(ByVal sender As Object, ByVal ev As PrintPageEventArgs)
Dim linesPerPage As Single = 0
Dim yPos As Single = 0
Dim leftMargin As Single = ev.MarginBounds.Left
Dim topMargin As Single = ev.MarginBounds.Top
Dim line As String = Nothing
' STAMPA INTESTAZIONE
IntestazionediPagina(yPos, leftMargin, topMargin, ev)
count = 14 + 1
printFont = New Font("Courier New", 10, FontStyle.Regular)
' Calculate the number of lines per page.
linesPerPage = ev.MarginBounds.Height / printFont.GetHeight(ev.Graphics)
' BEGIN READ FILE
Do Until EOF(Numfile)
' Print each line of the file.
If count < linesPerPage Then
FileGet(Numfile, RigoOrdine)
line = Rigo(RigoOrdine)
yPos = topMargin + count * printFont.GetHeight(ev.Graphics)
ev.Graphics.DrawString(line, printFont, Brushes.Black, leftMargin, yPos, New StringFormat)
count += 1
ElseIf Not line Is Nothing Then
ev.HasMorePages = True
'IntestazionediPagina(yPos, leftMargin, topMargin, ev)
Exit Sub

Else
ev.HasMorePages = False
End If
Loop
End Sub


When generates the second page the text is written on the first page

Tks

Fulvio
AnswerRe: Help for PrintPageEventArgs Pin
Duncan Edwards Jones23-Nov-07 4:14
professionalDuncan Edwards Jones23-Nov-07 4:14 
QuestionPublish OR install project Pin
barney_197223-Nov-07 2:59
barney_197223-Nov-07 2:59 
AnswerRe: Publish OR install project Pin
Dave Kreskowiak23-Nov-07 5:03
mveDave Kreskowiak23-Nov-07 5:03 
GeneralRe: Publish OR install project Pin
Paul Conrad23-Nov-07 14:17
professionalPaul Conrad23-Nov-07 14:17 
QuestionWriting a Plugin With Dependencies Pin
TheFarsider23-Nov-07 2:48
TheFarsider23-Nov-07 2:48 
QuestionCalling Windows App from command line prompt? Pin
barney_197223-Nov-07 2:15
barney_197223-Nov-07 2:15 
AnswerRe: Calling Windows App from command line prompt? Pin
Dave Kreskowiak23-Nov-07 4:55
mveDave Kreskowiak23-Nov-07 4:55 
GeneralRe: Calling Windows App from command line prompt? Pin
barney_197223-Nov-07 5:48
barney_197223-Nov-07 5:48 
GeneralRe: Calling Windows App from command line prompt? Pin
Dave Kreskowiak23-Nov-07 6:39
mveDave Kreskowiak23-Nov-07 6:39 
QuestionProblems in implementing WebBrowser control Pin
Abhishek Joshi23-Nov-07 2:04
Abhishek Joshi23-Nov-07 2:04 
QuestionDynamically build excel worksheet with VSTO2005 problem Pin
epetri23-Nov-07 0:56
epetri23-Nov-07 0:56 
AnswerRe: Dynamically build excel worksheet with VSTO2005 problem Pin
Dave Kreskowiak23-Nov-07 4:50
mveDave Kreskowiak23-Nov-07 4:50 
GeneralRe: Dynamically build excel worksheet with VSTO2005 problem Pin
epetri23-Nov-07 9:04
epetri23-Nov-07 9:04 
QuestionRichTextBox Lines(0) Remove does not work Pin
ESTAN22-Nov-07 22:52
ESTAN22-Nov-07 22:52 
AnswerRe: RichTextBox Lines(0) Remove does not work Pin
Luc Pattyn23-Nov-07 1:30
sitebuilderLuc Pattyn23-Nov-07 1:30 
QuestionProblem in Integer array in VB.net Pin
kokilaB22-Nov-07 22:46
kokilaB22-Nov-07 22:46 
AnswerRe: Problem in Integer array in VB.net Pin
SHatchard22-Nov-07 23:32
SHatchard22-Nov-07 23:32 

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.