Click here to Skip to main content
15,888,142 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: microsoft report viewer in visual studio does not function with a stored procedure Pin
Mycroft Holmes5-May-09 21:41
professionalMycroft Holmes5-May-09 21:41 
GeneralRe: microsoft report viewer in visual studio does not function with a stored procedure Pin
sourav_bhargava5-May-09 23:06
sourav_bhargava5-May-09 23:06 
GeneralRe: microsoft report viewer in visual studio does not function with a stored procedure Pin
sourav_bhargava5-May-09 23:21
sourav_bhargava5-May-09 23:21 
Questionproblem of checklistbox Pin
nazimghori5-May-09 17:38
nazimghori5-May-09 17:38 
QuestionDisposing of images in GDI+ Pin
Alan Burkhart5-May-09 16:17
Alan Burkhart5-May-09 16:17 
AnswerRe: Disposing of images in GDI+ Pin
Christian Graus5-May-09 17:02
protectorChristian Graus5-May-09 17:02 
GeneralRe: Disposing of images in GDI+ Pin
Alan Burkhart5-May-09 18:11
Alan Burkhart5-May-09 18:11 
QuestionPrinting Problem (Jump to next Page) Pin
Zaegra5-May-09 5:37
Zaegra5-May-09 5:37 
Hey,

I am trying to print an overview with a For Each loop. Now, in this loop I check whether the current Y position exceeds the pages maximum Y, and if so, I set e.HasMorePages to True. However, this isn't working. It keeps printing and printing while it shouldn't. Here is an example of my code. (In the PrintDocument.PrintPage Event)

For Each Uitgave As Xml.XmlNode In UitgavenNode.ChildNodes(MonthToPrint).ChildNodes
      ... 
           StartY+=PrintFont.GetHeight
        If StartY >= e.MarginBounds.Height Then
           StartY = e.MarginBounds.Y
           e.HasMorePages = True
        Else
                e.HasMorePages = False

        End If
Next


So the bottom line is: When StartY >= e.MarginBounds.Height then it must jump to a blank page and continue printing. Please note that this all happens within a loop and printing must continue at the same position within the loop.
Please tell me what's wrong with this code, so I can fix it Big Grin | :-D

Thanks in advance,
Zaegra Smile | :)

Motivation is the key to software development.

AnswerRe: Printing Problem (Jump to next Page) Pin
Dave Kreskowiak5-May-09 5:48
mveDave Kreskowiak5-May-09 5:48 
QuestionSend email VB 2008 and outlook 2003 Pin
Member 22887045-May-09 1:52
Member 22887045-May-09 1:52 
AnswerRe: Send email VB 2008 and outlook 2003 Pin
Mycroft Holmes5-May-09 17:26
professionalMycroft Holmes5-May-09 17:26 
GeneralRe: Send email VB 2008 and outlook 2003 Pin
Member 22887046-May-09 1:41
Member 22887046-May-09 1:41 
GeneralRe: Send email VB 2008 and outlook 2003 Pin
Dave Kreskowiak6-May-09 2:16
mveDave Kreskowiak6-May-09 2:16 
AnswerRe: Send email VB 2008 and outlook 2003 Pin
Lexter33335-May-09 20:49
Lexter33335-May-09 20:49 
GeneralRe: Send email VB 2008 and outlook 2003 Pin
Member 22887046-May-09 1:47
Member 22887046-May-09 1:47 
AnswerRe: Send email VB 2008 and outlook 2003 Pin
Samir Ibrahim7-May-09 7:24
Samir Ibrahim7-May-09 7:24 
GeneralRe: Send email VB 2008 and outlook 2003 Pin
Member 22887048-May-09 1:29
Member 22887048-May-09 1:29 
Questionround shapes Pin
TheMrProgrammer5-May-09 1:45
TheMrProgrammer5-May-09 1:45 
AnswerRe: round shapes Pin
Anubhava Dimri5-May-09 2:45
Anubhava Dimri5-May-09 2:45 
AnswerRe: round shapes Pin
Dave Kreskowiak5-May-09 5:39
mveDave Kreskowiak5-May-09 5:39 
Question.dbf files Pin
vijay24824-May-09 23:03
vijay24824-May-09 23:03 
Answer[Message Deleted] Pin
Dinesh Vitharana4-May-09 23:31
Dinesh Vitharana4-May-09 23:31 
GeneralRe: .dbf files Pin
Dinesh Vitharana4-May-09 23:47
Dinesh Vitharana4-May-09 23:47 
GeneralRe: [Message Deleted] Pin
vijay24825-May-09 0:01
vijay24825-May-09 0:01 
AnswerRe: .dbf files Pin
Samir Ibrahim4-May-09 23:55
Samir Ibrahim4-May-09 23:55 

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.