How to print a pure textfile to the printer?

Hallo !
I want to send a pure textfile to a printer.
How can I do this in java.
Pleas give me a tip.
Thank you
Wolfgang

There's a trail about printing in:
http://java.sun.com/docs/books/tutorial/2d/printing/index.html
But it's not so obvious how to print a file (or the content of a JTextComponent)....
Greets
Puce

Similar Messages

  • I am trying to connect a Windows 7 / 64 bit to an Epson printer on my Mac.  The printer is hooked into the Mac via USB; the Mac is networked to a Linksys wireless router with an ethernet cable, as is the Windows box. Any tips on how to do this?

    I am trying to connect a Windows 7 / 64 bit to an Epson printer on my Mac.  The printer is hooked into the Mac via USB; the Mac is networked to a Linksys wireless router with an ethernet cable, as is the Windows box. I installed the current Bonjour printer services software on the Windows machine, and separately installed the driver software for the Epson printer on the WIndows machine.  Running the bonjour wizard, I get an alert saying 'I don't have sufficient access to my computer to connect to the selected printer'.
    The printer has 'sharing' turned on from the Mac end; this works with a Powerbook via the wireless connection.  Sharing is also turned on in the Windows printer control panel for this printer (under properties).  The Mac is a G5 running 10.5.8.  When I try to print a page from the Windows machine it gets hung in the print queue.
    Any advice how to proceed would be appreciated!
    thx,

    I am trying to connect a Windows 7 / 64 bit to an Epson printer on my Mac.  The printer is hooked into the Mac via USB; the Mac is networked to a Linksys wireless router with an ethernet cable, as is the Windows box. I installed the current Bonjour printer services software on the Windows machine, and separately installed the driver software for the Epson printer on the WIndows machine.  Running the bonjour wizard, I get an alert saying 'I don't have sufficient access to my computer to connect to the selected printer'.
    The printer has 'sharing' turned on from the Mac end; this works with a Powerbook via the wireless connection.  Sharing is also turned on in the Windows printer control panel for this printer (under properties).  The Mac is a G5 running 10.5.8.  When I try to print a page from the Windows machine it gets hung in the print queue.
    Any advice how to proceed would be appreciated!
    thx,

  • How can I include merged projects in the printed documentation?

    I have a master project with several merged projects. This works splendid with online documentation, but when I am asked to provide a printed version, it seems I have to create separate documents for each merged project.
    Is there any setting or fix that enables print also of merged projects and topics when I create printed documentation?
    Pretty please with sugar on top :-)

    Hm - there is a contract with the customer, saying that he wants documentation both as word and pdf, and as we now aim at only writing online documentation, these tasks create extra work, as we are delivering updates each month
    But yes - two beasts, where only chm is actually needed we think.
    -Tone
    Date: Tue, 3 May 2011 06:53:04 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I include merged projects in the printed documentation?
    Hi there
    I'm a bit curious as to the reasoning behind your "persuation process for using chm-files only".
    CHM files and printed documentation are two entirely different beasts.
    Cheers... Rick
    | http://www.robowizard.com/pc.gif | Helpful and Handy Links
    http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
    http://www.gooberguides.com/ProductPages/RoboHelp/RoboHelp82Day.htm
    http://www.ShowMeSolutions.biz
    http://sorcererstone.wordpress.com/
    http://www.gooberguides.com |
    >

  • Urgent:How to modify a script without changing the print programme

    Hi all,
    Can any body pls tell me <b>How to modify a script without changing the print programme</b>
    Give m esome real time examples.
    Good points willbe rewarded
    Thanks

    Hi
    You can write a external Subroutine to fetch the extra data into the script program
    see the following sample code
    How to call a subroutine form SAPscripts
    The Form :
    /:PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK
    /:USING &EKKO-EBELN&
    /:CHANGING &CDECENT&
    /:ENDPERFORM
    The report :
    REPORT zkrpmm_perform_z1medruck .
    DATA : BEGIN OF it_input_table OCCURS 10.
    INCLUDE STRUCTURE itcsy.
    DATA : END OF it_input_table.
    déclaration de la table output_table contenant les
    variables exportées
    DATA : BEGIN OF it_output_table OCCURS 0.
    INCLUDE STRUCTURE itcsy.
    DATA : END OF it_output_table.
    DATA : w_ebeln LIKE ekko-ebeln,
    w_vbeln LIKE vbak-vbeln,
    w_zcdffa LIKE vbak-zcdffa.
    FORM CDE_CENT
    FORM cde_cent TABLES input output.
    it_input_table[] = input[].
    it_output_table[] = output[].
    READ TABLE it_input_table INDEX 1.
    MOVE it_input_table-value TO w_ebeln.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = w_ebeln
    IMPORTING
    output = w_ebeln.
    SELECT SINGLE zcdffa FROM ekko
    INTO w_zcdffa
    WHERE ebeln = w_ebeln.
    it_output_table-name = 'CDECENT'.
    MOVE w_zcdffa TO it_output_table-value.
    MODIFY it_output_table INDEX 1.
    output[] = it_output_table[].
    ENDFORM.
    COPING SCRIPT
    There are some Standard Sap Scripts in SAP. We cant directly execute them in scripts we have to use some T-codes and by giving some input to the required fields we can see the output printform.
    I will show one example. There are some Standard Sap Scripts such as MEDRUCK which is a standard Sap Script for Purchase Order and RVINVOICE01 for billing and so on...
    To see oupt of MEDRUCK go to T-code ME9F give purchase order number and execute select one number and click on dislplay messages button on application tool bar you can find the print form of MEDRUCK.
    You cannot change the Standard Sap Scripts but you can use Standard Sap Scripts and Copy them to userdefined Script and can make changes to them and replace standard Sap Script with usedefind script.
    Ex: Go to SE71,
    on menu bar u find Utilities->copy from Client. click on it u ll find new screen showing
    Form name:
    Source Clinet:
    Target Form:
    give Form name as usedefined form name EX: ZFORM1
    Source client as 000 and
    Target form as MEDRUCK.
    execute.
    Now, the standard from MEDRUCK is copyied to your form ZFORM1.
    NOW, go to SE71 and give form name as ZFORM1 and do some changes to the form such as adding logo any thing. save and Activate.
    Now, you have done changes to the Form ZFORM1 and u have to replace your form with standard SAP Script.
    Go to NACE Transaction.
    on Applications select EF for purchase order and click Output types button on application tool bar.
    now select NEU as output types dobule click on Processing Routines.
    now click on Change option on application tool bar and on right side u find MEDRUCK in form place replace MEDRUCK with ZFORM1 and SAVE.
    go back twice and now go to T-code ME9F give the purchase order number and execute and select one option and click on display messges button .
    you will find the changes that you have done in ZFORM1. so we cant chage the standard Sap Scripts by copying the Standard Sap Scripts we can chage and replace with our forms
    Refer
    https://forums.sdn.sap.com/click.jspa?searchID=4089895&messageID=3239299
    Regards
    Message was edited by:
            Kiran Sure(skk)

  • How do i scan a document from the printer to send in an email to some one else i have a HP-B209

    how do i scan a document from the printer to send in an email to someone else

    Hi!
    To scan:
    You may press the start scan button on the printers control panel or use the HP solution center that must be installed in your computer to scan a document or photo.
    Scan to email:
    Some printers don't have the option in the control panel for scan to email. Mostly it is with the HP solution center software that should be installed in your printer.
    Note:
    For Windows the software is called HP solution center
    For Mac it is called HP utility
    *I am part of the HP family  but I do have my own stand
    *Clicking the Kudos at the left is highly appreciated
    *Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.
    *Have a HP "Happy Printing" day! =)

  • How can I scan a photo from the printer and place it in i photo?

    How can I scan a photograph from the printer and place it in i photo?

    Scan the document as you normally would.
    Click Save and look for a format or option to allow you to save as a JPEG file. (The normal format is probably set to PDF)
    Seve to your desktop location or to a scanned items folder if you normally scan to that desitnation
    Drag the JPEG file onto the iPhoto icon on the dock and release the mouse key
    Once you have imported the image into iPhoto, you can delete the file on your desktop or in the scanned items folder if you prefer

  • How do I center my spreadsheet in the print option

    how do I center my work in the print option

    Duckie,
    I think your best bet is to copy your work to Pages when you get ready to print and center it there. Much easier.
    Jerry

  • How to print from my itouch to the printer

    how to print from my itouch to the printer

    Hi there, AirPrint is the solution you maybe looking for! Please visit the following page on hp.com to get some more details and instructions for AirPrint and also the current list of supported products here: http://www.hp.com/sbso/printing/mac/apple-airprint.pdf?jumpid=reg_R1002_USEN and apps here: http://www.hp.com/sbso/printing/mac/list-airprint-compatible-apps.pdf?jumpid=reg_R1002_USEN
    I am an HP employee.
    Feel free to provide Kudos if I have helped you!

  • I have problems in communication between my notebook and Epson printer. It goes offline everytime I unplug it from the notebook and there is no way how to switch it on. Although the printer is recognized and scanning is not a problem. Any solution?

    I have problems in communication between my notebook and Epson printer. It goes offline everytime I unplug it from the notebook and there is no way how to switch it on. Although the printer is recognized and scanning is not a problem. Any solution?

    this is exactly the kind of response i expected, almost begged support to please not do this to me and yet there it is another meaningless, non helpful, standard template response to restart my apple tv.
    this does NOT work which is why i am contacting you. i have tried all suggestions about unplugging and restarting and nothing works.
    i live in an apartment and logon to the provided wifi wireless. so i do not have access to a router. however, management says they have talked with their provider and have been assured that the required ports are available.
    remember all the jokes about how bad windows was because the solution was always to re boot. funny huh? how is apple any different.
    i have been to the local apple care store and they are clueless, too.
    should we just end it here and you admit that i will not be getting any support from apple on this one? i got the ipad because my kids were such big fans. it is difficult for me to share their enthusiasm.
    at this point i am just curious about how you say you cannot support your own product so i can complete my file on this contact.
    thanks...sorry it was you who got this problem..

  • Print ALV report Directly - without the Print Parameter POPUP

    Hai All,
    I want to print a ALV directly to the printer without the Print Paramter POPUP.
    I passed on IS_PRINT parameters in the FM 'REUSE_ALV_LIST_DISPLAY'.
    But still i am getting the popup.
    How to do this.
    It is urgent .
    Kindly help me solving this.
    Vikki.

    Hi,
    i have passed IS_Print-Print = 'X'.
    But even after that i am getting the print parameter popup.
    IS there any other way to handle this. TO SUPPRESS THE PRINT PARAMETER POPUP.
    Please guide me.
    Waiting for ur replies.
    Vikki.

  • I have an HP 3250 e allin one printer. I have downloaded tie software on to my Mac Book air. When I try to print the MacBook shows it is printing but nothing happens at the printer. What is wrong?

    I have ab HP 3250 e all in one printer. I have downloaded the software and installed on my Mac Book Air running OS X Mavericks. When  I try to print from the Mac Book it shows that it is printing but nothing happens at the printer end.  Why?
    For some reason I cannot synch my iPhone notes with the Mac Book. How dodo I do this?
    How do I change my primary email address on the Mac Book?

    Hello Bruarong,
    It sounds like you are unable to print to your printer from Mac OS X Lion. I recommend the troublehsooting from the article named:
    Troubleshooting printer issues in OS X
    http://support.apple.com/kb/ts3147
    Follow these steps until the issue is addressed:
    Make sure that the printer is powered on, has ink / toner, and that there are no alerts on the printer’s control panel. Note: If you cannot clear an alert on the printer's control panel, stop here and check the printer's documentation or contact the manufacturer for support.
    Ensure the printer is properly connected to a USB port on the Mac or AirPort base station / Time Capsule. If the printer is a network-capable printer, make sure that it is properly connected to your home network.
    Use Software Update to find and install the latest available updates. If an update is installed, see if the issue persists.
    Open the Print & Scan pane or Print & Fax (Snow Leopard) pane in System Preferences.
    Delete the affected printer, then add the printer again.
    If the issue persists, try these additional steps:
    Reset the printing system, then add the printer again.
    If the issue still persists, reset the printing system again.  Download and install your printer's drivers. Then, add the printer again.
    Contact the printer vendor or visit their website for further assistance.
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • I am using AI CS2 on an eMac and cannot get the print menu options to recognize the print features l

    I am using AI CS2 on an eMac and cannot get the print menu options to recognize the print features like? I need to use mirror feature and high quality printing and it will not work.

    jdanek
    It is an eMac. I have a corrupted font book. How can I fix/re-install/or download a new font book app? Most fonts that were in it work, some do not, but I cannot open it nor can I install fonts into it.  This happened after the eMac OS was upgraded from 10.3.9 to 10.4.11 and AI was upgraded to CS2
    Kind regards,
    Steve Mosher
    Village Graphics LLC
    438 Troy Loop
    The Villages,  FL  32162
    352-409-6853
    [email protected]

  • Each time I print, a data page of the print job is printed out.

    Each time I print a data page of the print job is printed out. How can I Disable as it is a waste of paper?

    Hello john42gd,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    Troubleshooting printer issues in OS X
    http://support.apple.com/kb/ts3147
    Use Software Update to find and install the latest available updates. If an update is installed, see if the issue persists.
    Open the Print & Scan pane or Print & Fax (Snow Leopard) pane in System Preferences.
    Delete the affected printer, then add the printer again.
    If the issue persists, try these additional steps:
    Reset the printing system, then add the printer again.
    If the issue still persists, reset the printing system again.  Download and install your printer's drivers. Then, add the printer again.
    Contact the printer vendor or visit their website for further assistance.
    OS X Mavericks: Change or update printer software
    http://support.apple.com/kb/PH13761
    Have a nice day,
    Mario

  • Hp C310 e all in one. Print that is stuck in the print queue, cancel does not remove

    hp C310 e all in one. I have a print that is stuck in the print queue, cancel does not remove says deleting. I have tried shutting down printer, closing word doc, multiple canel all prints. Any Ideas

    Hello mackice,
    Try these steps below to clear the print queue. The steps are listed for Vista and Windows 7 and would be slightly different for XP. If you are using a Mac then the steps below would not work. Please advise what OS you are using.
    Option 1)
    1. Click on start orb
    2. Type in search window: "services.msc" (without the quotes)
    3. click ok
    4. Scroll down to Printer spooler service and click on it in the right side window.
    5. On the left side click stop the service and wait forthe process to stop
    (Do not close the window yet. You will have to restart it here later.)
    6. next delete the print job in the printer queue
    7. then restart the spooler service
    8. Resubmit your new print job.
    Option 2)
    If that doesn't clear it, the next step would be to stop the spooler
    service as stated above
    Go into windows explorer
    (Print job data is collected and stored in a spool file in the spooler
    folder.)
    It is located in:
    C:\WINDOWS\system32\spool\PRINTERS
    Your print job will show 2 files there Example below:
    00002.SHD
    00002.SPL
    Delete the files located in there. There may be several of them
    depending apon how many print jobs you submitted. You will have to
    resubmit your print jobs all over again.
    Next go back to services window and restart the spooler service
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • Don't see a new printer that I added in the printer list

    I have an iMAC running Mac OS X.
    I have a Canon i950 printer. I've added the print driver using either the version from Canon or from the OS X disc #1 optional install for print driver.
    If I use USB connection, then my printer works fine.
    I wanted to use a network print server. My same setup for a HP Laserjet 1200 works just fine because I can see the printer in the printers list.
    However, I cannot find the Canon i950 printer driver in the printers list. What am I doing wrong? For an optional printer driver, how do I adder to the list of available printers or is there way to add it manually.

    Your printer doesn't show up when trying to add because the driver doesn't support network printing. The print system in OS X is CUPS. The network protocols require CUPS drivers (as opposed to Carbon drivers). Canon doesn't provide CUPS drivers, and recent Canon models aren't supported by Gimp-Print (CUPS drivers). The only CUPS driver I know of for your printer is from www.printfab.net.

Maybe you are looking for

  • Palm M 105

    I have recently purchased a new computer with Vista. I have tried to get my M 105 Palm Hotsyn to work with Vista to NO avail. I have downloaded the software from Palm 4.1.4 and have purchase a USB Adapter for the Hotsync. Whne \I try and hotsyn I get

  • Can I generate a CR (Carriage Return) in a dynpro entry field ?

    My problem is the following I have a card reader and the information of this card will go into a SAP dynpro entry field. Now I need an addition CR (Carriage Return) Is that possible ? Thanks

  • SAX parser issue

    We have a package within which we call a java stored procedure. The purpose of this java stored proc is to convert an input xml and insert the data into a flat structured table.The parser class used in this org.apache.xerces.parsers.SAXParser. We do

  • Laying unknown number of components in a JPanel

    Hi all, I am trying to lay in several components (JLabels) in a JPanel with a GridBagLayout. I only know the number of elements at runtime, so I use a for loop to build the panel. The labels are visible at the screen, but the problem is that I want t

  • Find my iphone no longer allows message

    to be sent when sending sound under ios6.....Apple PLEASE PUT THIS FUNCTIONALITY BACK IN!!!!!!