By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,703 Members | 1,400 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,703 IT Pros & Developers. It's quick & easy.

PrintPageEventArgs.HasMorePages will not print 2nd page

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hello,
"DGeorge" <do*****@hotmail.com> schrieb:
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?

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2

P: n/a
-----Original Message-----
Hello,
"DGeorge" <do*****@hotmail.com> schrieb:
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 moreinformation about the printer used? Will this even occur when "printing" tothe 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
Nov 20 '05 #3

P: n/a
Hello,

"DGeorge" <do*****@hotmail.de> schrieb:
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"

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.