How to open a word document file

My problem is the following:

I have upload a .docx file dynamically, and you want to display it in word to go.

It works perfectly fine on the Simulator, but on the devices, it is not

I use the card Sim 8900 with 4.6.1 and a true 8900 running latest OS 5.x

the code looks as follows:

....

{} Private boolean isInstalled (String desiredModule)
int handle = CodeModuleManager.getModuleHandle (desiredModule);
If (handle > 0)
Returns true;
on the other
Returns false;
}

....

{if (IsInstalled ("WordToGo"))}

Invocation inv = new Invocation (filePath + "temp". (+ lastFileType);

Register _registry = Registry.getRegistry ("net.rim.device.api.content.BlackBerryContentHandler");

String err = "";
try {}
_registry. Invoke (INV);
UiApplication.getApplication () .requestBackground ();

} catch (...)

}

It works fine perfektly on the sim card. However the device already returns false when I call isInstalled(). remove this Boolean control shows a very strange behavior in the debugger:

the code will be executed and just spend some time on Registry.getRegistry () - it throws no exceptions or whatever it is, the thread hangs just and never wake up again.

So what I am doing wrong?

I finally managed to open it.

The solution is so crazy that I've never thought of her...

Just point the Blackberry browser to the file with:

Private private = Browser.getDefaultSession ();
browserSession.displayPage (filePath);

Tags: BlackBerry Developers

Similar Questions

  • How to open a word/pdf file to MS via boolean?

    Hi all

    I need advice to open MS word/pdf file through boolean in VI. I'm just providing my system with the software manual.

    I put a Boolean value for control.

    Please guide me...

    See this

    And also this example

  • How to open a Word document forms

    Hi all

    I need to open a document (MS Word) while clicking on a button in forms. Going u please help me to do this?

    Kind regards

    Nycy

    Yes, as Andreas said, create a virtual directory on your server forms.
    Edit the /forms/server/forms.conf file to add the virtual directory:

    ...
      # Virtual path for users documents
    AliasMatch ^/forms/docs/(..*) "C:\doc_folder/$1"
    ...
    

    Before you copy the files into the physical directory (C:\doc_folder in my example), the call from the module of forms via the built-in function Web.Show_Document ():

      Web.Show_Document('/forms/docs/the_file.doc','_blank');
    

    François

  • How to open a Word document in InDesign?

    I have a 50 page document, I would like to work on InDesign thru.  The only way I have found so far is to cut and paste there... at - there a quicker way?

    File > Place.

    If you click The show Import Options, you have more control over which styles, etc. on transfer.

  • Does anyone know how to open an old MS Word document file with the .ltr file extension?

    original title: file extension

    Does anyone know how to open an old MS Word document file with the .ltr file extension?  I would appreciate your help.  Thank you.

    If it's a Word document, why not just use Word to open it?

  • How to open a word from a subroutine of javascript document by using the OPEN method?

    Hi everyone and thanks for your support!

    I created a Web site that uses a subroutine in javascript to open a WORD document. This is part of the code that I use in my PC (... and works perfectly).

    I understood from my reading that Microsoft Word is waiting for the absolute path to the file, reason code why you see the text following that, once again,.

    works fine in my PC:

    ***

    obj=w.documents.open('c:\\Users\\Owner\\Desktop\\pitutor314_1\\parent_agrm_sp.docx');

    ***

    But when I download my files (of work) for the server that hosts my website (GoDaddy), I have to change the absolute path in my

    original files to a new path, now showing the absolute path on the server. This is what my subroutine looks like after the

    corrections:

    ***

    obj=w.documents.open('/home/content/43/9663143/HTML/parent_agrm_en.docx');

    ***

    This new path has failed. I tried to change "/" "------" or "-", but these corrections did not work too.

    Please help me to be able to open a Word document of my javascript subroutine residing on my host server. Thanks in advance.

    See you soon

    Pitutor314

    Hi,

    The question you posted would be better suited in the Java programming Forums.

    I would recommend posting your query in the Forums of Java programming.

    https://forums.Oracle.com/Forums/Forum.jspa?forumid=922

    I hope this helps.

  • How to convert a word document to a protected PDF file

    How to convert a word document to a protected PDF file

    Use Acrobat, or even CreatePDF.

  • How to generate a Word document and a PDF file of help files?

    Hello

    I'm new to RoboHelp HTML and uses version 8.  I've updated some help files, and now I want to generate the output.  Here are my questions / or the process that I used:

    • To compile the help, I clicked on generate a main page layout.  Is this correct?  I noticed that the stamp on the xpj file has not changed.  The date is still many months.  (Why is this?  Must show a recent update date?)  However, the files that I've updated reflect the dates when I did the updates.  It comes to files art, a high hydrostatic pressure and htm, js, ldb, pss, DPC files.
    • To generate a pdf file, I clicked on Generate PDF.  I was not able to generate the PDF file first, but then I enabled macros in Word 2007 (Trust Center settings > enable all macros.. .and clicked on the checkbox, approved access to the VBA project object model) and you click on Generate the PDF.  At the end of the generation, I got this error in Word: Microsoft Office Word has encountered a problem and needs to close.  We are sorry for the inconvenience.  The news that you were working may be lost.  Word can try to recover it for you.  I closed the Word and dialog box generated several blank documents.  Microsoft Office Diagnostics was performed and found a problem and fixes it.  Despite the error message was generated a pdf file.  (If you could give me any idea on why I got error messages, which could be useful to know).
    • How to generate a Word document?

    Thank you!

    Erin

    Welcome to the forum.

    I would suggest a different workflow.

    When you select generate a main page layout, RoboHelp did this according to the settings in all that is attached to your main layout. Better at least first double-click the page layout so that you see the settings and can make a difference to the way you want. After that, you can use generate a main page layout if you want, but I'd rather go through the layout itself and check the settings.

    The XPJ file changes only when certain things should be recorded in it and it's not every time that you are working on the project. In other words, don't worry about the date of the file.

    Now for the PDF. Again not the best place to start and still better to go of the provision itself. You can try to simply generate a PDF file, but many users prefer to create a Word document and make some changes in that. It can just be put page breaks to improve appearance, it may be more, it's your call. Once the Word document is good, generate the PDF from there.

    You will find the page layouts, that I want to talk in the pod of single Source Layouts. View > pods.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Microsoft Works processor trying to open my Word documents, even if I have Word 97 student edition help!

    Microsoft Works processor trying to open my Word documents, even if I have Word 97 student edition help! How can I make Word 97 as the default and get rid of Microsoft Works Word?

    http://www.Microsoft.com/Windows/compatibility/Windows-Vista/details.aspx?type=software&p=Microsoft%20Office%2097&v=Microsoft&UID=&pf=0&PI=0&s=word%2097&OS=32-bit

    Learn more about Office 97 Vista Compatibility at the link above

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Link below shows you how to set default programs and set file Associations:

    http://articles.TechRepublic.com.com/5100-10878_11-6172036.html

    How do I... Change file extension associations in Windows Vista?

    See you soon.

    Mick Murphy - Microsoft partner

  • ENVY 120 CZ022B: How to print a word document on both sides of the page (MAC)

    How to print a word document on both sides of the page (MAC) I can´t find how do!

    Hello
    Follow these steps to automatically print double-sided in Word print jobs:

    In the file being used to print click the file menu and select print.
    NOTE: The print window might be minimized. Press show details to show all available print option.

    Click Copy Pages & drop doen and select layout.

    Set the duplex option as the binding edge (Portrait) Long or short edge (landscape) bond.

    You can save the settings for later use by clicking preset > save current settings as preset. By default, a used preset will remain until another preset will be used.

    Kind regards
    Shlomi

  • Email link opens the Word Document

    I have Windows Vista Home on my laptop.  Recently, there was a problem: when I click on a link in Windows Mail it opens a Word Document.  How to solve this problem?

    OK, solved the problem.  had to come back to set default programs, IE, choose default programs and change to IE as it was not listed in the list of "partner."  It is now, thank you.

  • Need help to open a Word document (~ tmp WRL0003) my ASR backup zip 1. son

    I have an operating system of Windows Vista with a Western Digital external hard drive, that I use to store my backup files. I am trying to open a Word document (~ tmp WRL0003) my external HDD automatic backup zip 1. son, but he told me that Microsoft Office Word cannot open this file because it is an unsupported file type? Can someone help me to open this file?

    Hi dcunn12,

    The question you have posted is related to Microsoft Word and would be better suited to the community of Microsoft Word.

    Please visit the link below to find a community that will support what ask you:

    http://answers.Microsoft.com/en-us/Office/Forum/Word

  • does anyone know how to open 2 separate PDF files so that they can be viewed alongside?

    does anyone know how to open 2 separate PDF files so that they can be viewed alongside?

    Hi ihorm29887441,

    Try to uncheck the "documents open as tabs in the same window" under "Edit > preferences > General".

    Then restart the player.

    Let me know if it works for you.

    Kind regards

    Meenakshi

  • How to convert a word document to PDF

    How to convert a word document to pdf format

    Hi dionel33514362,

    You can use Acrobat or Adobe PDF Pack to convert Word documents to PDF format.

    Adobe PDF Pack is an online service that allows to download files and convert them to PDF via a web interface.

    See Acrobat help | Create PDFs with Acrobat for more information on creating PDFs in Acrobat. If you do not have Acrobat, please do not hesitate to give it a try. You can download the free 30 day trial from the Acrobat link that I mentioned above.

    Please let us know if you have any additional questions.

    Best,

    Sara

  • How to convert a word document to PDF format?

    Please teach me step by step on how to convert several Word documents to PDF format?

    Is properly installed and updated (depending on the version of WORD), you can simply do the following:

    1. open the doc in WORD and click on print, select the Adobe PDF printer, print.

    2. open the doc in WORD and go to the Acrobat menu in WORD and select Create PDF (this example uses PDF Maker).

    3. open the document in Acrobat and conversion to do based on PDF Maker.

Maybe you are looking for