Re: Simple printing and graphics



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



.



Relevant Pages

  • Re: Corresponding Printer Object of Vb6 in VB.Net
    ... >I want to know what is the corresponding printer object of VB6 in VB.Net ... Preview and Print from Your Windows Forms App with the .NET Printing ...
    (microsoft.public.dotnet.languages.vb)
  • which print processor for best printing performance?
    ... Network ... Specifically, printing tables and large, complex images make the ... I feel it might be related to the older hardware rendering performance ... I also wonder what the "winprint" print processor is for as opposed to ...
    (microsoft.public.win2000.printing)
  • Re: Printouts NOT coming out in order they are sent???
    ... You using two COMPLETE different approaches to printing the repots. ... tell access to print the report, BUT DO NOT display it.. ... The display and graphics and rendering systems of windows is a highly ...
    (comp.databases.ms-access)
  • Re: Printing in Project
    ... files for printing between 2007 and earlier versions other than to say ... has the rendering etc changed so much between ... print wont display them. ... There have also been some reports about the 3D bars in Project ...
    (microsoft.public.project)
  • Printing gets partial results
    ... The pages are a header with an image and two lines of text, ... Originally I tried scaling the graphics object, and telling the table to print, but after a few pages, the table would stop printing. ... The problem is that on any job larger than a page, one page will stop rendering often in the middle of a line, and the rest of that page will not render to the printer. ... And I've tried running portions in a separate thread. ...
    (comp.lang.java.programmer)