Printer driver question

Hi all

What data structures must i use in order to:

  • change the port from “LPT1” to “FILE”?
  • change the default “.prn” extension to a custom extension?
  • Define a custom directory as defaultdirectory to store the file?

Thanks

PJ


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Do you want to programmatically change the port from LPT1 to FILE? Why can’t you just install the printer on the FILE port? In any case, the PRINTER_INFO_x structures contain the portname in the pPortName member. Refer to the SDK documentation for more info on this.

If you are printing to a file port, you can provide any filename along with the path you want. It doesn’t have to be .prn.

  • Ashwin

This posting is provided “AS IS” with no warranties, and confers no rights.

-----Original Message-----
From: Pablo Mogoll?n [mailto:xxxxx@hotmail.com]
Sent: Wednesday, February 20, 2002 4:00 PM
To: NT Developers Interest List
Subject: [ntdev] Printer driver question

Hi all

What data structures must i use in order to:

  • change the port from “LPT1” to “FILE”?
  • change the default “.prn” extension to a custom extension?
  • Define a custom directory as defaultdirectory to store the file?

Thanks

PJ


You are currently subscribed to ntdev as: xxxxx@microsoft.com To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com