Readprinter Api and Enumprinter Api

G

Guest

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

(2). Am writting a program that will enumerate the printers installed in any
given system using Enumprinters API function.
I was able to call the enumprinter successfully loading Printer_Info_2
structure.But where am finding it hard to crack is within
the Printer_Info_2 where there is a pointer to a Devmode structure
that defines default printer data such as the paper
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 Devmode
structre members like dmCopies, dmColor e.t. from within
the Printer_Info_2 structure for each of the printer enumerated so as to be able
get something like Printer_Info_2.PDevmode.dmCopies.
I would very much appreciate it if any person can help me solve any of these
problems using either C#.Net or VB.Net
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