Click here to Skip to main content
15,878,852 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i'm going to write an exe for setting the data type of print processor to EMF using C#.net code. but i didn't find any solution.

could you please provide to me the solution for the above scenario.


thank you
Posted
Updated 21-Oct-14 23:27pm
v2
Comments
[no name] 21-Oct-14 1:33am    
The question is not clear. Are you sure you mean Print Processor _ maybe you meant to say Print Spooler. The question would make more sense then. Perhaps explain what you are trying to do.
Sergey Alexandrovich Kryukov 21-Oct-14 1:44am    
Solution for what?
—SA
Member 11093824 21-Oct-14 2:52am    
how can i set print processor data type into EMF using C#.net code?
Sergey Alexandrovich Kryukov 21-Oct-14 12:10pm    
I cannot understand it. "EMF" may mean "Emhanced Metafile", or what?
—SA
Member 11093824 21-Oct-14 23:35pm    
Enhanced MetaFIle

1 solution

You probably need to use the API.

Specifically EnumPrintProcessorDataTypes[^] to list the data types the printer supports and then use SetPrinter (with PRINTER_INFO_2[^] structure) to set the .lpDataType to your chosen one.
 
Share this answer
 
Comments
Member 11093824 22-Oct-14 7:07am    
how to use EnumPrintProcessorDataTypes[^] in C#.net code?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900