PrintDocument and Forcing New Page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Situation...
I have:
1) An XML Document that defines print formating and print content eg text,
db data,image etc.
2) Lines of code (vb.Net) that parse the XMl Doc using an XMLTextReader and
produces a piece of paper that falls out of a printer based on the XMlDoc...

All working OK for single page document.

Problem...
What if the XMl doc has more content then can fit on a single page.

Yep... I can track the Y pos and say.. Hey! I have reached a certain
boundry...
But how do I then force a 'page break' and continue parsing the XML Doc....??

Generally if I'm using an IO text stream I'd use 'e.hasmorepages' but this
is a different scenario.

Any Help Appreciated...
 
Back
Top