Print RTF file within app

Hi
Is it possible to print an rtf file from within java app without actually viewing the file on screen? I don`t want to display the file in a jtextpane or jeditorpane. Simply want to print the file like you can with a straight text file.
Or, is there are a command line switch to print a rtf file? through ms word?
Any help would be appreciated.
Thanks
Kelly

printing RTF files from java is amazingly hard. if not impossible.
(just what you wanted to hear)
basically, rtf support in java is pathetic.
in my case, i had to create an actual RTF file in ms word and save it.
i then opened it in notepad so that i could see all the control codes.
then i cut and pasted each section of the document template so that each bit was a string constant in java. the bits that i wanted to add i generated in code the normal way.
then i stuck all the bits back together again in one string and sent that off to a data stream. (to answer your question, it never went to the screen, just to the data stream)
its a bloody stupid way of doing rtf, but it was the only way to get it to work without having to go through and figure and implement out all the rtf codes yourself.

Similar Messages

  • I cannot print PDF files within Firefox. I can with Internet Explorer.

    I cannot print PDF files within Firefox. I can with Internet Explorer.

    https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox
    https://support.mozilla.com/en-US/kb/Opening+PDF+files+within+Firefox

  • Printing RTF files from Java

    Hello,
    I need to print RTF files from a java program. I am reading RTF files in my program and after modification need to send them to a network printer for printing.
    Please let me know if there are any tutorials/books available on this.
    Thank you very much,
    Regards,
    Vaishali

    check these urls. may help u some extent.
    http://java.sun.com/docs/books/tutorial/2d/printing/index.html
    http://www.javaworld.com/javaworld/jw-03-2001/jw-0302-print.html
    http://java.sun.com/products/java-media/2D/forDevelopers/sdk12print.html

  • Printing RTF files in Java

    Hi,
    I have a java application (No GUI) that needs to print an RTF file. Could any one provide me links to tutorial/sample codes for doing this?
    Thanks a lot,
    Vaishali

    Look at http://www.fawcette.com/javapro/2002_12/online/print_kgauthier_12_10_02/default_pf.aspx. They provide an utility class which basically lets you do this in 1 line, by creating a JEditorPane with your document and passing it to a method there.

  • Print PDF file from app.server

    Hello,
    I need to print a PDF file from the application server without any dialog for the user.
    Is it possible? and if so- how?
    Is it also possible to do the same with office file (DOC,XLS)?
    Thanks
    Moshe

    Hi,
    CV150_RPINT_DOC for frontend execution.
    FM SAP_PDF_VIEWER_DEMO- foreground only.
    using fm SXPG_COMMAND_EXECUTE in background.
    thanks & regards.

  • How to print item from within app?

    How can I create a discrete text element inside an ipad app that can be printed? Something like shopping list etc
    Would also like to be able to email to self and/or share. Using dps cc, app for ipad only.
    thx for any tips!

    We do not support printing in DPS. Single Edition applications do not support sharing.
    Neil

  • Do my files within apps get backed up?

    Specifically I have all my lecture notes on "Note taker HD" and it would be dissasterous for me to loose them so if i wipe my ipad and then restore from backup will those files be on there (and not just the app)? thanks

    Yes - if you restore from the backup the data should be in the backup. If the notes are that important, you should backup the iPad every day .... If you use the app every day that is. Make sure your backup is always current.
    If you depend upon an app that heavily, you should always read all of the information that is available so that you know what the app does and does not do. According to this text which I copied from the app description page in iTunes, it also offers "backup to a single file for off iPad storage". That sounds to me like you can store the notes/app data on your computer as well.
    If the app works with file sharing - which it probably does - you can transfer the files to iTunes and then to your computer for safe keeping as well.
    You can use "Open In" in other apps or iTunes to send PDF files to Note Taker HD for annotation.
    Other features include:
    - Support for the retina display on new iPads
    - Pages organized into documents and folders
    - Typed blocks of text with optional borders
    - 60+ highly customizable shapes
    - Insert and crop images from Photo Albums, Pasteboard, or the iPad camera
    - Custom backgrounds from images or PDF pages
    - Free templates and clip art on the support web site
    - VGA/HDMI/AirPlay support with zoom and pan
    - Wrist guard to avoid inadvertent touches
    - Layout variations better suited to some left-handed users
    - Optional fields in output footers like in a word processor
    - Extensive built-in help
    - Smooth and crisp ink on screen and in PDF output
    - Share editable copies of your documents with others
    - Backup to a single file for off-iPad storage
    - Password protected folders
    - Support for the iOS Data Protection API
    - Full-screen preview mode
    - Copy/Cut/Paste between pages
    BTW ... Just so that you know - the app itself is not contained in the backup. If you are using iTunes, you would have to sync the app back to the iPad or download it again from the App Store in the event of some disaster with the iPad. The app data is stored in the backup but not the app itself.

  • Is there a way of printing the file name from within the Preview application?

    If I'm printing a file within Apple's Preview application, I sometimes want to be able to print the file name at the edge of the document. Does anyone know of way of doing this?

    Thanks for replying, that goes some way to answering the question, but I'm also looking to see how much space each app and its associated documents are using, i.e. Pages comes in at 112Mb for the app alone, but I'd like to know how much space is being used by the documents as well.
    Once again thanks,
    SG

  • Can no longer print multiple files from a PDF package

    Prior to our upgrade to Acrobat Pro X, we had the ability to print multiple files within a PDF package.  We would simply select the files we wanted to print, say print and it would print them all.  It no longer does so, although it still allows us to select multiple files and to select ALL from the print menu but then it only sends the first file to the printer.
    We have tried it on both Windows XP and Windows 7 and it won't work correctly on either one.
    Does anyone have any ideas?  This is very frustrating as these packages are created by folks bundling their e-mail messages to send to the fileroom for printing and filing in the official case files.  With the old method we were able to quickly print out all the messages without attachments, and then would only have to individually print those messages that had attachments.  As stands now if we get a package with 100 messages in  it we will have to select and print each file individually instead of being able to print the 75 without attachments as one print job and then only have to do the seperate handling for the remaining 25 with attachments.
    Any and all suggestions are welcome.

    I'm using windows 7. The Acrobat that came with the Adobe Creative Suit 4 is Adobe Acrobat Pro. When I am on a web site that has a page in PDF I click on the printer icon and the print page comes up but the preview side is blank and will not print the page.

  • Function module to fetch pdf file from App. Server and print/email?

    Hi all,
    Is there any function module to fetch a PDF file from APPLICATION SERVER and print the PDF file or send it as an attachment in an email?
    Please help..
    Thanks in advance.
    Sandeep.

    Hi Sandeep,
    Is there any function module to fetch a PDF file from APPLICATION SERVER
    1) As far as i know there are no FMs to read a file from App server, you can do the same using *OPEN/READ/CLOSE dataset ABAP statements - There are tons of examples for this on the net.
    and print the PDF file or send it as an attachment in an email?
    You can send the file read from the app server(by the suggested method above) and use CL_BCS to send it as an attachment.
    Again there are many examples on the net on how to use CL_BCS for the same.
    Regards,
    Chen

  • Printing problem with RTF file in java

    Hi,
    i actually got code to print the RTF doc using java, it works fine if we give small content (some text), but throws error 'java.io.ioException: Too many close-groups in RTF " when actual bill content is pass.
    Thanks in advance

    Can you please share the code to print the RTF file using java API

  • I would like to print out the icon and title of each of my apps to another document for printing and sharing within my family

    I would like to print out the icon and title of each of my IOS apps to another document for printing and sharing within my family.  My son has my old iPod touch so I erased it so he could put whatever games he wants to play on that I used to play with.  It is difficult to download every game at one time because there is too much to download at one time.  I have many hundreds of apps.  One way I found was to create a screen grab of each page in iTunes  then open it in Preview contact sheet but that is really tiny unreadable image of each screen.  I also tried importing a screen shot of the contact sheet into Paint 2 and magnifying it on several pages but that is really blurry.  The ideal solution would be to import the icon and text to another app or to provide a print list of apps solution within iTunes.

    Create iPad screen shots by briefly pressing the home and on/off buttons together.  You will hear a shutter click sound and find a screen shot on your iPad's Camera Roll.  You can then print these screen shots as you would any iPad photos.
    UPDATE: I assumed you had an iPad.  Hopefully your iOS device does have an on/off and home button and is capable of producing screen shots.

  • Is it possible to read Prezi files within the iOS app?

    Hello,
    I want to implement Prezi into my iOS app. I am totally unaware that "Is it possible to read Prezi files within the iOS app?".
    If Yes, please provide some tutorial link, so that I can implement into my application.
    Thanks & regard.

    You will get a better answer in
    Developer Forums
    Use your Developer credentials to log in there.

  • I am using the app pdf to word and every time I place a a pdf file into the app no text appears on the rtf file. Any suggestions?

    I am using the app pdf to word and every time I place a a pdf file into the app no text appears on the rtf file. Any suggestions?

    http://answers.microsoft.com/en-us/mac/forum/macword

  • Does the ipad backup save files within an app?

    I have lots of pdf files within adobe reader on my iPad. Now, if I do a backup of my iPad on my PC...
    Are these files saved on my PC?
    Are these files accessible from my PC in case i lose my iPad?
    In case I lose my iPad and restore it to a new iPad will my files be restored along with the apps (e.g. pdf files within adobe)?

    App data is contained in an iPad backup.
    There are some PC programs which can extract data from an unencrypted iPad backup file if necessary.
    App data will be restored to a new iPad.

Maybe you are looking for

  • Free goods in return order

    Dear All, We are creating return order with reference to billing document.Billing document has free goods as second line item .When I create return order only main item is getting referenced not the free goods . Is it a standard behavior ? can we ach

  • Built-in Isight for External Monitor with Macbook closed

    Hello Apple Community, I'm having trouble using my built-in iSight through my external monitor. My set-up is that the Macbook is closed and I run everything through an external monitor. I'm unable, however, to use that external monitor's iSight with

  • I need to split my c partition

    Hello i have lenovo g580 and i saw in the forums that i cant split the parition cuz it will disable the recovery but in same time the c partiion is 880GB and the other partition contain drivers is 24GB so Please any help

  • Transport Projects

    hello, I have SolMan 3.20 and want to transport my project into new Solution Manager.I create a transport request, using Progect-->Transport and moove it into new SolMan. The structure of the project appeared but there are no project documentation in

  • Oas hangs after startup

    hey all, if this isn't the right forum please point me to the correct one. I couldn't find any non-9i forums. I am having the problem described in Doc ID: Note:130901.1 . the docs says to apply these patches: Patch#1411970 Patch#1332640 Patch#1348552