Board index » delphi » CREATE A PRINTER THAT NOT EXIST

CREATE A PRINTER THAT NOT EXIST

I need to know how can i create a Printer that is not really instaled in my
PC.

I am trying creating a DEVMODE struct and then pass it to hte function

hdc = CREATEDC(NULL, "Printer", NULL, DevMode);
TPrintDC prdc(hdc);

When i execute

prdc.GetDeviceCaps()

it doesn't return the values that there was on the DEVMODE struct.

Please help me.
Thanks
Javi

 

Re:CREATE A PRINTER THAT NOT EXIST


As  far as I know, you can't do this. The DEVMODE structure is  intended to
communicate with an installed device driver. You'll have to install the
driver even if the printer is not physically attached.

Regards,
Bruce

Other Threads