Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
Programming
 EXP Systems Forum : PDF reDirect : Programming
Topic: Removing Batch Printer Post Reply Post New Topic
Author Message
DaveK
Newbie
Newbie


Joined: 16 Sep 14
Location: United States
Posts: 1
Quote DaveK Replybullet 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 IP Logged
Michel_K17
Moderator Group
Moderator Group
Avatar
Forum Administrator

Joined: 25 Jan 03
Posts: 1673
Quote Michel_K17 Replybullet 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 IP Logged
Post Reply Post New Topic
Printable version Printable version

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