Guest_imported
New member
- Jan 1, 1970
- 0
I am using the windows common dialog control and I am using the showprinter method. I set the PrinterDefault Property to true. This changes the pointer that vb has to the reserved word "printer" or vb.printer. I need to retrieve the DeviceName and DeviceMode properties from that object or from the common dialog. I don't want to have to declare the devmode type and allocate the memory for the object and then fill in the properties. I can get the deviceName property from the printer object. So my question is: Is there any way to retrieve the DeviceMode of a printer from the printer object or possibly a function that returns a deviceMode type from a devicename or something to that effect. Many thanks in advance for the help.
Cheers
Cheers