Access external application(exe) from printer driver selection in print dialog

  • Thread starter Thread starter validation issue ofPrinter V4 Driver INF
  • Start date Start date
V

validation issue ofPrinter V4 Driver INF

Guest
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?

I had 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

Is it possible? I am confuse. Please guide.

Thanks in advance.

Continue reading...
 
Back
Top