Hello,

I am currently developing a common rendering plugin for 5 serial
printers, In EnablePDEV() I tried using the pPrinterName parameter to
differentiate between my 5 printers so that I can insert customized
code for each printer model. My problem is, when I set the port to
FILE: It seems that the value of pPrinterName is always the default
printer(not the currently selected printer), It works fine when set to
other ports like LPT1.

Is this a specification?
Or maybe I'M doing it all wrong, Can anybody tell me how to get the
currently selected printer during or before EnablePDEV timing.


Thanks in advance
-andrew

Re: Rendering Plugin's EnablePDEV by Serguei

Serguei
Sun Oct 26 09:55:08 CST 2003

> Or maybe I'M doing it all wrong, Can anybody tell me how to get the
> currently selected printer during or before EnablePDEV timing.

Use interface provided to you in PublishDriverInterface and read content of
.gpd file associated with each printer. This, of course, implies that each
printer has some common feature in their .gpd file (hide it from UI as well)
and each of them has distinct default option. Alternatively you can use OEM
data section in .gpd.



Re: Rendering Plugin's EnablePDEV by Andrew

Andrew
Mon Oct 27 19:47:45 CST 2003

Thanks for the reply. I'll look into that option-using the
PublishDriverInterface. It seems that the pPrinterName in
the EnablePdev is not being refreshed so currently what I
did was to getteh Handle to the printer from pdevobj and
from there on, retrieved a PRINTER_INFO structure to get
the driver name. It seems to work fine, still have to do
some testing though.



>-----Original Message-----
>> Or maybe I'M doing it all wrong, Can anybody tell me
how to get the
>> currently selected printer during or before EnablePDEV
timing.
>
>Use interface provided to you in PublishDriverInterface
and read content of
>..gpd file associated with each printer. This, of course,
implies that each
>printer has some common feature in their .gpd file (hide
it from UI as well)
>and each of them has distinct default option.
Alternatively you can use OEM
>data section in .gpd.
>
>
>.
>