How to get the output directory and the file name from the printer driver?

Black Ice Printer Driver related questions

Moderator: Technical Support Team

How to get the output directory and the file name from the printer driver?

Postby TechnicalSupportTeam » Fri Mar 18, 2016 5:10 am

There are several ways of getting the output directory of the printer driver:

1. If you want to retrieve the output directory configured for the current user before printing, you can use the
GetOutputDirectory API function from BlackIceDEMOVDE.dll or BlackIceDEVMODE.ocx
BlackIceDEVMODE* pDevMode = LoadBlackIceDEVMODE(“Black Ice PDF Server”);
TCHAR* pOutputDirectory = GetOutputDirectory(pDevMode);


Please see the following pages for more information:

2. To get the output filename of the currently printing document during printing, including the output directory, the Printer Driver Messaging Interface, or Plugin DLL can be used.
Please see any of the Message Capture or BiPlugin Samples that are included in the RTK, or check the following pages in the manual:

3. To get the exact filename of the last output file the Printer Driver printed, including the output directory, you can read the C:\Windows\Temp\bi_group.ini file.
For more information, please see:

It is also possible to set the Printer Driver to start an application and pass the output filename of the printed document as parameter, after the print job is finished.
Please see:

Developer Support Team
Posts: 1002
Joined: Sat Mar 20, 2004 11:50 am

Return to Printer Drivers

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests