Re: Simple printing and graphics
- From: "Kevin Spencer" <uce@xxxxxxx>
- Date: Thu, 6 Jul 2006 10:05:23 -0400
I'm confused. You say you want "sugggestions on how to implement the
rendering of each page." This would refer, I presume to "printing each
page?" That's not hard at all to do, which is why I reviewed how the
PrintDocument prints. It raises an event when you call the Print method. The
event passes a boolean "HasMorePages." If this is turned on in the event
handler, the event will fire again. So, let's say you've got an array, a
collection, an aggregate group of objects. All you have to do is set the
"HasMorePages" value to true until you get to the last item in the
Collection. As you keep track of the current position in the Collection, you
print each item in the same event handler.
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist
Big thicks are made up of lots of little thins.
"Chris Dunaway" <dunawayc@xxxxxxxxx> wrote in message
news:1152192652.326043.176750@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Kevin Spencer wrote:
<snipped big explanation of current .Net printing process>
Thank you for your response. I understand the .Net way of printing.
That was not my question. I wish to create a class for simplifying the
process. My original post described how I wish for the process to
occur.
My question was a request for suggestions on how to implement the
rendering of each page. Ultimately, behind the scenes, my class would
use the existing .Net printing infrastructure to actually print the
document. I am attempting to create a class to make it easier to
print. My thought was a document class with a Pages collection. The
user of the class could use that metaphor more easily than the event
driven nature of the .Net way.
Thanks again.
Chris
.
- Follow-Ups:
- Re: Simple printing and graphics
- From: Chris Dunaway
- Re: Simple printing and graphics
- References:
- Simple printing and graphics
- From: Chris Dunaway
- Re: Simple printing and graphics
- From: Kevin Spencer
- Re: Simple printing and graphics
- From: Chris Dunaway
- Simple printing and graphics
- Prev by Date: Re: http Request
- Next by Date: Re: http Request
- Previous by thread: Re: Simple printing and graphics
- Next by thread: Re: Simple printing and graphics
- Index(es):
Relevant Pages
|