473,396 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Readprinter Api and Enumprinter Api

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.
Jul 21 '05 #1
0 2028

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Abubakar | last post by:
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...
5
by: trint | last post by:
The WritePrinter() is working. I know this ReadPrinter() implementation isn't correct because it never reads into "reaDstrinG" buffer from the printer...But, I'm sure one of you Guru's do know how...
6
by: trint | last post by:
The WritePrinter() is working. I know this ReadPrinter() implementation isn't correct because it never reads into "reaDstrinG" buffer from the printer...But, I'm sure one of you Guru's do know how...
0
by: Abubakar | last post by:
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.