Active Topics Memberlist Search Help | |
Register Login |
Programming | |
EXP Systems Forum : PDF reDirect : Programming |
Topic: Removing Batch Printer | |
Author | Message |
DaveK
Newbie Joined: 16 Sep 14 Location: United States Posts: 1 |
Topic: Removing Batch Printer Posted: 17 Sep 14 at 2:00PM |
After some time I was able to figure out how to print to pdf using a batch printer and the ActiveX. Now, the batch printer is available to be selected as a printer. I want to remove the batch printer and recreate it only as needed. How can I do that?
|
|
IP Logged | |
Michel_K17
Moderator Group Forum Administrator Joined: 25 Jan 03 Posts: 1673 |
Posted: 17 Sep 14 at 9:45PM |
Hi Dave,
Good question. AS I recall, the ActiveX will create the batch printer automatically if one is not there, but I did not put any code to remove the printer after the fact. However, the removal of the printer is easily done via an VBA API call. The API Function is "DeletePrinter". I found some sample code here which should get you going in the right direction: http://binaryworld.net/main/CodeDetail.aspx?CodeId=3646 Cheers! Michel |
|
Michel Korwin-Szymanowski
EXP Systems LLC |
|
IP Logged | |
Forum Jump |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |