CassandraR
Programmer
To Brian D., who emailed the following message to me:
Brian:
Sorry that I won't be of much help. The "Printer Select" project (previously copied to the FAQs) is a project that I have not worked on in two years. Things have faded from memory in that time.
Another problem is that I did not specifically address the issues of dealing with networked printers.
I would suggest getting familiar with API functions such as GetLastError (see AllApi website entry as errors occurring within the printer API functions are likely to set the error entries. For example, looking at GetPrinter ( and SetPrinter ( API calls shows the following information:
I believe that you will find the same for most, if not all, printer API calls. Check the examples on both the AllAPI and the MSDN (MS) websites.
Sorry that I cannot be of much help, but do hope you can find the answers easily and quickly.
By the way, I tried to reply via email but my email to you bounced back. Have you changed your email address, as listed on Tek Tips?
Cassie
Cassie
PIII-500Mhz-128MB
Win98SE-VB6SP5
Brian said:Thanks for your helpful printing examples. I'm having trouble manipulating printer settings for a network printer. Are there any specific errors that will be generated by the API calls that I can use to determine if a printer property change call has failed? For privileges??
Thanks,
Brian
Brian:
Sorry that I won't be of much help. The "Printer Select" project (previously copied to the FAQs) is a project that I have not worked on in two years. Things have faded from memory in that time.
Another problem is that I did not specifically address the issues of dealing with networked printers.
I would suggest getting familiar with API functions such as GetLastError (see AllApi website entry as errors occurring within the printer API functions are likely to set the error entries. For example, looking at GetPrinter ( and SetPrinter ( API calls shows the following information:
Microsoft said:Return Values
If the function succeeds, the return value is nonzero.[NL][NL]If the function fails, the return value is zero. To get extended error information, call GetLastError.
I believe that you will find the same for most, if not all, printer API calls. Check the examples on both the AllAPI and the MSDN (MS) websites.
Sorry that I cannot be of much help, but do hope you can find the answers easily and quickly.
By the way, I tried to reply via email but my email to you bounced back. Have you changed your email address, as listed on Tek Tips?
Cassie
Cassie
PIII-500Mhz-128MB
Win98SE-VB6SP5