How to give link to a word document

Hi,
i want to give link to a word document or want to open a word document on button click like we do in html by using anchor tag.I have used java swing for gui.
can anyone help me
Thanks in Advance

**  Here is a pure Windows solution
**  Run the code and you will be taken to a tutorial that may provide
**  a more generic solution
public class WindowsProcess
     public static void main(String[] args)
          throws Exception
          String[] cmd = new String[4];
          cmd[0] = "cmd.exe";
          cmd[1] = "/C";
          cmd[2] = "start";
          cmd[3] = "http://www.javaworld.com/javaworld/javatips/jw-javatip66.html";
//          cmd[3] = "notepad";
//          cmd[3] = "abc.xls";
//          cmd[3] = "a.html";
//          cmd[3] = "file:/c:/java/temp/a.html";
          Process process = Runtime.getRuntime().exec( cmd );
}

Similar Messages

  • How to give link to SharePoint 2013 document library column to open its form?

    Hi All,
    I have Infopath document library form, now i want to give link to a specific column to its own item. How to achieve this? Thanks in advance!

    Hi Sam,
    To make the custom field to act as the Name field in the list view, I recommend to use JSLINK to achieve what you want.
    Below is the code example for the js file:
    (function () {
    var overrideCtx = {};
    overrideCtx.Templates = {};
    overrideCtx.Templates.Fields = {
    'Services': { 'View' : CustomLink }
    SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);
    function CustomLink(ctx){
    var link = ctx.CurrentItem["FileLeafRef"];
    var value =ctx.CurrentItem["Services"]
    var html="";
    if(value!="")
    {var html= "<a href='"+link+"'>"+value+"</a>";}
    return html;
    After writing the js file, you need to upload the file to SharePoint and then refer to it in the list view web part.
    http://www.learningsharepoint.com/2012/08/03/sharepoint-2013-using-js-link-to-add-javascript-to-listviewdataview-webpart/
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How to restrict Firefox to open word document in browser window with href

    How to restrict firefox to open word document from a website link to open in the browser window, instead it should open in native program.
    1.I have tried other website, and have clicked on similar links they are opening word document correctly in native program
    2. MS word document from one specific site is opening in browser causing junk character in place of word document.
    Could you please help on this.

    Thanks for your response...
    But As i said, I have tried with other website on the same browser, there it is opening word document in native program. Also the above mentioned options have been tried earlier.
    I have some questions related to this?
    How is this href link is behaving differently opening in browser for mozilla only. Technically, Can we make it open it native program only? If so, then how?

  • Create link to Microsoft Word document

    Hi All!
    I'm using Frame 7.2 and WebWorks just so you know that my file is being converted to html.
    I am trying to create a link to a Word document, that shows a Word icon (not the title of the document) with a pop-up (mouseover) that describes the "action" (something like: to open the worksheet, click here.)
    Any ideas?
    Cindy

    Hello CindyLL,
    You might try the following (assuming that you use WebWorks 2003)
    1. Use a special paragraph format in FM for paragraphs that contain such a link (e.g. "Link_PDF")
    2. In WWP2003 map a special WebWorks Format to this FM Format
    3. In the macro tab of this FM format add html code that
    * displays a word icon
    * and give it an alt-text that says "Click the link" or whatever
    Hope this helps,
    Franz.
    [SYSTEC - the document processing company.]
    [excessive signature deleted by host]

  • How can I change a Microsoft Word document file into a picture file?

    How can I change a Microsoft Word document file into a picture or jpeg file? I am wanting to make the image I created my background on my macbook pro.

    After I had the document image the way I wanted it, I saved it as a web page and went from there. Below are the steps starting after I did the "save as" option in Word:
    1) Select "Save As Web Page". I changed the location from documents to pictures when the window came up to save it as a web page.
    2) Go to "Finder" on you main screen, or if it's on your main toolbar at the bottom.
    3) Click on the "Pictures" tab and find the file you just re-saved as a web page. (I included "web page" or something similar in the new title so I could easily find the correct file I was looking for)
    4) Open the correct file and then "right click" on the actual image. (Use 2 fingers to do so on a Mac)
    5) Select 'Use Image As Desktop Picture", and voilà! The personally created image, or whatever it is that you wanted, is now your background.
    **One problem I encountered while doing this is that the image would show up like it was right-aligned in relation to the whole screen. The only way I could figure how to fix this was to go back to the very original document in Word, (the one before it was saved as a web page), and move everything over to the left.
    I hope this helps someone else who was as frustrated as I was with something that I thought would have been very simple to do! If you have any tips or suggestions of your own, please feel free to share. : )

  • Converting a document with multiple links to a word document

    I am trying to convert a PDF file with multiple links to a word document.  When the conversion is complete and the document is saved as a word document I cannot access the links - I keep getting error messages or messages that say a program is not associated with the link.

    Hi laytonbarb,
    We would like to help!
    Are they hyperlinks? If so - you will want to insert the links back in. If they are full links do they match the links on the pdf?
    Looking forward to hearing back from you!
    Regards, Stacy

  • How to copy NCLOB value(Contains Word Document) into file system

    How to copy NCLOB value(Contains Word Document) into file system or display in sqlplus

    The UTL_FILE package will write it only to text file not(NCLOB Value[containts images as well as text])

  • How do I transfer powerpoint and word documents to my ipad with the new itunes?

    how do I transfer powerpoint and word documents to my ipad with the new itunes?

    Have a look at the following:
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1

  • How can i open microsoft office word documents on my ipad 4 and edit it.

    How can i open microsoft office word documents on my ipad 4 and edit it. How to transfer my scaned documents on it

    There are a number of apps that are compatible with Office documents. Apple makes iOS versions of their own iWork apps (Pages, Keynote, Numbers) that are available free if you purchase a new iOS device and that can be purchased separately for older devices. There are also 3rd party combined suites that cost less than the separate Apple apps. Ones often recommended include Documents 2 Go,  Quickoffice and Office2 HD.
    If you can accept needing a network connection whenever you want to use the apps and have an Office 365 subscription, Microsoft has just released their Office Mobile app, though it has significant limitations. Or a server-based solution such as CloudOn might be an option for you.
    Regards.

  • How can i view a downloaded word document in pages?

    how can i view a downloaded word document in pages?   i tried to download a file, which worked, but i can't view it since i don't have word office

    Not sure what you are saying but Pages just opens Word documents, drag the Word document onto Pages' icon.
    Or open the Word document from the Open dialog.
    If you are talking about testing a Word document after you have exported it from Pages then you will need of course to have Word to open it but there are free clones of Word as well such as LibreOffice, Openoffice and Neoffice that will do that as well.
    Peter

  • How can 2 user edit 1 word document at the same time

    hi,
    in office 2013 professional plus, can 2 user edit 1 word document at the same time?

    Hi,
    As far as I know, multiple users can not edit Word file in the same time directly. Could you give me your demand?
    Please check the two follows workarounds if they are helpful:
    http://blogs.msdn.com/b/johnmullinax/archive/2010/04/19/co-authoring-how-two-people-can-edit-one-word-2010-doc-at-the-same-time.aspx?Redirected=true
    http://www.ehow.com/how_7229904_allow-word-document-same-time.html
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Regards,
    George Zhao
    TechNet Community Support
    Hi
    thank you; its worked.
    I'm so excited about this; thank you again.

  • Link to open Word document

    I am creating a document system with RoboHelp 6. I'd like to
    create a link that would open a word document that is our business
    template. This needs to open the Word program and then open the
    document file.
    Is this possible? How?

    OK I just checked our intranet and it does in fact work the
    same way as the web. Click on a link to a doc file and you get a
    dialogue box asking if you want to open in Word or save the file,
    that happens in both Firefox and IE and both give the user the
    option to always open such files in whichever way they choose. That
    option can be disabled though by the Administrator.
    So what you want can be done. You might want to add a note to
    the link. Otherwise it is a training matter.
    Hope that helps.

  • How do you hook a MS Word document to a page in my Site?

    Hello there,
    I have several documents in MS Word that I would like visitors to be able to read them.
    How to link the documents, do they have to be in a certain place (ie data base) to be referenced?
    Thank you very much in advance.

    You can embed the Word document (also text, PDF and HTML documents) into an iWeb page with an iFrame code and an HTML snippet like in this demo page: Scrolling Text Box. The Word document is at the bottom.
    OT

  • How to save Charts to a word document using LabVIEW Report Genereration toolkit?

    I just started using the LabVIEW Report Genereration toolkit, but I can't figure out how to save Waveform Charts (one dimensional data versus time, instead of Graphs) to a Word document. Can somebody give a suggestion? Thanks!

    Nina,
    In MS Word, you have 2 options when you select Insert Object:
    Microsoft Excel Chart
    Microsoft Graph 2000 Graph
    If you select Insert Picture, you can choose Chart. This is the same chart as when you select Microsoft Excel Chart.
    To insert this chart, you will use Word Insert Graph.vi. This VI calls Word_Insert_Chart.vi, that uses ADO object Graph.Chart and its properties and methods.
    From the Microsoft Help:
    Create a chart by using Microsoft Graph
    When you create a chart by using Microsoft Graph, a chart and its associated data are displayed in a table called a "datasheet."
    Zvezdana S.
    National Instruments

  • Using Hotspot to link to a word document

    Hi,
    I was wondering does anyone know when I use a hotspot how when somebody can click on the hotspot that a word document or one alike will open once the hot spot has been clicked on.
    Thanks

    When you make a hotspot, you can provide the Link in the Properties panel. This is the URL of the file that you want the hotspot to be linked to. You can link to Word documents, but they are not Web documents and won't open in browsers. They would have to be downloaded. (Of course, you have to upload the file to your site, first.)

Maybe you are looking for

  • Hard Disk Upgrades on Satellite 2410

    I know that I can just stick any drive that will fit in, but my question is: Can I just use the recovery CD that came with my laptop to re-install windows XP onto the new hard disk, or do I have to get a seperate copy of XP? The model of laptop is a

  • How can I get the No. of package and requesting system name in user exit?

    Dear all, Is there anybody knowing how to obtain the extracting package number and requesting system name in the user exit "EXIT_SAPLRSAP_002" ? here is detail on my questions as below: For package number. If extracting 100,000 records of 0MATERIAL_T

  • Write off Stock at Subcontractor End

    Hi Experts, We want to write off the stock lying at stock subcontractor end in SAP thru Physical Inventory Adjustment.  No storage location is assigned to subcontractor stock in SAP. Therefore we are finding it difficult to do it thru MI01, MI04, MI0

  • Ejecting a dvd from a pdf file

    A friend gave me a dvd that needed a pdf file to open. Now I cannot find anyway to eject the dvd. How do I get it out of my computer?

  • How to print in portrait format with iPhoto 8.0.2 (iLife '09)?

    I found the File menu in iPhoto 8.0.2 is missing the Page setup option. When I try to print a vertical picture (portrait format) on an A4 paper sheet with my Epson Stylus Photo R320, the preview box in the Print window shows the picture correctly fil