How To Print .prn File Using C%23



How to open .prn file
  • Sep 04, 2020 I tried to print a label that will replace the variable field2 with 'SATO Printer' which is 'Sample Text' as the original. Unfortunately, it won't work. Unfortunately, it won't work. Here is the snippet.
  • The only way to specify which to use is the name, so be sure to have a name of the printer before sending a file to print. In our case, we have available a real Brother Printer, so we'll use it in this example. To print the PDF from a file, you only need to use the PrintRawFile method from an instance of RawPrint.

Hello

How

PRN file is a Printer Text file. The PRN is the file created using the 'print to file' option. The PRN file contains the same bytes of data that would have been sent to the selected printer had you not chosen to print to a file. This file can be printed on any printer of the same type for.

I have been trying to make a function that can send the output data or any text to a network printer, I read many articles/posts about it but nothing is working, have been looking for almost a week...
Whenever the program tries to use the printer function, it either hangs or gives the 'failed to open file' message.

It would be really appreciated if someone can give me a hand here, oh and the OS I'm using is Windows XP. and I would prefer if I didn't have to use the MFC or the Windows API if possible, but if this is the only way then it's OK.

Here is a sample of the code that I tried:

How To Open .prn File

  • 2 Contributors
  • forum5 Replies
  • 1,251 Views
  • 3 Days Discussion Span
  • commentLatest PostLatest Postby SearchDS

Recommended Answers

If the network printer is selected as the default device, why not just print normally?

HowHow To Print .prn File Using C%23

Printing (as far as I know using win32 api, which I know you don't want to use) involves the evokation of a standard dialogue box in which the use gets to choose the printing …

HowJump to Post

It's 1:12am and I am wicked tired, but here is a link that will give you an overview of what you are about to get into if you choose to pursue the win32 api route:

Other possible solutions may involve usb level programming (which I …

Jump to Post

.prn File Viewer

All 5 Replies

How To Print .prn File Using C 238

If the network printer is selected as the default device, why not just print normally?

How To View A Prn File

Printing (as far as I know using win32 api, which I know you don't want to use) involves the evokation of a standard dialogue box in which the use gets to choose the printing device as well as many other attributes.

How To Open Prn File

Editedby Clinton Portis because:n/a