StartDoc - Input File Directory Required

Thanks for the quick reply.

But i need the Input Path (full path) instead of the output directory.

Lets assume i fire a print of a document from c:\windows\temp directory, i
need to know programmatically
that it is the path of the file that is getting fired. And i need it in the
context of spooler. Printer Driver should get the details abt the
SOURCE(INPUT) file Directory.

DOC_INFO_x structure has output file details. But I need the input file path
that is printed.

Any clue?

Thanks once again,
Venkat

-----Original Message-----
From: Ashwin Needamangala [mailto:xxxxx@microsoft.com]
Sent: Thursday, June 06, 2002 9:06 PM
To: NT Developers Interest List
Subject: [ntdev] RE: StartDoc Spooler call(GDI -> Printer Driver)

The output path information is present in the DOC_INFO_x structure which
is passed to the spooler in StartDocPrinter or to the print monitor in
StartDocPort.

  • Ashwin

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

-----Original Message-----
From: Tera NTDev [mailto:xxxxx@teraltd.com]
Sent: Thursday, June 06, 2002 5:05 AM
To: NT Developers Interest List
Subject: [ntdev] StartDoc Spooler call(GDI -> Printer Driver)

Hi

In StartDoc call, the document name is sent from GDI to the spooler.

lpszDocName - Pointer to a null-terminated string that specifies the
name of the document. And output file name is sent if it is a print to
file.

Now, If I fire a printout of a file from a specific directory say
c:\temp\123, How can I get the “Directory information” passed from GDI
to the printer driver?. We get the file name currently from GDI to the
printer driver. I need to know the source directory of the file that is
currently being printed.

Can anyone suggest any solution for this?.

Thanks
Venkat


You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@teraltd.com
To unsubscribe send a blank email to %%email.unsub%%

AFAIK, the driver has no knowledge of the full path of the document that
is being printed. The application calls StartDoc to initiate a print job
and all that is passed here is the DOC_INFO_x structure that has only
the document name. I don’t see any way to obtain the full path of the
document from the driver.

  • Ashwin

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

-----Original Message-----
From: Tera NTDev [mailto:xxxxx@teraltd.com]
Sent: Thursday, June 06, 2002 9:48 PM
To: NT Developers Interest List
Subject: [ntdev] StartDoc - Input File Directory Required

Thanks for the quick reply.

But i need the Input Path (full path) instead of the output directory.

Lets assume i fire a print of a document from c:\windows\temp directory,
i need to know programmatically that it is the path of the file that is
getting fired. And i need it in the context of spooler. Printer Driver
should get the details abt the
SOURCE(INPUT) file Directory.

DOC_INFO_x structure has output file details. But I need the input file
path that is printed.

Any clue?

Thanks once again,
Venkat

-----Original Message-----
From: Ashwin Needamangala [mailto:xxxxx@microsoft.com]
Sent: Thursday, June 06, 2002 9:06 PM
To: NT Developers Interest List
Subject: [ntdev] RE: StartDoc Spooler call(GDI -> Printer Driver)

The output path information is present in the DOC_INFO_x structure which
is passed to the spooler in StartDocPrinter or to the print monitor in
StartDocPort.

  • Ashwin

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

-----Original Message-----
From: Tera NTDev [mailto:xxxxx@teraltd.com]
Sent: Thursday, June 06, 2002 5:05 AM
To: NT Developers Interest List
Subject: [ntdev] StartDoc Spooler call(GDI -> Printer Driver)

Hi

In StartDoc call, the document name is sent from GDI to the spooler.

lpszDocName - Pointer to a null-terminated string that specifies the
name of the document. And output file name is sent if it is a print to
file.

Now, If I fire a printout of a file from a specific directory say
c:\temp\123, How can I get the “Directory information” passed from GDI
to the printer driver?. We get the file name currently from GDI to the
printer driver. I need to know the source directory of the file that is
currently being printed.

Can anyone suggest any solution for this?.

Thanks
Venkat


You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@teraltd.com
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%