SNA Print Server Data Filter Samples

 

The PrintServer sample illustrates features of the SNA Print Server Data Filter API. These features can be used to extend the capabilities of the Host Print Service in Host Integration Server 2013. The sample code illustrates how to write a print data filter dynamic-link library (DLL) that will be called by Host Print Service when a print job is initiated, when data is sent to the printer, and when the print job is completed.

<installation directory>\Program Files\<version>\SDK\Samples\NetworkIntegration\PrintServer

File(s)

Description

In the /PrintServer/PrintDefFile directory

Hplj2.pdf

The sample file to print

In the /PrintServer/PrnFltr directory

Makefile

NTFilter.c

NTFilter.Def

NtFilter.h

NTFilter.Mdp

NTFilter.rc

Prntfltr.sln

Prntfltr.vcproj

The sample application an related files, The sample program written in C that illustrates use of the SNA Print Server Data Filter API.

Also includes an include file with function defines, a resource file, a command-line makefile, and a project file.

The PrnFltr sample is designed to be built using Visual Studio.

To build the PrnFltr sample using the command-line compiler

  1. Open a command prompt window

  2. Run VSVARS32.bat from the Visual Studio bin directory

    by default, the location is C:\Program Files\Microsoft Visual Studio\Common7\Tools

  3. Navigate to \PrintServer\PrnFlter subdirectory, and invoke NMAKE

To build the PrnFltr sample using Visual Studio

  1. open the appropriate Visual C++ project file (PrintServer\PrnFltr\ntfilter.vcproj) from the File menu.

  2. Select a configuration and build the sample from the Build menu.

    Each project file has two configurations, one for a DEBUG build and one for a RETAIL build.

Show: