Click here to Skip to main content
14,695,435 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have successfully created V4 printer driver and installed it on 64 bit windows 10 system.

I have created another .net windows application (.exe) for editing file(eg.pdf) and adding header page in it.
As shown in below screenshot , we need to run this application(.exe) every time the user select V4 printer driver named(eg. Fabikam 9000) from printer list and click on print button.

So on clicking PRINT button, it should launch application(.exe) and not straight away print the file.

My Doubts-
1)How can we link application (.exe) with custom V4 printer driver?
2)Does it require any changes in existing INF file or add any deployment script for the above requirement?

What I have tried:

I had tried to change INF file DriverInstall section to call .exe but it fails.

[DriverInstall]
CopyFiles=DriverFiles
DataSection=UNIDRV_BIDI_DATA ; Unidrv Bidirectional Data Section
DataFile=v4PrinterDriverApp.gpd
Include=NTPRINT.INF ; Include NTPRINT.INF.
Needs=TTFSUB.OEM,UNIDRV_BIDI.OEM ; Install Unidrv, TrueType subs,
ExeApp = SampleAddLink

[SampleAddLink]
%10%WinFormPrintDriverApp.exe
Posted
Updated 10-May-20 22:46pm

1 solution

The inf file is used to install the driver, but has no effect on applications that will send output to that printer. But using a Filter Drivers - Windows drivers | Microsoft Docs[^] may be the answer.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900