Printing text

HY guys, I want to print a message that is in a txt file to the screen. But my code prints the text in a separate window, and I want to display in the normal blackberry screen. Can someone give an idea how to do this?

Here is my code that prints the text in a special window.

try {}
InputStream is = getClass () .getResourceAsStream ("/DispGenerale") (InputStream);
Dim str As String = "";
int ch;
While ((ch = is.read (())! = - 1) {}
Str += (char) ch;
}
           
If (str is nothing)
synchronized (UiApplication.getEventLock ()) {}
Dialog.Alert ("cannot read.");
}
on the other
UiApplication.getUiApplication () .pushScreen (new LegislatieScreen (str));
            
} catch (Exception e) {}
synchronized (UiApplication.getEventLock ()) {}
Dialog.Alert (e.getMessage () + "+" + try ());
}
}

Thanks in advance.

I suggest to use IOUtils to read the file. A string with the concatenation using is really not a good development practice.
Blocking operations, as the file IO, should also be done on a separate thread. See http://supportforums.blackberry.com/t5/Java-Development/What-is-the-Event-Thread/ta-p/446865

Could you explain what you mean with "normal blackberry screen?
The screen you are currently viewing?

Tags: BlackBerry Developers

Similar Questions

  • How to print text messages history

    I would like to print text messages that contains a lot of Info for me to do my financial task.  Please how print you directly these text messages?

    I find that the easiest way is to use a computer application. My favorite is PhoneView (Mac), but I've seen TouchCopy (Mac or Windows) recommended as well. This allows me to archive my text conversations in the form of files txt or pdf that can easily be printed.

    Alternatively, you can take screenshots by pressing home and power both buttons and those printing. A lot heavier in my opinion.

  • printing text messages

    How can I print text & imessenger messenges from my iPhone

    Two alternatives. You can take a screen capture and print, or you can get a 3rd application of part that allows you to download messages and print from there. There is no native ability in the iOS to print messages. PhoneView or TouchCopy are two alternatives. The first works with the Mac, the works of the latter with Mac or Windows.

  • Satellite C650D - I can print photos, but can not print text

    I have the Satellite C650D I can print photos on my printer but cannot print text.

    How can I fix?

    To be honest I don't think that is the related issue of Toshiba and you should check with the manufacturer of the printer. They should help you with these questions.

    We do not know what printer you have and what you're doing exactly, but if the printer is installed, recognized and correctly connected everything should be OK, especially if you use Office Word and you want to print a document.

    Sorry, but after reading your problem description one sentence, it is not possible to say anything that will help you.
    Contact the manufacturer of the printer s technical support and try to clarify this.

  • OfficeJet 8620: Printing text tilted/crooked

    My impression is printing the text tilted/crooked.

    I did an alignment printing and cleaning and she is always asymmetric. I print text from MS Word documents. How can I fix it? I've only had the printer for 2 weeks.

    Thank you for your response.

    The sensor was broken and the printer had to be returned.

  • HP ENVY 5534: increase the size of printed text

    Printed text is very small, how do I increase the size

    Hello

    You need to change requests. What application are you using to print? Web broswers like IE and Firefox, to chlorinated print options font sizes.

    Kind regards.

  • 5420 MG will not print text. Only graphics

    Hello ~

    I just bought the printer MG 5420, after the death of the previous Canon printer.  When I printed the test page, it only printed the image of Microsoft of four small diamond, without text. My computer runs on Windows XP.  I downloaded the disk that came with the printer, so I know the printer is 'do' the computer information; It is simply not the text printing.

    Any ideas?

    Thank you!

    Ramona,

    Thanks for the reply. I should have posted a reply to my message of origin about a week ago. My uncle came to visit me and used it; Whatever he did, worked because everything now - print text and graphics.

    Thank you again... Happy Thanksgiving

    Denise

  • Print text or Image is skewed or Crooked [c01627044]

    RE: Printed text or Image is skewed or Crooked[c01627044]

    3 steps checklist is perfect here, but a little more #4 would be good to add. #4 is that when the rear door of the paper feed rollers is not completely locked in place too what is causing this, symptom "printed text or Image is distorted or twisted' arise and is most likely the problem of what happens.

    It is a simple but effective remedy which is one of those OMG it was right under my nose the whole time.

    Thanks for the suggestion, you are right - check fit of the rear panel or duplexer must be one of the first things to check for problems of lag.  The page does not have a link to the report to the webmaster but I send your suggestion on.

  • XP print text wrong

    I am running xp media edition. This problem occurs on 2 printers of different style - exactly the same thing. Whenever I have print text, that it either word, Notepad, email, Web pages, etc., the text looks like it would if I was out of ink. If I print in black cartridge only (on a printer) I still have the problem, however, if I do all graffic as an image - same b/w / only black cartridge, it prints flawlessly. If I print a sheet of text/graffic, the grafics are perfect, the horrible text. Also, by the same on 2 printers - I mean if I print an e-mail on a printer and then print the SAME email on another printer, streaks, missing parts of letters, etc. are in the same EXACT as the other places. any help would be appreciated, although I have a feeling that it will be. (re-install the operating system)

    Try disabling "scale" in the preferences of your printers and see that it helps...

  • Cannot print text in Windows Mail

    Hello

    I searched different forums about Windows Mail without success.  My question is if it is normal that Windows Mail (in Vista Business) does not (pending) project e-mail messages being printed in the "print"option in the file menu is constantly dimmed? ".

    Hello

    You cannot print text in Windows Mail. ... It is normal that you cannot print the messages sent and received... the print option is grayed out in the drafts.

  • B210a will not print text

    Since the purchase of this printer less than a year ago, I had several printing issues.  The original gave me such an adjustment, I brought back to the place of purchase after a few days for a replacement.  Initially, the replacement seems to work fine (I got it networked with my home network).  After a few months, it wouldn't scan.  I spent many hours on the phone with support through mutiple and finally freezing procedures and reinstall everything.  Once all was said and done, it seems to work fine... for a while.

    Then he started giving me intermittent problems with printing.  Sometimes, when I went to print, I would get the "eprint" message not available  If I cancelled and let the printer sit awhile, it would print later.  I started to get the message so often, I opted to use the usb connection and that seemed to work... for a while.  Finally I could print at all, the message of "eprint" unavailable each time.

    In the last days of work on my current problem, I used the print and scan doctor, made multiple adjustments, uninstalled/reinstalled it, nothing is.  The doctor print and scan says it all is fine, but after this last problem (do not print text), pages of printed report in print and scan doctor show only black outline boxes, solid colored boxes and boxes of blue outline, all very vibrant prints, but no text at all.  I tried to print a text-only document and the printer responds but does not print anything.  He continues to analyse very well from my computer and via the LCD screen.  I continue to use the USB only, because of all the problems of network with this printer.

    I don't consider myself like a fool technology, and I know that I'm not an expert by any means.  I had years of experience using several brands of the technology to accomplish my own ends, but I am at my wits end with this printer.  I have never reached this level of frustration before and have always been able to get the issues resolved.  Not the case with this one.  Someone at - it give me advice for me before I got with this printer and return to my previous printer brand?

    Although it may seem that the pritner prints in black it is actually not - in the test page, the boxes around the area of ink levels are printed with a combination of color inks to make black.  Please follow the procedure described in my previous post.

    You can check that the black is not printing by printing a test page to as the Six Solution, you will see that documents to be reproduced in black are empty.

  • Photosmart C3180 prints text scrabbled

    I have (2) printers Photosmart C3180, each on separate Wxp Pro Sp3 desktop computers.  Sometimes a single printer starts printing printing text scrabbled in the middle of a page or image.  Sometimes, the scrabbled text is spread (one line at a time) on several pages, and I turn off the printer to stop it.  The other printer worked properly all the time.

    I ran the latest HP printer/Scan diagnosis tool and pointed out just as good.  I even moved the printer on another computer with a new installation and I still have the occasional print issue.  Turning off the printer and the print jobs always restarting.  I disabled the advanced features of the printer, but that did not help.  HP update indicates no updates needed, but MS Update (2) optional updates (DOTUSB, DOTPRT) for my C3180 printer.  What are MS knows that HP does not work?  Which solves the update of MS (as there is no detail or back links to MS)?

    Updates, that you wonder are updated to Microsoft to improve the functioning of your printer via USB and to improve the functioning of your printer with the print spooler.  These updates will not solve the problem you are having, but this document should help you work in a fix.  Most of the time, the problem is caused by a defective USB cable.  Let me know what happens.

  • Printing text in Illustrator

    How can I print text of high quality in Illustrator? I have the above defined file DPI and still get blurred text. I know that my printer can make extremely crispy stuff from text edit on Mac. I have also tried to print it as a PNG and has the same problem. Thank you

    Megan,

    Have you tried the PostScript/PDF approach to the #5 post?

  • Adobe Photoshop Agrementez feint pencil written above and next to the printed text scanned at low resolution in *.tif format? [was: Photoshop]

    Adobe Photoshop Agrementez feint pencil written above and next to the printed text scanned at low resolution in *.tif format?  Is there something else that can improve it?

    GIGO, however, you should be able to bring the pencil strokes back with nothing more than the levels/curves. Color just pick up the low-medium gray and bring levels down until they start looking as you want.

  • Photosmart e-All-in-One Printe: Photosmart e-all-in-one - D110a does not print text or Doc file

    Until that number today printing problems.

    Now can't print from Word or any text file.

    All other OK.

    Uninstalled and reinstalled SW.

    Problem remains.

    Word files and text printed in WHITE.

    All others are OK.

    Hey @Clark_Stillman,

    I understand that when you print from your Windows 8.1 computer to your HP Photosmart e-all-in-one printer D110a print jobs are coming in white. I would like to help you today with this printing problem. When you print from your computer, some files are sent to your printer as "image" files If your printer 'think' it prints an image, color ink may be used to enrich or to 'do' the dark. This can be misleading because your machine can really be confronted a black ink, problem of print, but you may think that your machine works great as always black appears in print. While in reality, it's just the ink to mix color to black. Therefore, at the beginning troubleshooting I'll have print you a standalone report diagnosis on the quality of your printer. This report will help us determine if this printing of the blank page problem is caused by your printers ink system or your computer. Can I please you follow the steps below.

    How to print a report of quality diagnostic:

    1. Load plain white paper in the input tray.
    2. Tap the button of the ATM () next to the icon of configuration () in the lower left corner of the control panel.
    3. Press arrow right () and select Tools, and then tap OK.
    4. Press arrow right () to select Print Quality Report, then tap OK. The printer prints the report.

    • If this report prints perfectly: Only the blank page printing problem isn't be caused by your printer. On the contrary, there may be a driver or a conflicts between your computer and your HP Photosmart camera setting. Can I have it please click here to download and run the HP print and scan of the doctor tool. Once the tool downloads, please run the tool to the "difficulty of printing." If connection, software or driver conflicts turns out that the HP print and scan of the doctor tool will attempt to resolve these conflicts for you. Once the tool has completed please test printing from your computer.
    • If this report does not print correctly:  That the problem you are experiencing is caused by the printing of your printer system. To solve this problem of print quality can I please have you click here to access the appropriate troubleshooting steps. Once the support document opens please run through the Solution, one five, six Solution and seven. This includes all sub-steps under the listed Solutions. Once completed the print quality troubleshooting steps, please try to print to see if the problem is now resolved.

    Please reply to this message with the result of your troubleshooting. You can also click thethumbs up' ' icon below to say "thanks for the help!" I look forward to hear from you!

  • 2540 HP Deskjet: 2540 HP Deskjet prints small when printing text selected using

    When I print 'selected text' in Mozilla Firefox, it prints in very small unreadable fornt.  Instead, I have to copy and paste into Word and then print in order to have a readable document.  HP 2540 has no bottun 'suitable impression' when you select print.

    Thanks for the help.

    Sunshyn2005 wrote:

    Hi @PaulS_1,

    Have you tried to change the scale of a higher percentage in the preview, print, or page Setup?

    I décliqués the "shrink" to fit width and that fixes the problem.  Thank you for yor help.  HP should put this solution in his support FAQ section.

Maybe you are looking for

  • Yahoo counter does not appear on my Web page

    My Yahoo page visit counter does not appear on my Web page in Firefox. The counter is displayed in Internet Explorer.

  • IdeaPad Y460 question

    Can change the IdeaPad Y460 battery with battery IdeaPad Z460? Just plug in and now? This number of different part of battery, I saw on the web

  • How can I get rid of the icons on the control panel duplicate

    I duplicate several (100's) to be exact "bluetooth" icon on my control panel.  When I click on that it takes me to a screen that allows you to add the "bluetooth devices".  These icons all have the same date/time etc. accept for the name which are nu

  • "Bus Audio HDA required but not found" - need help

    I upgraded my motherboard a while ago and it was working fine, but now it has malfunctioned and I sent it get checked and replaced (still in warranty) I had to go back to my old temporarilly motherboard and as such I don't have driver disks, most wor

  • How to implement the ScreenUiEngineAttachedListener Interface?

    How to implement the ScreenUiEngineAttachedListener Interface? It is somewhat a mystery reading through the API. I have a class that implements ScreenUiEngineAttachedListener: public class UiListener implements ScreenUiEngineAttachedListener { public