Print Crystal Report to Intermec Printer - c#

I have this situation in which I must print a barcode to a intermec printer (PC43T) and the printer is not installed on the server, as the clients will be using this printing from a web app.
The printer has a ethernet module and we have the Ip and the port (9100 the default one).
As I cannot use PrintToPrinter from the crystal report engine, I've tried to export the report and convert it to a byte array and send it in this way. I've also tried almost all of ExportFormatType formats and still nothing. The printer seems to receive some data but nothing is printed out.
Can you please help me with this issue on how to print crystal report on a remote printer?
I forgot to mention that the communication with the printer is established using client socket and IPEndPoint and it was tested using a .prn file for test and the printer it's working.
Tech stack: VS2017, SAP Crystal report version 13.0

Related

How to send a raw IPL to intermec pm4i printer using C# via USB

Good Morning,
I need to send an IPL command to usb printer, but I do not even know how to get started.
Can anybody help me?
the ipl code is:
https://drive.google.com/file/d/0B5fjx01OqT4KcUh0LVdkZEtfWkE/view?usp=sharing
If you're using Windows (not Linux Mono), I think the best way is to use the Intermec driver software and create a local USB printer. Once you have a printer created in the O.S., you can just send it raw data. Here's the microsoft link that shows you how to do that ...
https://support.microsoft.com/en-us/help/322091/how-to-send-raw-data-to-a-printer-by-using-visual-c-.net#top

How to print report on client side printer using ASPxDocumentViewer?

We are working on 14.1.7 version of Devexpress. We have an application running on a server. This server is not in our local network.
Our project is preparing reports to print after some operation on each cleints in different network area.Think one our customer (client) in USA,
another is in Russia. But they want to use their loacal printer to print report. And we succesfully print report in development enviroment in visiual st 2010 until publish on remote server.
Additionly we add data to report as dynimically. And we get error "No printers are installed".
Thanks for helps....

Is it possible to print from local pc default printer?

Work on vs2005 Asp.net C# Application ,face problem on printer setup on my report. After deploy the application on server iis ,if I give print command from my local pc , rdlc report viewer page application run print command on my server pc’s default set printer but I want to print from my local pc’s default set printer.
I'd like to have a "Print" button on that page, which prints a specific set of information to the default printer attached to the client machine.
Is this possible from asp.net C#? I have found things online about printing to a printer attached to the server, but that's not really what I want. What I do?
Any type of suggestion will be acceptable, if have any query please ask. Thanks in advanced
You should let the user invoke the printing functionality from the browser, where they can control the printer and any other choices they might want (double-sided, landscape/portrait, etc.) If the default report format is better for presentation in the browser than printing, you can give them a link to a "printer friendly version" and let them print from there.
Its true, and never change as you want. The reason is crystal report is run on server, whenever you click button. So while print, it always print on the server's default printer, not client default printer.
This is the server side technology, now you want to print on client side.
The easiest way to any how you generate a HTML page and on that page run the print script which populate the list of printer on client machine, even if you run direct commant to print , it print on client's default printer.
Please check first this link : http://scn.sap.com/docs/DOC-52407
Here is some link if above not work
http://www.codeproject.com/Questions/262485/how-to-print-crystal-report-in-printer-in-client-m
Crystal Reports export to HTML
http://www.c-sharpcorner.com/UploadFile/chriswong1/ExportCrystalReportInASPNET11092005010905AM/ExportCrystalReportInASPNET.aspx

How to print crystal report directly to a client machine using C# Asp.net

I need to print a Crystal report page to client printer machine without showing the report or without showing any dialog box.
One point I'd like to mention is that I know the name of Client Printer.
How do I send the path to that printer.
Just to make it clear the application runs on a server machine in a remote location.
There are some similar question here , but WITHOUT any final solution,like this one.
How to print crystal report without opening the report in asp.net?
Is there a specific solution to this that I can use ?
Below line opens up print dialog box to print without showing print preview
crystalReportViewer1.PrintReport();
Below line directly sends reportdocument to default printer.
oReportDocument.PrintToPrinter(1,true,0,0);

Printing into a particular printer on c#

I have a web application in ASP.NET and c#. Is it possible to print in a particular printer attached to server for all print button click..??
Ie, If one clicks print button on client machine, the print is taken on the printer attached with the server....
If anybody knows this pls help me..... thanks in advance
What type of document do you want to print? The server would need a way to execute an application and call the print command.
There are a number of related questions on StackOverflow ->
I found a way to do something similar to what you described but it was far from easy.
When the user presses print the document requiring printing was written as a byte array to a database table that also had a "Printed" flag (false by default) and the name of the chosen printer.
On the server that hosted the database I built and added a windows service that polled the database table to see if there any documents on the table that had "Printed" set to false. If it found any it read the byte array and passed it on the the specified printer (setting the printed flag to true).
Problems
You have to give the service logon details with sufficient permissions to access the printer
Web services do not support the system.Printing or system.drawing.printing name spaces so I had to connect to the printer using TcpClient, the IP address of the printer and port 9100 (this is the default port for raw printing). I then passed the stream directly to the port. This worked but I only ever needed to print PDFs that my networked printer was able to support.
For more information on printing raw data see here
I don't recommend doing it exactly as I describe, but hopefully this might give you some ideas

Categories