Readprinter API and Enumprinters API

G

Guest

Hi
Am having trouble in solving some problems. Thses ar
(1). how can i call Readprinter API fuction using C#.Net or VB.Ne

(2). Am writting a program that will enumerate the printers installed in an
given system using Enumprinters API function
I was able to call the enumprinter successfully loading Printer_Info_
structure.But where am finding it hard to crack is within
the Printer_Info_2 where there is a pointer to a Devmode structur
that defines default printer data such as the pape
orientation and the resolution e.t.c. My aim is to be able to merge the Devmode
structure with the Printer_Info_2 Structure or be able to access the the Devmod
structre members like dmCopies, dmColor e.t. from withi
the Printer_Info_2 structure for each of the printer enumerated so as to be abl
get something like Printer_Info_2.PDevmode.dmCopies
I would very much appreciate it if any person can help me solve any of thes
problems using either C#.Net or VB.Ne
Thank in anticipation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top