When I first converted a program from an older version of VB to
VB .Net, I used the printer compatibility library with good success.
It treated the printer as a device. Print this, print that, start a new page,
and so on. Recently, when adding the printing of graphics, I started running
into out of memory conditions. I discovered that I could use the base
.Net print capabilites to resolve this problem for the graphic images.
If all I am printing is the graphic images, this is not too bad.
However, the application I have has a mix. Print this form followed by
another form followed by a graphic followed by another form. Each form
and graphic could print on a single page or take multiple pages. The default
.Net approach of a call back to get each page becomes extremely clumsy.
Each print routine needs to remember which page it is currently on between calls and the print distributing routine needs to keep track of what form is currently being printed.
Is there another printing interface available?
View Complete Post