APPLET + HTML WORD DOC

I created a servlet class which would return a page ( applet + html ) to the client.
Now I want to create a URL link in this page, allowing the client to download this page to his computer.
How can I do this? Actually, the file can be of any type. The most important thing is that they can download it and save the page in their computers.
What do I need to accomplish this?
Thanks.

                   response.setContentType("application/octet-stream");
          String filename= "whatever you.like";
          response.setHeader
              ("Content-Disposition","attachment; filename=\""
               + filename + "\";"
               );And do not forget to use the outputstream (and not the writer).

Similar Messages

  • Preserving HTML links when converting Word docs

    I created a document in MS Word for Mac 2011 (ver 14.5.2)
    When I used Adobe Pro 11 to convert the document into pdf format, all the HTML links are lost. 
    I have tried converting from MS Word, opening the word version with Adobe Pro, printing from MS Word to pdf.  Nothing works. Even opened the MS Word document using Apple's Pages software, re-formatted and then converted to pdf.  Still no live links.
    Best work around so far is to convert and then use the edit feature in Adobe Pro to re-insert the HTML links as invisible rectangles on top of the still-blue-and- underlined text.  So to the user it looks like the html links are still live, but what a pain for editor.
    I have seen this issue raised in other posts, but none of the answers seem to work. And the work around described above is clearly less than ideal.
    Very curious, as reading other posts, the issue apparently does not arise when the word doc converted from a Wintel computer.  But I can't imagine Adobe writes software one way for Intel and another for Mac.

    Imagine it. this has been 15 year fued between Microsoft and Adobe.  Adobe Claims that Mac office doesn't hav ethe proper hooks for URLs. Microsoft says the fault is with adobe.
    Since a Word Created file will work when opened in the windows version  and saved as a PDF, the links work just fine. Just opening and not saving, but converted to Pdf does nothing to the actual Word File.
    They had it fixed last year  in Acrobat X if your dropped the file on to Acroabt directly. But broke it again with the upgrade to XI.
    IF you have iWork and Open the word file in Pages then exported as a Word.docx file then create The PDF the links will become active.  Also if you Open in OpenOffice and export as docx file the resulting PDF when open in Word and PDF is Created the links will become active.
    If you have neither you will have to open the PDF and add the links. Note the Links will be hot (active) but the links will not turn Blue and  be Underlined
    Mac Office2011 is a Conversion of Office2010/2007 code.  So there should be no pproblem.
    Also Don't use the Save As . . .  PDF Method. Instead go to Print Menu  click on PDF wait for context menu > the choos Adobe Quality PDF or Adobe PDF (uses Adobe's PDF engine).
    wait for next screen that shows qualtity leave as sent unles you need specific job options. click okay then next screen File name. Rename as necessary the browser to desired to location then click save.  Or you can drop the saved Word document (with Word quit.) on to Acrobat and after a minute or so the PDF will be created. (Using this method in AcrobatX would actully show URL s or Mailtos as active - They broke this in Acrobat XI PDF still can be created but hot links no longer work).
    Well it seems it does work on occasion  see: http://www.screencast.com/t/cib2kcYG

  • Table data in html from word doc

    I have a nice looking invoice word doc I would like to use to make a apex report. The word doc has a table with all the numeric data for the invoice, pretty simple. I saved the word doc as html and used a program to strip all the excess html. I put the html into a apex report as a html region and it looks perfect. What is the best way to get SQL data into the html table in the region.
    Do I have to create a SQL region and then put the html data into the header and footer, am I missing something simple?
    Thanks

    794181,
    I'd take the HTML and use it as the framework for a named column template. This will allow you to put the data from your query in to the exact spots it needs to go.
    To make a named column template, go to shared components, templates, create, report; for "Template Type:", select "Named Column (row template)".
    Named column templates are fairly easy to set up, but that also seems to mean that it's hard to find documentation for them. Basically, define your query, and then use #<COLUMN_NAME># in your HTML, replacing <COLUMN_NAME> with the actual names of the columns from your query.
    Oh, and generally, you won't want to set up a column heading template in your named column template--I almost always just fill in Row Template 1, Before Rows, and After Rows.
    -David

  • Problems importing a Word doc into Robohelp HTML

    I have a 116-page Word document with 13 chapters. When I
    import this document into Robohelp HTML as a winhelp output file,
    only two topics are created, rather than 13. On the Conversion
    Options window, I select to have new topics created by Word style
    "Heading 1" which are my chapter titles. Why doesn't Robohelp
    create the topics, and what should I change to faciliate that?
    Also, why don't my numbered lists from Word stay numbered in
    Robohelp? Is there a way to automate numbered lists?

    Thanks for your reply.
    When I insert .gif files JDeveloper ends with a message saying "Process exited with exit code 0". I then go and check in the database and I find the image added to the table.
    With a word doc, JDeveloper does not give that message. No message at all regarding what the status of the process is. And the document is not added to the database. No error messages too. Could this be an issue with Oracle?

  • Reading a multilevel list from MS Word Doc and converting it into an HTML nested list using C#

    I can achieve the above for a single level list as follows:
    foreach (Paragraph item in app.Selection.Range.ListParagraphs)
    item.Range.InsertBefore("<li>");
    item.Range.InsertAfter("</li>");
    Using C#, how can I programmatically convert a multilevel list (like the following) in a Word doc to a nested HTML list? Note: The bullet icons are not important. Thanks..Nam
    List from Word Doc:
    A
    B
    C
    D
    E
    F
    G
    H
    I

    Hi Nam,
    >>how can we programmatically determine the start and end elements of the sub-list with elements C,DE,F,G in the example of my original post? <<
    We can check the begin and end elements of the sub-list by the
    ListLevelNumber. For example, the sub-list's ListLevelNumber start at 2 by default. Here is the code to find the begin element for your reference:
    Sub FindBeginSubElement()
    For i = 1 To Selection.Range.ListParagraphs.Count
    If Selection.Range.ListParagraphs(i).Range.ListFormat.ListLevelNumber = 2 Then
    Debug.Print "begin sub element:" & Selection.Range.ListParagraphs(i).Range.Text
    Exit Sub
    End If
    Next i
    End Sub
    Also we can loop the selection in reverse order to find the end element for the sub-list.
    Hope it is helpful.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • MS-Word Doc to Filtered HTML Conversion

    Hi Dear all
    In my application i want to convert MS Word Document to Filtered Html (Since there are two options available in word that is save as webpage and second one save as webpage filtered what i need is the html generated by saving a word doc as web page filtered). However i want that my application that is java based should do it automatically so that the user need not to first convert it into filtered html and then open in my app.
    so please is there any way or apis or components available that can automatically convert a word doc to filtered html in java. i need urgent help in this regard
    thanks

    Maybe this can help: [http://poi.apache.org/]
    I haven't looked at it to much.
    Edited by: Farmor on Jul 24, 2008 8:51 AM

  • I don't own a MAC. I can probably use one at the library. I am trying to publish my book with Apple's ibooks, etc. Since my files are in Word.doc or html; how can I format my book so as to publish it?

    I don't own a MAC. I can probably use one at the library. I am trying to publish my book with Apple's ibooks, etc. Since my files are in Word.doc or html; how can I format my book so as to publish it?
    www.amessageforthehumanrace.org

    Use an aggregator and follow their instructions for formatting.

  • Early Watch not Producing Word.doc, or HTML Reports

    Hello all,
    I've managed to maintain the SDCCN, and the jobs associated with producing an Early Watch.
    However, the process isn't producing any attachments, including a word doc, or an HTML report.
    Oddly, in the operations screen from the CEN, I'm not able to view the report session at all, despite the Early Watch report being in the monitored system as a tree structure.
    When trying to view the session through the operations screen in solution overview, the system throws that it cannot be viewed:
    Cannot open session
        Message no. DSWP033
    Even odder is that the icon (the two bottles) suggests "Data has been transferred".
    Any suggestions would be most helpful.
    Message was edited by:
            Kenneth P

    In case any searches on this and needs a solution...
    Believe it or not, the error was b/c of the >decimal< settings in my user ID.  How very odd.
    However, if you continue to get odd messages, please make sure that your user is set to display with decimals between powers of 10, and commas between powers of 1/10th.
    ie 100.100.100,000

  • I have a brand new macbook pro 15" with latest Lion.Can anyone tell me why, when I open word or preview etc that multiple files open?For eg if I open a word doc, the last 1-3 docs that I have worked on all open. why?

    I have a brand new macbook pro 15" with latest Lion. Can anyone tell me why, when I open word or preview etc that multiple files open?For eg if I open a word doc, the last 1-3 docs that I have worked previously on all open. Can anyone tell me why?

    You have a choice as to whether or not applications in Lion like Word or Preview (or even Safari) save and re-open previous documents or windows... just hold down the option key while quitting a program and when you re-open it you won't get the previous documents or windows when you re-open the application. You can see this by selecting the open program in the menu bar and when holding down the option key the quit function will change to quit and discard open windows. This feature in Lion is referred to as "Resume" and is great if you want to restart an app and return to what you're doing (for example in Safari re-opening existing windows and tabs from your previous session). You still have the option to close individual windows within an app before quitting and they will not re-open when the app is launched again.
    This Resume function is not related to saving your work (a word or text document for example). This is handled by Lion's "Auto-Save" and "Versions" functions. See http://www.apple.com/ca/macosx/whats-new/auto-save.html
    Hopefully this is the complete answer you're looking for.

  • How do I convert a word doc to pdf?

    I cannot seem to convert a word doc to a pdf- it keeps taking me back to the subscription page and I already have signed up for that. HELP!

    Hello Saundra,
    I'm sorry to hear you're having trouble.  Could you post a screenshot of what you see when you try to log in here: http://createpdf.acrobat.com/signin.html ?
    -David

  • Unique issue with PDF to WORD .doc conversion with Acrobat Pro - any ideas?

    I have been unable to solve the following issue when converting (save as...) PDF documents to Microsoft Word .doc using numerous methods. This could either be an issue that would be fixed in Acrobat Pro itself, or in MS Word - posting to the Adobe forums first.
    PREFACE: I am attempting to use the converted .doc file with translation applications/software. Google Translator Toolkit is what I use the most, but ALL other translators are having this very same issue with the .doc file. --The source PDFs are product information from drug manufacturers in various countries that I need to have translated to English. I do not have access to their source documents, as they do not provide their own source docs for obvious reasons.
    ALSO: I cannot use Google Translator toolkit to translate from PDFs directly - if you do that, it will attempt to translate a PDF and then export in an .html file, but it does not get the exact spacing of the sentences correctly, which leads to errors in translating - key things such as "can take with alcohol" and "do not take with alcohol". So that's out!
    I am not having any problems with the resultant .doc file in MS Word itself. It looks right, the spacing matches the original PDF source perfectly, prints correctly, etc... Reference here on a product info sheet from Austria in German:
    The problem: This is a screenshot from Google Translator Toolkit - the right side of the image - the spacing in the lettering from the .doc file I am uploading is not being read correctly, resulting in untranslated gibberish. (Note: this isn't a problem with the translation applications or software -- all are having this issue with .doc files converted from .pdf - this issue isn't present with any old .doc file that wasn't converted from a .pdf) -- It's definitely got something to do with some kind of embedded data in the .doc file that I cannot isolate!!)
    My settings in Adobe Pro (convert from PDF to .doc):
    Page layout: Flowing Text (this prevents the resultant .doc from having all of those text boxes, which also don't then work in translators)
    Include comments: True
    Include images: True
    Run OCR if needed: True
    Notes:
    -I have run OCR text recognition on the source PDF files in it's specific language.
    -I have edited the accessibilty of the PDF and have run the tag recognition and quick checks (to see if they solved the issue, which it did not - tagged or untagged, same problems!)
    -I have exported the .doc BACK to PDF using MS Word's function, which results in a great looking tagged PDF. THEN I re-saved this new PDF back as a .doc - same issue.
    -I have tried saving the PDF in all of the other formats that the translators accept. All have different issues. The only one that works consistently is saving to a .txt (plain)... The best is a .doc to .doc conversion, with all the original spacing. (I am not spending hours reformatting a .txt translation in word)...
    I can't seem to find where this spacing data is in the .doc file!!!! (Changing the fonts, sizes, margins -- doesnt fix this either). I have tried so many methods...
    Any thoughts on other things to try in Adobe Pro (or Word)?
    EDIT: Here's an additional tidbit of info that may be the key to this... There's some kind of coding that is in the .doc that Adobe Pro converted from the source PDF that doesnt display in Word, but that is being seen by the translation programs....... I have no idea what these are, but I want to remove them!
    Message was edited by: KaotikADC

    I would suggest you look at the fonts that are being used. It may be a font issue that is not properly being read by the translation program.

  • Remove Header and footer from Word Docs

    Is it possible to remove the header/footer from Word docs?
    The html output from ctx_doc.markup gets the header/footer and (specialy)page numbers all messed up.
    []'s
    thanks

    Please define 'messed up'. I'll reproduce here and then try to find a cause/solution. I checked a couple of other forums and Metalink with no good discussion on the topic.
    -Ron

  • Word Docs with Macros

    Can anyone tell me if Word Doc Macro's will work when loaded into Stellent? I would like to let publishers use Macro's, as it will cut back on HTML coding steps. But I can't get it to work.
    Am I forced down the HTML route? I want to create text sections that can be hidden or shown at the touch of a button.
    Thanks
    JD

    It is not possible to run a macro in SharePoint after the document has been uploaded. 
    You can replicate this scenario by creating a SPItemEventReceiver which will run customized code on ItemAdded in your document library. 
    Please go through the following articles for details:
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spitemeventreceiver.aspx
    http://msdn.microsoft.com/en-us/library/office/ms437502%28v=office.14%29.aspx
    Please don't forget to mark it answered, if your problem resolved or helpful.

  • Unable to convert Microsoft Word doc. to PDF in Words (there is no response)

    Unable to convert Microsoft Word doc to PDF in Words (Does not respond) or Create PDF from a Word doc. in Adobe Acrobat X Standard 10.1.1 with all updates installed. I receive apop-up saying "Missing PDF Maker Files: Dou you want to run the installer in Repair Mode"  I have done this several times. I have un-installrd and re installed the program twice. Still does not work. I'm running Windows 7 Home version and Microsoft Office XP 2002. This is a brabd new Acrobat program right out of the box. Suggestions Please.

    In WORD 2002, I believe you can only print to the Adobe PDF printer. I think that WORD 2003 is the first compatible with AA X. Check out http://kb2.adobe.com/cps/333/333504.html.

  • How do I go about to convert a PDF file to a Word Doc?

    How do I go about to convert a PDF file to a Word Doc?

    Hi Anita,
    You may want to consider subscribing to our ExportPDF service.  You can learn more here: https://www.acrobat.com/exportpdf/en/home.html
    -David

Maybe you are looking for

  • MacBook and Windows 7

    Hey guys! I managed to grab a hold of a second hand MacBook and upgrade it with a 320GB Hard disk, it all went smooth, I had to borrow someones Snow Leopard disk as the MacBook didnt come with one. But i wanted to install Windows 7 to a 30GB partitio

  • Author name changing 9.0 Pro

    Using 9.0 Pro - recently had to change from XP to 7. Initially started learning 7.0 with Account name of David - no special security. Then as I get more knowledgeable in Win 7 and IAW recommendations  I set up an "Administrator" account with PW of "D

  • Pulling row numbers out of tables.

    I have been looking for different ways to pull row numbers from tables.  There appears to be two main methods, one of which works for me and the other that does not.  The first is: NameDataSet.Tables.Rows(0).Count This gives me the number of rows in

  • [iPhone SDK] non-rectangular button with png

    Is there any way to create an image button with a png. but make it so that the transparent areas are not hittable?

  • Statistical Plant Maintenance Orders?

    Hi there, We would like to try to avoid running settlement on PM orders.  We would be happy with the accounting treatment in CO that is used on statistical Internal Orders.  ie posting goes both to the order (statistical) and cost centre (real).  How