smclellan
puffdaddy
- Local time
- Today, 02:57
- Joined
- Mar 12, 2007
- Messages
- 12
PrnAdmin.dll COM library Issue
Hello,
I've encountered an issue trying to use the PrintMaster class and Drivers method from the prndamin.dll COM library. When I used the Drivers() method in a W2K3 environment it worked perfectly, allowing me to iterate through the specified servers print drivers with no problem. But as soon as I tried running the form in an XP environment I started receiving the error:
Runtime Error: '-2147024774 (8007007a)'
Message: The data area passed to a system call is too small
Heres an example of my code:
If anyone has encountered this error and/or could offer some advice on a resoultion I'd be very greatful. Thanks in advance
Scott
Hello,
I've encountered an issue trying to use the PrintMaster class and Drivers method from the prndamin.dll COM library. When I used the Drivers() method in a W2K3 environment it worked perfectly, allowing me to iterate through the specified servers print drivers with no problem. But as soon as I tried running the form in an XP environment I started receiving the error:
Runtime Error: '-2147024774 (8007007a)'
Message: The data area passed to a system call is too small
Heres an example of my code:
Code:
Dim oMaster
Set oMaster = CreateObject('PrintMaster.PrintMaster.1')
For each oDriver in oMaster.Drivers("\\servername")
oMaster.DelDriver oDriver
Next
If anyone has encountered this error and/or could offer some advice on a resoultion I'd be very greatful. Thanks in advance
Scott
Last edited: