Hi, I am trying to implement a printing functionality in an application and have never done it. One question I have, is it possible to create multiple DC which I will pass to my printer DC? I need to print different kind of information on the page from different sources, so I was thinking of creating a DC for each of the information I need to print, then arrange those DC on the main printer DC. Is it possible? How can it be done otherwise? Thank you
"Clem" wrote in message news:78564DE6-4B82-4830-AF75-8D47F07FA17B@microsoft.com... > Hi, > > I am trying to implement a printing functionality in an application and > have > never done it. > One question I have, is it possible to create multiple DC which I will > pass > to my printer DC? > I need to print different kind of information on the page from different > sources, so I was thinking of creating a DC for each of the information I > need to print, then arrange those DC on the main printer DC. > Is it possible? How can it be done otherwise? You don't pass DCs to another DC. You should be drawing on the printer DC the same way you'd draw on a screen/window DC. The sources for the rendering you do on the printer DC are all up to you :) Mark -- Mark Salsbery Microsoft MVP - Visual C++ > > Thank you
Thank you for your quick reply. "Mark Salsbery [MVP]" wrote: > "Clem" wrote in message > news:78564DE6-4B82-4830-AF75-8D47F07FA17B@microsoft.com... > > Hi, > > > > I am trying to implement a printing functionality in an application and > > have > > never done it. > > One question I have, is it possible to create multiple DC which I will > > pass > > to my printer DC? > > I need to print different kind of information on the page from different > > sources, so I was thinking of creating a DC for each of the information I > > need to print, then arrange those DC on the main printer DC. > > Is it possible? How can it be done otherwise? > > > You don't pass DCs to another DC. You should be drawing on the printer DC > the same way you'd draw on a screen/window DC. > The sources for the rendering you do on the printer DC are all up to you :) > > Mark > > -- > Mark Salsbery > Microsoft MVP - Visual C++ > > > > > > Thank you >