How to Create raw printer file(prn) from bmp
I want to make raw printer command from开发者_StackOverflow a BMP Image for hp laserjet printer 1018 in C# and then send to printer as prn file. pay attention please, that I dont want to use printer driver that released by hp company.
There are 2 distinct things that happen when you print from a Windows application. The first one, providing a device context and rendering the output, requires a printer driver. The second one, streaming the resulting document, does not. You can configure a printer driver to print to a file, but you cannot create print output without a printer driver. The printer driver converts the BMP image into something that the printer understands.
You can use another PCL printer driver for that matter, configure it to print to file, then take the file and send it to your printer. But you cannot generate the file without a printer driver. Trying to do that amounts to writing your own printer driver of sorts, which you can do. Any PCL reference will show you what commands the printer understands.
精彩评论