PrintPageEventArgs.HasMorePages will not print 2nd page

  • Thread starter Thread starter DGeorge
  • Start date Start date
D

DGeorge

I have a problem where after setting the HasMorePages =
True will not print the 2nd Pages.
Does anybody have an idea or knows this problem.

Thanks for any advice
 
Hello,


DGeorge said:
I have a problem where after setting the HasMorePages =
True will not print the 2nd Pages.
Does anybody have an idea or knows this problem.

Which version of .NET and Windows do you use? Can you give us more
information about the printer used? Will this even occur when "printing" to
the PrintPreview control?
 
-----Original Message-----
Hello,




Which version of .NET and Windows do you use? Can you give us more
information about the printer used? Will this even occur when "printing" to
the PrintPreview control?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet


.

Hi
I working on WXP with .net ver 1.1

The code looks like this :

Private Sub vdoc_PrintPage(ByVal sender As Object, ByVal e
As System.Drawing.Printing.PrintPageEventArgs)

e.Graphics.DrawString("This is the
firstpage",font,brushes,xpos,ypos)

e.HasMorePages = True

e.Graphics.DrawString("This is the Second
page",font,brushes,xpos,ypos)

e.HasMorePages = False
......

thanks and hoping this give a clue
 
Hello,

DGeorge said:
Private Sub vdoc_PrintPage(ByVal sender As Object, ByVal e
As System.Drawing.Printing.PrintPageEventArgs)

e.Graphics.DrawString("This is the
firstpage",font,brushes,xpos,ypos)

e.HasMorePages = True

e.Graphics.DrawString("This is the Second
page",font,brushes,xpos,ypos)

e.HasMorePages = False

Have a look at this sample for the correct usage of 'e.HasMorePages'.
'HasMorePages' will cause the 'PrintPage' handler to be called an other time
for the text page.

http://www.mvps.org/dotnet/dotnet/samples/printing/
-> "PrintFramework"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top