Opening a Page in a WORD document

hello,
i can open a word file through
import java.io.;*
public class Doc
public static void main(String[] str)throws IOException
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("C:\\Program Files\\Microsoft Office\\OFFICE12\\WINWORD.exe tarun.doc");
Now can anyone please help because i want to open only a selected page of a big word document

You use winword to open your document, you do not use java.
Sure to open it you have wrapped the call in a java piece of code calling winword.
You could do the same with any language that can call winword!
Winword in is control not java.
If you want to open only one page of your document (*tarun.doc*): can you do it only from winword?
From what I understand from winword the answer is no.
If you want to only open 1 page you should not use winword and let a java reader read and interpret the coding done by Microsoft. You may be able to find libraries to do this.
But I would suggest to use open office to read it to have access to open code.

Similar Messages

  • How to get total pages from a Word Document?

    I want have created a program with ABAP, It'll print the cover page with form, the detail infomation is in a word document on a file server. I want to display the total pages in the cover page, how can I do? In another word, how to calculate the pages for a word document in sap ?

    I don't know how to use it. My test codes:
    REPORT print_via_ole_example .
    INCLUDE ole2incl .
    DATA: gs_word TYPE ole2_object ,
    gs_documents TYPE ole2_object ,
    gs_newdoc TYPE ole2_object ,
    gs_actdoc TYPE ole2_object ,
    gs_application type ole2_object,
    gs_document type ole2_object ,
    gs_docproperty type ole2_object,
    p_pages type p .
    START-OF-SELECTION .
    CREATE OBJECT gs_word 'WORD.APPLICATION'.
    SET PROPERTY OF gs_word 'Visible' = '0' .
    CALL METHOD OF gs_word 'Documents' = gs_documents.
    CALL METHOD OF gs_documents 'Open'
    EXPORTING #1 = 'd:\test.doc' .
    CALL METHOD OF gs_word 'ActiveDocument' = gs_actdoc .
    get property of gs_actdoc 'Application' = gs_application .
    get property of gs_actdoc 'BuiltinDocumentProperties' = gs_docproperty .
    get property of gs_docproperty 'wdPropertyPages' = p_pages.
    CALL METHOD OF gs_actdoc 'PrintOut' .
    CALL METHOD OF gs_documents  'CLOSE' .
    CALL METHOD OF gs_word 'Quit' .
    new-line.
    END-OF-SELECTION.
    FREE: gs_word, gs_actdoc, gs_documents, gs_newdoc .
    When run it, I can not get the total pages, and winword.exe hung up, can only be terminated in Task Manager.
    Could you help me to modify this test code?
    Thank you .

  • We are unable to open a Pages 5.0.1 document in Pages 4.2 and retain ability to edit all aspects of the document. I have tried saving the 5.0.1 version as Pages '09 and am still unable to open it in the earlier version of pages. Help?

    We are unable to open a Pages 5.0.1 document in Pages 4.2 and retain ability to edit all aspects of the document. I have tried saving the 5.0.1 version in Pages '09 but am still unable to open it in the earlier version of pages. Help?

    No, it isn't. Pages 5 isn't compatible with Pages 4.3 as it is lacking more than 90 features that Pages 4 has. So when you open a Pages 4 document in Pages 5 only the simplest documents will look the same in Pages 5.
    Pages 4 can't open Pages 5 documents at all!! You have to export back to Pages 09 as I said above.
    You probably will be more happy if you just use Pages 4 (Pages 09). There are many threads in this forum that describes the lack of compatibility between the two versions. Pages 5 is in my view not Pages anymore.
    If you don't desperately need Pages 5 for moving documents over iCloud to new iOs devices don't use it.

  • How can one print a particular page or pages from a Word Document using ActiveX or any other technique?

    I've been trying to print  a few pages from a Word document.
    Currently I am able to print the entire document using some ActiveX techniques.
    There seems to be facilities for selecting the particular pages, however so far I cannot get them to work.
    I have tried the From/To and the Pages in the PrintOut invoke node.
    And as you will see I have also tried the Range node.
    Anyone have some ideas on how to do this?
    Please see the attached vi.
    Thanks,
    Chris
    Attachments:
    ActiveX Print.vi ‏15 KB

    Please stick to your original post.
    Please have some patience.

  • On Pages 09, my word documents I've been saving it to iCloud, to access anywhere, but I would like to keep my docs organized in files on my finder as usual, and saving to iCloud, I lose my local one.How can I fix it and not desorganize my files?

    On Pages 09, my word documents I've been saving it to iCloud, to access anywhere, but I would like to keep my docs organized in files on my finder as usual, and saving to iCloud, I lose my local one.How can I fix it and not desorganize my files?

    It's either in local folders, as it seem you had been doing, or in icloud.  If you go into the mac's Pages and view the icloud files, you can drag on onto another to create a folder.  But you can only have folder one level deep, so you can't organize your files/folders like you can on a mac, using nested folder several levels deep.

  • PDF is changing all my pdf documents into a word document - My boss sent me a pdf email through outlook and when I try to open it changes to a word document

    PDF is changing all my pdf documents into a word document - My boss sent me a pdf email through outlook and when I try to open it changes to a word document Help this is so frustrating

    Hi tinam74565130,
    That does sound frustrating! It sounds as though the filename associations have become confused on your computer. You should be able to reset that easily. Here are some instructions:
    Change which programs Windows uses by default - Windows Help
    How to change the default application for a file type | Macworld
    Please let us know how it goes.
    Best,
    Sara

  • Hi, I am trying to convert my resume on pages to a word document.  When i export the file to to make it a word document ie(resume.doc) it messes up my whole resume on websites and pulls up a bunch of random words. Please help!

    Hi, I am trying to convert my resume on pages to a word document.  When i export the file to to make it a word document ie(resume.doc) it messes up my whole resume on websites and pulls up a bunch of random words. Please help!

    What exactly is the problem?
    Your description is so muddled I am having trouble working it out.
    How does your exported .doc file mess up websites? In fact what does it have to do with websites?
    Where, how and what are the random words turning up?
    Peter

  • How do I save a web page as a word document?

    I can't seem to copy a web page into a word document so I can edit it.

    Firefox will no longer allow me to copy a block of text to save it if the block goes farther down than the bottom of the screen. It used to scroll down as far as necessary while holing down the highlight button on the mouse but now stops and will not scroll with a block highlighted beyond the original screen.
    I've been using IE for the past month because firefox stopped allowing this while it still works great in IE.
    I just upgraded to firefox 5.0 hoping it would fix the problem but it did not. Guess I'll be back in the old and slow IE.

  • How do I save documents from the new Pages into a Word Document

    How do I save documents from the new Pages into a Word Document?

    Thank you so much - so simple!  I had been using the 'share' option (worked in old Pages) and only had icloud or email as options.  I have to attach word documents to emails to send to work. I don't want to use icloud because it's too public and I don't trust it.  Also, you have to be able to access the internet and I need word documents on my USB stick for work where there's no internet.
    I love my Mac but I do wish Apple would remember those of us living in less-than-perfect computer-land.
    Thanks again
    Lindsay

  • When I create a file, why does the PDF have text aligned on different pages than my word document?

    I am trying to create a PDF of a Mac Word document.  In the conversion process text seems to shift - what was on the bottom of the first page in the word document shows up on page 2 of the pdf.  Any thoughts?

    Hi svht,
    Would you send your document to [email protected] as an email attachment?
    I will check it from my end.Please add the link to this forum post for reference.
    Regards,
    Florence

  • Inserting Multiple Page PDF in Word Document

    I've been searching for an answer to what I thing ought to be a rather simple question and I can find nothing. I have a couple of users who have attempted to insert a multiple page PDF into a Word document and found that only the first page of the PDF
    shows up in their document. Is there any method to insert multiple page PDFs into Word as multiple pages without splitting the PDF into individual single page files and inserting individually?
    Thanks...Ray

    A quick and dirty way to do this is to open the pdf document in question with word separately.   You get the following warning message.
    I can then select all and copy/paste in to my word document.
    The few pdfs I tried this with pretty much turned in to all images when I did this, but it worked my purposes.
    I did end up having to resize one that didn't seem to want to fit when I pasted it in.  There may be a method to select an image and automatically fit it within the margins of the page it is on that would help that.
    The file size on my resulting word document seemed to grow quite a bit as well.  Again, not really an issue in my case though.

  • Opening 2 pages from same word processing file side by side

    I am new to Macs and not much of a computer user, however is it possible to have my second page of a word processing file open up beside the first page rather than below. I thought viewing 2 pages at once would be a nice benefit of the 20" display?
    g5isght   Mac OS X (10.4.3)  

    Yes. that's because books, magazines, etc. always begin on a right facing page. There are several ways around this. If you aren't planning to duplex or booklet print your document, the easiest way is to hit return on the first line of the first page, then go to Format>Insert Page Break, to create a new page right away, which will be a left facing page, and then the next page will be a right page so they'll appear side by side. Before printing, put your cursor at the beginning of the first real page and backspace to get rid of the fake first page.

  • Transferring iWeb page to a Word document

    I am just using iWeb for the first time. I dont want to publish what I make at all because I am just making this page for a homework assignment. How can I save the webpage in a Word document so that it is accessible to be able to save it to my files?

    I problem that I have with sending it to school is that for this project, I am using the Illinois State website. So I have basically copied the website layout, therefore I cant publish it because it would be plagarism. Plus, I cant print it out for the assignment because it has to be turned in over the Internet. Do you have any other suggestions?

  • "An Unexpected Error occured" While opening links from office 2010 Word document on windows 8.1

    Remove
    alert
    |
    Edit
    |
    Change
    type
    0
    We are on windows environment as below - 
    Server -
    - Win2k8 Std R2,
    - SQL 2008,
    - SP 2010 Foundation SP2
    Client -
    - Win 8.1 64 Bit OS,
    - Browser - IE 11
    - MS Office - 2010  - 14.0.4763.1000
    Problem - 
    While Opening links from word document(Ctrl+Click) , get error message "An Unexpected
    Error had occured". And link is not opened.
    We are using this client using remote desktop.
    Any ideas on this?
    Does Microsoft provided any fixes for this?
    shwetank

    Hi,
    Have you tried the hyperlinks in other Office programs like Outlook and PowerPoint? Do they work well?
    You may need to run the Fix it in this kb below:
    http://support.microsoft.com/kb/310049/en-us
    You can also try the steps in the section "Let me fix it myself". Although this kb is written for Outlook, it may help in your scenario as well.
    I hope this is useful.
    Regards,
    Melon Chen
    TechNet Community Support

  • If possible, How do I copy multiple PDF pages to a word document?

    I know how to take a snapshot of one PDF page at a time and copy to a word document; however, I do not know how to copy multiple PDF pages at once. Is it even possible? I would love to know if anyone has any information pertaining to my question!
    Thanks,
    Suns2006

    If it messed up the formatting, you will not be able to do more with Acrobat. Some third party products supposedly do pretty well, but that conversion may cost you as much as Acrobat.

Maybe you are looking for

  • Can't open some links please reply

    Hello When I enter a website on safari or firefox, I click some links and they open normally, but when it come to others, the cursor appears with a blue circle under it ad the link doesnt open In firefox the circle's black. Please help. It wasnt that

  • IBM M5015 firmware update on ESXi 5.5 (slow performance on controller)

    I want to try to update the firmware for this card. Can anyone help? Thank you

  • Can't download iMovie

    I have Macbook OS X version 10.6.8. I want to download iMovie but the app store is teling me that I need at least 10.8 to do it. When I go to search for software updates on my computer it tells me that everything is up to date. I tried to download Mo

  • Pls help!!! student project about IMAQ circle detection

    I am working on a school project about machine vision. Circle detection function is being used in the project. my tutor require me to explain the basic algorithm and theory used in the IMAQ circle detection. But after a extensive searching, i still c

  • Playback problems in cc

    Is anyone having problems with pans not playing back smoothly in CC?