How to print with a dot matrix printer?

can anyone tell me how to print a document with a dot-matrix printer with java?

try this...
String printerUNC = "lpt1:";
String report = "This is the text to print"
try{
FileWriter fw = new FileWriter(printerUNC);
PrintWriter pw = new PrintWriter(fw);
pw.println(report);//"This is the test report");
pw.flush();
fw.close();
}catch(Exception e){
System.out.println("Error during print");
System.out.println(e);

Similar Messages

  • BMP image not printing on LIPI Dot MAtrix printer

    Hello everybody .
    I am facing a promlem while printing a signature ( bmp image ) in a report .
    In print preview it is showing coreclty but while printing to LIPI Dot matrix printer model TALLY 2500 that Signature( bmp image ) is not getting printer.
    Can anybody let me know wether any setting is to be done from SAP side .
    Thanks in advance .
    Regards
    Dhaval..

    Hi Raje,
    Try to take the print in inkjet or laserjet printer
    just for confirmation purpose .
    if it prints in that and  doesn't print in dot matrix then the problem is with the dot matrix.
    In that case ask the basis guys to install the relevent device driver for that dot matrix printer( as normally they would have installed some generic driver ).
    Hope this helps.
    Regards,
    Guru
    *mark helpfull answers

  • Printing Barcode in Dot Matrix Printer

    Dear Experts,
    We have developed Smart form to print Barcode and it's printing fine in LaserJet printer & readable by the scanner,  We need it on Dot Matrix printer for (multiple copies) and tried the same with Dot Matrix printer it use to print but not readable with scanner.
    SAP Transaction - MIGO (GI Posting)
    Dot Matrix Printer - Epson DFX9000  & Oki data PACEMARK 4410
    Please help me to Print Barcode in Dot Matrix printer through Smart form.

    There is something I don't understand: if the barcode printed is visually correct, and exactly the same as with a laser printer, why do you want it would be better with a PDF (especially on a dot matrix printer).
    Could you also tell us what symbology you use, and do you use smart form new barcode technology?

  • Problem while printing smartform in dot matrix printer

    Hi Experts,
    When i am printing smartform using dot matrix printer only the last page prints but all the pages displays in print privew.
    For example suppose there are three pages to be print 1/3, 2/3 , 3/3 , i get all the three pages in print privew as well as when i take its printout in laser printer i get all three pages as print, but when i am using dot matrix printer i get only the last page ie 3/3 as print.
    Regards
    Varun Sharma

    Hai Varun,
    If things are coming properly then its no more ABAP issue.
    Need to check out with the BASIS team along with the IT / hardware department.
    Just try to take print out on a other dotmatrix printer, if its somewhere close to you as usually they are heavy and large in size can't be moved.
    Hope this helps,
    Cheers,
    Suvendu

  • Which driver to use to print to a dot matrix printer?

    All-
    Hi, we are using Adobe Output Designer 5.7 to create invoice templates.  We use a custom application that uses Adobe Output Central Server (5.6) to create invoices and print them to a network printer.  We are about to do a new release in Chile, which requires a dot matrix printer be used for printing due to gov't regulations.  Does anyone know what kind of print driver could be used to effectively print to a dot matrix printer?  It seems like all the drivers we have used don't work.
    Additionally, we also tried using the .pdf driver in conjunction with the Web Output Pak, but unfortunately that result is just as bad.  Does anyone know of a workaround to get Pdf's to work with a dot matrix printer?  By googling, I found that we could try copying the .pdf output and pasting into Word, but I haven't tested this yet and it makes for a cumbersome process.
    Thanks,
    Andrew

    Hi Andrew,
    Unless you can convert the PDF to a text file, and print that, I doubt there is any way to send PDFs to a Dot Matix printer.
    If you're on Windows then one way is to use the 'windows' driver option in your template to generate the output directory for the target printer - this allows non-supported printers to be used with Output Server,
    Regards,
    Paul

  • Web report printed on a dot matrix printer

    Dear all,
    how can i design a report that is going to be printed on a dot matrix printer, i want to know these things:
    1 - what i will have to change in the report it self.
    2 - when i call the report from the form how the code will be.
    3 - do i have to print the report on the browser then the user press print from the file menu of the browser.
    please advice

    1 - what i will have to change in the report it self.Since you will be printing to a dot matrix printer, you essentially need to design a character mode report and set the .prt file for printing purpose. Check in online help for how to make a character mode report.
    2 - when i call the report from the form how the code >will be.On the otn site itself, you can find a white paper on reports 9i/forms integration. Please refer to this white paper on the example code.
    3 - do i have to print the report on the browser then >the user press print from the file menu of the browser.You do not need to print the report from browser window and can directly tell the report to print the character mode output using your dot matrix printer. The command line you send from Forms will have destype=printer and desformat=<.prt file name>
    Thanks
    Rohit

  • Crystal report printing using epson dot matrix printer (continouos paper)

    Hi there, im tiff from the philippines.
    i have a  question on printing using a crystal report. How do i print using epson continuous printer(dot matrix)? im having a problem printing to that type of printer specially using continuous paper. the first page is correct but unfortunately the succeeding pages are not. its automatically adjusted upon reaching the second page. hope you can help me.
    thanks a lot and looking forward to hear from you soon.
    tiff

    Check with the printer manufacturer that the matrix printer is Unicode compliant. If it is not, it will  not work with Crystal Reports. If it is, make sure you have the latest printer driver updates.
    Download SP 1 for CR 102 from here;
    https://smpdl.sap-ag.de/~sapidp/012002523100006007872008E/crvs05sp1.exe
    See the following resources re. printers;
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a09051e9-721e-2b10-11b6-f9c65c64ef29
    [Note #1314394|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    Ludek

  • PO printing issue in Dot Matrix printer

    Hi expert
    We got unnecessary spaces on the second page while taking a PO print out.
    printer is dot matrix- EPSON LQ2180.
    Page Format     DINA4
    Device type is EPESCP2
    Can any body help in this matter?what have i to do remove unnecessary spaces from PO printout?
    And also i can not under stand the code which was written in Page Format DINA4?
    please find below codes.Help to understand the below code as well.
    Printer initialization
    reset
    \e\0x40
    designate codepage for slot 0
    \e\0x28\0x74\0x03\0x00\0x00\0x03\0x00
    select codepage from slot 0
    \e\0x74\0x00
    set line spacing 6 LPI
    \e\0x32
    set page length to DINA4 (=70 lines at 6 LPI)
    \e\0x43\0x46
    cancel bottom margin
    \e\0x4F
    set left margin to 0
    \e\0x6C\0x00
    select LQ quality
    \e\0x78\0x01
    select non-proportional spacing
    \e\0x70\0x00
    Thanks
    MM
    Edited by: samir DODIYA on Feb 28, 2012 1:30 PM

    There is something I don't understand: if the barcode printed is visually correct, and exactly the same as with a laser printer, why do you want it would be better with a PDF (especially on a dot matrix printer).
    Could you also tell us what symbology you use, and do you use smart form new barcode technology?

  • Printing smartform in Dot matrix printer

    Hi ,
    i am giveing the printout of the smartform in the dot matrix printer. But in the print out the template is not getting printed and in the second table i am getting extra lines in the table. Please give me any suggestions and is there any settings to be changed in the printer.
    Warm Regards
    Phani.

    There may be some isssue with the loop used to printing the table ....
    There might be only 2 reasons either there is loop repeating or not data is not cleared  concentrate on this two issues only .
    try debugging the table jus before printing .if its is fine , then
    Sometimes even the problem with the print catridge could have resulted in this .
    Edited by: Martina Floriette on Jun 23, 2009 7:50 AM

  • Printing problem in Dot matrix printer

    Hi all,
    We are planning to use Dot matrix printers for printing through SAP.We do front end printing using Windows OS. I am able to get prints properly if it is a script form. In case of list outputs, printer is printing the text outside the paper.Only half of the text is printing on the continuous stationary. Actually document is to be printed in Landscape format. So printer should print data vertically on the paper,but it's printing horizontally. I have created sparate output device for this printer.My printer is TVS Electronics HD745 24 Pin heavy duty printer. I have assigned OKI341 as device type for this device.Any more settings I need to do to get printing in landscape mode?

    Hi,
    Dot matrix printer.
    Problem with pritning with dot matrix
    About Dot matrix printer device problems
    Regards,
    Sandeep

  • Printing over a Dot Matrix Printer

    Hi,
    I want to do printing on a Dot Matrix Priner. Can any body help me how to perform this task.
    Regards,
    Umar Toseef

    You can either,
    - use the OS drivers using the Java Printing API
    - write the printers codes to is directly using the Java COMMS API
    - buy another printers.
    My preference would be for the last one!

  • Adobe print form on dot matrix printer

    Has anyone tried to print adobe forms into a dot matrix printer i.e. printing multi-part documents. I've read that the device type supported are PostScript, PCL, PDF and ZPL. The help file specifically mentioned that SAPWIN device type won't be supported, but it does not mentioned explecitly weather ASCII device type or device type for dot matrix/impact printer is supported or not.
    I'm still holding up hope that adobe print forms scenario will be able to do this since we are planning to go ahead with 100% adobe form solution.
    Any info would greatly appreciated.

    The supported output formats of ADS are PostScript, PCL, PDF and ZPL. That means that your printer has to support one of the mentioned formats to be supported. So the answer to your question is no.

  • Printing form using dot matrix printer

    Dear experts,
    I have a PO form and when printed using laser printer it works just fine, when use dot matrix printer with continuos form , the form's content started to be printed a bit lower compared to the laser printer, should i adjust the paper size in the se71 ?

    Hi Johannes,
    We have been know to go directly into the printer defintion and adjust the Horizontal and Veritical Shift. This can be found on the Output Attributes in the Additional SAPScript and Smart Form Information area. We give our A4 printers a slight Negative Horizontal and Positive Vertical shift to better center the output on the different paper size.
    Regards,
    Raj

  • Text shifting Right when printing smarform in Dot matrix printer

    Hi all,
    I have developed a payslip in smart form. I am printing the smartform in dot matrix printer. when there is blank between 2 values like one of the deductions is blank between 2 values while printing its will shift to right indefinitely even though in the print preview it is appearing correctly. In the same way in the last line i am printing Total earnings deductions n net pay...  Total earnings has to be printed approximately after 6 cms from left margin in print preview it is exactly where i wanted but when printing its printing after almost 8 - 9 cms
    I have created a Z page format to fit the copying 6 inch page and added code to make necessary changes to print in continuously
    Kindly help me to overcome the issue.
    Any help appreciable....
    Shivakumar K B
    09098955022

    Hi Pavan,
    I am trying to display the text in the template which is of the exact size as in preprinted stationary, in  paragraph format i am not using space between variables..
    To be clear.................... I am getting my print preview is correctly  but when i give it for printing the text is shifting right...

  • Printing Reports on Dot Matrix Printer

    Reports are printing very slowly on Dot Matrix Printer. If any solution Please tell me.
    [email protected]

    hello, I could not write English, but I will help you
    You could see it in SYSTEM PARAMETERS of reports, in the MODE option, putting the to initial value Character type
    You also have to see the Dflt.prt file, that this located in the C:\ ORAWIN95\ REPORT60\ PRINTERS, the who you control the margins of
    impression in manner [caracter]. They for [default] are 80 Columns and 66 Lines, the
    who you could publish and change the courages
    You count me if I operate you.
    Greeting

Maybe you are looking for

  • Cube does not get refreshed after maitainence

    Hi I have a cube in a schema that was existing. I have added new data to the fact table that is mapped to the cube. I maintained the cube by using the complete refresh option in the analytical workspace manager. After maintaining the cube and selecti

  • Creative mp3 accessor

    >I am looking at the c and I can find much for in car devices like ?all in one holders?. Belkin to a fantastic range for the ipod but yet im finding it hard to get something that is designed for any creative mp3 player! If anyone could let me know if

  • Magic Trackpad not working on iMac after 10.8.5 update Help!

    The Magic Trackpad was working fine antil I did the OS X Lion 10.8.5 Update yesterday and the trackpad has not worked since.

  • ERROR" unable to convert the service as an ALE logical system"

    Hello All, In SOAP to IDOC scenario I tested the webservice with the client tool. Its hitting the integration engine but its throwing up an error" unable to convert the service as an ALE logical system". How can I maintain a logical system for a serv

  • Get SMTP response codes?

    Is there any standard way when using JavaMail to retrieve the SMTP response code from a failed send? Specifically, if a message fails to send I want to see if it was a 5xx 5.x.x permanent error (in which case I would not retry) or a 4xx 4.x.x tempora