How to open pdf or word doc or notpad file in flex

hai friends,
       how to open pdf or word doc or notpad file in flex. i am doing flexcoldfusion project. now i reterive data(notpad or worddoc or pdf file path) from database using coldfusion.now i want to open that file content .if i reterive notpad file .that will show in notpad. if it is possible. give example.
regards,
welcomecanv

Hi WelcomeCan,
Try this...
var urlRequest:URLRequest = new URLRequest();
    urlRequest.url = "http://www.yourdomain.com/notepad.txt";
    //urlRequest.url = "http://www.yourdomain.com/FlexComp.pdf";
    navigateToURL(urlRequest,_blank);
Thanks,
Bhasker Chari

Similar Messages

  • How to open PDF or Word Doc or JPEG in a browser using JSF

    On submit action, I read the byte array data. Along with byte array, I do get the property information like what the bytearray stands for like PDF or Word or JPG etc. How can I display or open this data in the browser accordingly. An action in JSF is causing me to read the bytearray data. Now I want to navigate to a new page to display or open the byte array content.

    You can access the raw servlet response object via the ExternalContext by way of the FacesContext. Then write the bytes directly to the response after setting the proper HTTP headers. Do not forget to call FacesContext.responseComplete().

  • How to concert pdf to word doc

    ?help, how to convert pdf to word doc?

    Please look at the responses to your other post about this issue.
    There is no need to post multiple times.
    This is a User 2 User forum and we are not paid like Adobe Customer Service. Please respect the volunteering of the responders time.

  • How to create pdf from word doc file

    HI
    I have a word doc file. (not docx). I have adobe 8 pro. I wrote a word script to create the file using the distiller. The fonts in the pdf file it makes look wacky. That script looks liek this:
    * create archive pdf file
    lfilename = "t:\cardeals\pdf\pdf_archive\" + PADL(alltrim(STR(month(date()))),2,"0") + PADL(alltrim(STR(DAY(DATE()))),2,"0") + SUBSTR(ALLTRIM(STR(YEAR(DATE()))),3,2) + "1.pdf"
    oWord = createOBJECT("Word.Application")
    oWord.DisplayAlerts = .f.
    oWord.documents.open('t:\cardeals\cardeals.doc')
    oword.ActivePrinter = "\\CSSSERVERONE\Overflow"
    oword.application.printout(,,,,,,,4,,,,,,,,,,,)
    oWord.PrintOut(.F.,.F.,,"c:\output.ps",,,,,,.F.)
    oPDF = CREATEOBJECT ( "PDFDistiller.PDFDistiller.1" )
    oPDF.FileToPDF("c:\output.ps", "&lfilename.", "High Quality" )
    oWord.application.quit
    release oword
    I also wrote a script to attempt to print it from the Adobe printer. It seems to work, but when I go to open the created pdf file it I get the following message:
    Acrobat could not open mypdf.pdf because it is either not a supported file type or because the file has been damaged.
    The code was this:
      Set oWordApp = CreateObject("Word.Application")
        Set oDocument = CreateObject("Word.Document")
        oWordApp.Visible = True
        oWordApp.Application.WindowState = wdWindowStateMinimize
        Set oDocument = oWordApp.Documents.Open("t:\cardeals\cardeals.doc")
        strOutputPDFName = "c:\mypdf.pdf"
        holdprtrdefault = oWordApp.ActivePrinter
        oWordApp.ActivePrinter = "Adobe PDF"
        oWordApp.Application.PrintOut FileName:="t:\cardeals\cardeals.doc", _
            Copies:=1, _
            Range:=wdPrintAllDocument, _
            Item:=wdPrintDocumentContent, _
            Pages:="", _
            PageType:=wdPrintAllPages, _
            Collate:=True, _
            Background:=False, _
            PrinttoFile:=False, _
            OutputFileName:=strOutputPDFName
    If I clkick on the PDFMaker icon iside word, the resultant file is BEAUTIFUL. Can I automate this from within word? If not, does PDFMaker have a command line utility that I could put in a batch file?

    I don't have an answer, but you might get a better response in the scripting forum.

  • How to open an emailed Word doc in Pages

    I emailed myself a Word doc from my MacBook Pro. Need to work on the doc in pages. How can I open and edit the Word doc in Pages?

    On your iPad 2 when you receive your email tap and HOLD on the attachment to reveal an Open In dialogue - select Pages and your attached Word document should open.

  • How to Open a MS-Word doc thru Java...??

    Hi,
    I have a requirement of providing a JButton in my app, upon clicking of which, i need to create a Word-Doc ( say xyz.doc & open it ( probably thru Word itself...??!!)
    Does anyone have a clue/idea as to how we could do this ??
    Thanks,
    fritz

    Try JACOB.
    http://sourceforge.net/projects/jacob-project

  • How to convert pdf to word doc

    I download a trial to see if I could convert a pdf to word and can not do it...HELP

    The Acrobat XI Pro trial can export PDF to Word.
    Use File - Save As Other.
    Of course if the PDF's content is just an image of text (such as the output of a scanner) then there is no text to export.
    Be well...

  • When I converted a file from PDF to WORD.DOC it opened as Read Only and I'm unable to alter any of the text.  How can I solve this problem?

    When I tried to convert a file from PDF to WORD.DOC it opened as Read Only and I'm unable to alter any of the text.  How do I solve this problem?  I don't know how to change it from Read Only.

    Dear Sara
    Thank you very much for sending the converted file.  Yes, I am able to edit it - that will be very useful to me and I appreciate your help.
    Referring to your previous message when you said you'd converted via Acrobat and not Acrobat.com, I'm converting via Acrobat.com because that's the only option that is shown (how do I convert via Acrobat? - perhaps that would be more successful).  I'm using the Export PDF website, and the OCR is enabled to "Recognize text in English UK".  However, I've just tried converting a different LPA pdf form, this time for Health & Welfare https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/245571/LPA114_He alth_welfare_LPA.pdf and again I have the same problem as before.  I've altered it from "Read only" and thought I'd then be able to enter text, but "Drawing Tools" is shown in the pane and I'm unable to enter anything onto the form - everything appears to be in images.  Also, the lettering on the heading of' page 1 has become jumbled, with the word "Public" overlaying the word "Guardian."  Any suggestions as to what it is I'm doing wrong would be welcome - I don't like to be beaten!
    Regards,
    Judith.

  • How can I use Automator to open and save Word docs with links?

    Hi-
    I'm having trouble building a Workflow to open and save Word docs with links.
    My Workflow so far:
    1. Get Finder items
    2. Copy Finder items (to new folder)
    3. Rename selected items
    4. Open selected items (Word docs)
    Three problems occur.
    The first is a Word 2004 problem -- I can't get the warning "This document has links in it; do you want to open it with/without updating the links" to go away (Unilke the Macro warning toggle capability, there is nothing in the Preferences for Word 2004 that addresses the links warning, as far as I can tell; any insight you can shed on this would be terrific.)
    The second problem happens with Automator: if I manually accept the update of the first document's links, Automator opens that document but then halts completely, even though I've instructed it to open multiple documents.
    The third problem I have is that there's no Finder action in Automator that allows me to save the document that's now open (as far as I can see).
    Any suggestions for how to fix? If I can get this to work, and scheduled in iCal, it will be an unbelievable time saver.
    Thanks,
    Jeremy
    PowerPC G5   Mac OS X (10.4.6)  

    Hi there Jeremy,
    to do this you are going to have to add in some Run AppleScript steps...
    These will rely on GUI Scripting. So first you need to activate GUI Scripting.
    Now we need to add in a Run AppleScript action to the end of your workflow...
    This will replace your current number 4 in the workflow (Open Selected...)
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">on run {input, parameters}
    set allItems to every item of input
    repeat with currItem in allItems
    tell application "TextWrangler"
    open currItem
    end tell
    activate application "TextWrangler"
    tell application "System Events"
    tell process "TextWrangler"
    delay 2
    --when the Word document is opened I have told it to press okay !
    --I don't know what key you want it to press in the dialog box
    keystroke return
    delay 2
    --save the doc
    keystroke "s" using command down
    delay 5
    --close the doc
    keystroke "w" using command down
    end tell
    end tell
    end repeat
    return input
    end run</pre>
    The above script should open each Word Document, press a button in the dialog box then do a save and then close the doc...then loop through the rest of them.
    You need to replace the name Text Wrangler with Microsoft Word (or whatever it is called!), I don't have it on my Mac.
    You will have to let me know what button needs pressing in the first dialog, if it isn't the 'highlighted ' one then we will have to amend the script...
    regards
    Ric

  • How do I change a Word doc to a PDF doc?

    How do I change a Word doc to a PDF doc?

    See http://forums.adobe.com/docs/DOC-3582

  • How do I convert a WORD doc to pdf on my Mac

    How do I convert a WORD doc to pdf

    Easiest way if you have Word installed: from Word's File menu, do "Save as..." and you will find a pdf option in the "Format" pull-down:
    The example is from Office:Mac 2008; should be similar in Office 2011.

  • How do i convert a pdf to word doc so i can make changes?

    how do i convert pdf to word doc using the trial download?

    A "picture".
    Be well...

  • After i convert a pdf to word doc, how do i save it in Word so i can change?

    after i convert a pdf to word doc, how do i save it in Word so i can change?

    A "picture".
    Be well...

  • Will I be able to open my 2004 word docs in Lion using Pages?  How about Powerpoint using Keynote?

    Will I be able to open my 2004 word docs in Lion using Pages?  How about 2004 Powerpoint using Keynote?

    KT35 wrote:
    My word 2004 won't open, it says you can't open the aplication Microsoft Word because power PC applications are no longer supported". How can I get it to work?
    You can't.
    The components of MS Office 2004 (which includes Word 2004) are PowerPC apps. In order to run PowerPC apps in Snow Leopard and earlier on an Intel Mac required the assistance of Rosetta software. Lion does not support Rosettta, so such apps can not be used in Lion.
    In order to use your documents in Lion, you will need to -
    • update the apps to a current version, ones which do work in Lion
    • migrate the docs to other compatible apps which do run in Lion, such as Pages.

  • IE will not open a pdf or word doc

    IE will not open a pdf or word doc
    I’m trying to make a quick cd for a portfolio
    What I’m having trouble with is I have only 2 buttons
    and one opens a pdf and the other opens a word doc. With firefox
    the buttons work with IE they don’t.
    I used set nav bar image in the behaviors to create the
    button, I even tried just linking it using the properties. Also
    tried linking in fireworks.
    I will be putting the file on cd with a autorun
    Thanks for any help

    Enter the text of the IE error message at this link, to see
    if Microsoft has a fix
    http://search.microsoft.com/search.aspx?mkt=en-US&setlang=en-US

Maybe you are looking for

  • Mac OS X 10.5.2 On a Macbook

    Hello, dont know if this is the right place to put this but here we go. since i installed the new upgrade for mac (10.5.2), which btw was 180MB instead of the 340MB that some posted, now my mac is using the fan pretty much all the tim. dont know if t

  • How do I convert a Dutch pdf document to Word ?

    How do I convert a Dutch pdf document to Word ?

  • Displaying Customer/Vendor's name on QA32 screen...

    Dear All Any suggestions on how to display the Customer's name/ Vendor's name on QA32 screen? Is there any user exit to make this happen? I don't want to go for the Z Transaction. If you can help me with the standard Tcode viz. QA32 then please reply

  • Open PDF with Bookmarks showing

    Is there any way you can set up a PDF so that the document automatically opens with the Bookmarks pane open? Thank you, A.

  • Windows 7 64Bit. APPCRASH on opening a Form

    hi, I am setting my Windows 7 64Bit environment to work with Oracle Developer Suite 10.1.2.0.2, connected to a 10.2.0.1.0 DB. Everything seems to work with Reports Builder, but not yet with Forms. When I double click on a .fmb file, a appcrash raises