Return to site

How To Print .prn File Using C%23

broken image


Hello

A prn file is a printer specific output file that contains printer codes/instructions to print the content (also in the file). It can't be printed from Word or similar. Refer to this link for some guidance. You need to escape the in your filename string. P.StartInfo.FileName = @'G: tst.prn';. P.StartInfo.FileName = 'G: tst.prn'; If you still have a problem you could add an exit handler and check the ExitCode when it is called. May 23, 2020 Select Local printer and deselect any detection options. Click through to the panel where you select your printer port. From the drop down menu, select FILE: (Print to File) As you move through the Add Printer Wizard, you'll see a long list of manufacturers and printers.

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 Print .prn File Using C# On Mac

  • 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? Danganronpa killing harmony anime dub.

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 … Turok 2 remastered cheats.

Jump 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 …

Imovie 08 for mac free trial

Jump to Post

All 5 Replies

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

How Do I Print A Prn File

How to print a prn
How to open prn file

Jump to Post

All 5 Replies

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

How Do I Print 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 Print .prn File Using C# Excel

Editedby Clinton Portis because:n/a




broken image