>>>Craig,
>>>
>>>>There are also API calls you can make.
>>>
>>>That's what I said. However, dou you have an example how to do this with the windows API ?
>>>
>>>>>You can't do this with a VFP native command. You'll need either to use the API or use a thrid party tool like Focus.fll. See Thread #
585988 Message #
588005>>>
>>>Walter,
>>
>>George Tasker just worked something up for me. You should ping him for it.
>
>I will, Thanks.
>
Walter,
While I don't think that under the circumstances it would be approrpriate for me to provide the actual code that I supplied Craig with, I will write up an FAQ and add the necessary entries to the API list here in the very near future.
For those who can't wait for me to get to it (I actually do have some work to do) here's a short list of how to do this. It will require either Christof Lange's Struct or Ed Rauh's ClsHeap programming.
1. Call the OpenPrinter() API call to retrieve a handle to the desired printer name.
2. Call the GetPrinterDriver() API call passing a NULL for the required sturcture in order to get the amount of memory required.
3. Once the memory has been allocated, pass the address to GetPrinterDriver().
4. Retrieve the pDriverPath string from the structure, using Christof's or Ed's methods.
5. Deallocate the memory.
6. Call the ClosePrinter() API function.
George
Ubi caritas et amor, deus ibi est