Printing word document

Hi
Can any one help how to print multiple documents using java,
can we print word document using java
thanks in advance

Hi there
I have tried this code to print the word:But it display nothing.So i want to know that what's wrong with my code.Thanks for any suggestion.
using RasterEdge.Imaging.Basic;
using RasterEdge.Imaging.Basic.Core;
using RasterEdge.Imaging.Basic.Codec;
using RasterEdge.Imaging.MSWordDocx;
namespace RE__Test
public partial class Form1 : Form
public Form1()
InitializeComponent();
public static string FolderName = "c:/";
private void button1_Click(object sender, EventArgs e)
RasterEdgeImaging Word = new RasterEdgeImaging();
public void WordProcessorPrint();
WordInputFile = (@"C:/1.docx");
WordPageNumberStart = "1";
WordPageNumberStop = "4";
Printer = (@"C:/ HP Color LaserJet Pro M1213nf");
Word. Word Processor Print(@"C:/1.docx", "0","4", @"C:/ HP Color LaserJet Pro M1213nf");

Similar Messages

  • Pages won't print Word documents

    All of a sudden I can't seem to get Pages to print Word documents. Pages documents print fine, but if I send a Word document to the printer, the printer seems to start, but then never prints. I have an Epson Stylus C86. This problem only happens in Pages and only with Word documents.
    Any ideas?

    Since it only happens with Word docs, I'm wondering if it's a font issue. For the sake experimentation, try highlighting the entire doc, and change fonts, then try printing again.
    -Dennis

  • Adobe Pro - will not print word documents to pdf.. keeps crashing

    Hello,
    I have Acrobat Pro and when I try to print Word documents it says printing... and then crashes. The window to select the name of the pdf to print to never pops up. The Word program crashes and reopens. The print icon appears on the system tray and just says spooling.
    I am using Word 07.
    Acrobat Pro was working fine to print PDF's on this version of word for a few months then for some reason it just stopped.
    When I print PDF's from existing PDF's it works fine.
    I have tried to repair the program but it did not help.
    Any ideas?
    Thanks,
    Miguel

    If you are having problems creating a PDF, there are two steps you should do FIRST
    Go to the appropriate vendor web site and apply all updates to the program you are using (several recent messages have concerned problems with MS Office conversion, with the response that different versions of Office have different BUGS that must be fixed by a download from Microsoft - and MS Office products are not the only ones which may, from time to time, need to be updated to work properly)
    Apply all updates IN NUMBER ORDER
    Acrobat Update http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows

  • Trying to print word document in postsript format it gives invalid flavor

    I want to print word document in PDF format or post script format.I have installed PDF writter .This gives exception -invalid Flavor
    Please help me how shall i correct this
    import java.io.*;
    import javax.print.*;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.*;
    import javax.print.event.*;
    public class PrintPage {
    public PrintPage() {
    public static void main(String[] args) {
    try {
    // Open the image file
    InputStream is = new BufferedInputStream(new FileInputStream("E:/a.doc"));
    // Find the default service
    DocFlavor flavor = DocFlavor.INPUT_STREAM.POSTSCRIPT;
    PrintService service = PrintServiceLookup.lookupDefaultPrintService();
    // Create the print job
    DocPrintJob job = service.createPrintJob();
    Doc doc = new SimpleDoc(is, flavor, null);
    // Monitor print job events; for the implementation of PrintJobWatcher,
    // see e706 Determining When a Print Job Has Finished
    // PrintJobWatcher pjDone = new PrintJobWatcher(job);
    // Print it
    job.print(doc, null);
    // Wait for the print job to be done
    // pjDone.waitForDone();
    // It is now safe to close the input stream
    is.close();
    } catch (PrintException e) {
    e.printStackTrace();
    } catch (IOException e) {
    e.printStackTrace();
    }

    This mean your printer did not support this DocFlavor.
    Try to find what DocFlavor your printer support.
    // Just check the default one
    PrintService service = PrintServiceLookup.lookupDefaultPrintService();
    DocFlavor[] flavors = service.getSupportedDocFlavors();
    for (int i = 0; i < flavors.length; i++) {
    System.out.println(flavors.toString());

  • Acrobat Pro XI Will Not Print Word Document with a Rotated Table

    I have a MS Word document that is mostly text, but include a table that has been rotated in a text box to fit on the page.  When I try to print to PDF using Acrobat Pro XI, the document crashes at the page the table is on.
    I have tried several attempts to print using the Acrobat Printer, convert to PDF feature and trying to print just the page alone.  Acrobat will simply not print word document with a rotated table.
    Any idea how to fix this?
    Word 2013, Windows 7, Acrobat Pro XI 11.0.06

    In the full document, the print to PDF goes only as far as the table, then ends - not printing the table.  The remaining pages are not printed.
    For example, I have trimmed the file down to just the table page, and included links to it, and a copy of the PDF it generated.
    https://dl.dropboxusercontent.com/u/60543835/Forums/Table%20Sample_140903.docx
    https://dl.dropboxusercontent.com/u/60543835/Forums/Table%20Sample_140903.pdf
    The error message I now get when I try to print is: "There is not enough memory or disk space to repaginate or print this document."
    However, with the Task manager open, the memory never seems to get above half of the available (the graph bar fluctuates a little, but stays stable")
    The page prints to a regular HP or Xerox printer with no problems. 

  • Printer will not print word documents or documents from internet however does a test print

    My printer will not print word documents or documents from the internet.  However it does complete a test print.  I have uninstalled and reinstalled printer.  I have disabled and enbled the firewall and have run the test doctor programme, which has been unable to identify any problems.  I have a HP deskjet 3050A all in one J611 series printer.

    Sorry that you are having a problem with printing word documents and internet. 
    Are you connected USB or wireless?
    You can try to download an alternative driver and check to see if that works. (Shane_R) has a great post on how to do so. 
    The deskjet 990c is usually the better one. 
    http://h30434.www3.hp.com/t5/Printer-All-in-One-So​ftware-Drivers-e-g-Windows-8/How-to-Assign-Alterna​...
    **Click the KUDOS star on the left to say 'Thanks'**
    Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.

  • I can print word documents but can not print email messages

    i can print word documents but can not print email messages
    I am using an officejet 4500 wireless on  Windows 7

    I called HP and after being on the phone for 1 1/2 hrs  They reinstalled my printer and I printed an alignment page without then I tried to print arouble  I was also able to scan a page to HP.      When I tried to print something from my email  it barely printed 2 faded lines and that was it  I openrd my word documents and was able to print a clear copy.  HP told me my cartrige was empty so I changed my cartridge with no results it was the same.  I use refill  CATRIDGES AND NEVER HAD ANY PROBLEMS but they told me they can ruin a printer.  I told them I would purchease new HP cartridges and they we agreed they would call me back on Monday to determine if my problems were solved with the new cartridges.  What I don't understand is how I can print documents but not emails.   HELP

  • Printing Word Documents on HP Deskjet 5150

    I have a G4 flat panel iMac connected to a HP deskjet 5150 printer. When I try to print Word documents, it will only print a single page of multipage documents. If I want multiple copies of a single page document, it will only print one copy. All other applications print without problem.
    I have reinstalled the drivers and that has not solved the problem.
    Any help would be appreciated.
    iMac G4   Mac OS X (10.3.9)  

    Hi Georgia and others,
    I have a similar problem - but printing from Word to a HP DeskJet 960 printer.
    It dones not seem to be a problem with all documents here, but since I yesterday used several hours trying to figure out what caused the problem I want to share my experiences with you. I had the same problem with another document on the same printer some moths ago (but not on our Laser printers at my company office).
    I installed the newest printer driver from HP (several times) with no effect. After opening the document and saving it to a ".txt" document - without any formatting - the whole document got printed! This is not a real solution in most cases, as one loses all the formatting etc. But it indicated to me that the printer worked and communicated with word. Also it was possbile to print (other) documents without any problems to the same printer, at the same time.
    So have you tested different documents on your printer?
    I'm wondering if this indicate that the problem is hidden somewhere in something inside Word/Office and it's communication to the printer - as I have seem someone reporting similar problems with printing from Excel? (something with some "codes" in specific documents?).
    Also, I have seen an update from Apple on some issues with printing from Preview - so I was also wondering if the use of "Show quick Preview" in Word/Office does has something to do with this problem? Has anyone tried to de-select this feature before trying to print? (I deleted the problematic document and can not re-create the problem currently).

  • Just installed 10.6. Unable to print word document with outline numbering

    Just installed 10.6.8. Can't print Word document with outline numbering.

    You mean USB HUBs, correct? Not routers.
    Yes remove the HUBs and try the drives connected directly to the computer.

  • I cannot print word documents but can print all other documents

    Since updating my virus checker I cannot print word documents. I can print all other documents

    At this point my suggestion is to do a full uninstall of the old print driver and an install of the most recent version print driver which you can obtain at:
    http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=228&lc=en&cc=us&dlc=en&sw_lang=&product=40664...
    Please follow the uninstall procedure before installing the new driver.
    Regards,
    Eric
    I am an HP employee.

  • Problems printing word documents

    Hello
    My friend as a powerbook and a HP printer, and is having problems printing word documents, nothing shows up in preview when you press print just a blank page pops out. You can print pictures fine from iPhoto, any ideas?
    Popping over tomorrow to see if I can get it working. My friend emailed a document and I had no trouble printing it.
    Paul.

    Hello MaradaMMA,
    Welcome to the forum.
    Can't test at the moment, but, if after clicking the print
    button, in the option tab, can you select "as laid out on screen",
    then click Print?
    Hope this works, if not, please post back
    Regards,
    Brian

  • Why can't I print WORD documents created on my MACBOOK from a PC?

    Our daughter is unable to print documents created on her MACBOOK from a PC.  She has been saving her documents as WORD files, but the PCs in the university computer lab still do not recognize the document, and consequently she cannot print them from the computer lab PC.
    We have experienced the same difficulty when creating a document on the MACBOOK, saving as a WORD document, then sending it as an e-mail attachment.  The friends who receive the document on a PC cannot open these documents.
    Any suggestions?

    Reset iCloud sync state
    On Mac:
    Close open applications
    Open a Finder window
    Choose “Go to Folder…” from the “Go” menu
    Enter “~/Library/Application Support/”
    Find the folder named “Ubiquity” and move it to the Trash
    Restart your computer

  • Printing Word documents to PDF from Office Web Apps Server 2013 yields inaccessible PDF files

    I have Office Web Apps Server 2013 SP1 with March 2015 CU applied. The version shows up as "15.0.4569.1506" using Todd Klindt's
    method. When anonymous users view the Word documents online through the Office Web Apps, they have an option to print them to PDF. The PDF file that gets generated as a result isn't accessible
    (i.e. it isn't WCAG-compliant). using Adobe Acrobat Pro to check it I can see that it is missing tags, for example. The source Word document was made fully accessible from the point of view of Microsoft Office accessibility tools.
    When viewing the same document in Word Online in Office 365, I get an extra option  "Download as PDF". The PDF document produced is accessible. If I save a Word 2013 document as a PDF from within the Word editor, it also generates accessible
    PDF.
    I was wondering if the reason for the accessibility problem that I have misconfigured my on-premises Office Web Apps,  or perhaps the accessibility compliance isn't built in yet. If the latter is true, I was wondering if someone could indicate whether
    or not this is on the list of upcoming CUs.
    thanks in advance. 

    Just check my WAC install, no this is likely an Office online only feature, at least at this point in time.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Printing Word document as pdf files whilst  retaining active internal links

    Hi,
    I have a Word file (Word 2004 for Mac Version 11.3.5) with active links to various sections within the document.
    However, when I print this as a pdf file all the links become inactive. Is anyone aware of a way to prevent this?
    Kind regards,
    Damon

    I tested this problem and got some interesting results. First of all, I created a document in Word 2004 (11.3.5) with two links, one to an external web site and the other to another Word document on my Mac. I then printed the file to pdf and opened the doc in Preview. Neither links were active, although as you have seen they look like a hyperlink. Opening the same document in Acrobat 8, the external link works but the internal link is still not active.
    Next, I printed the Word document via the Adobe PDF 8.0 driver. The same result occured as above. The external link was active in Acrobat but not Preview, while the internal link was no good for either application.
    I did some searching. Mactopia has no mention of this problem. There is a posting on Macosxhints with the same problem, but no fix. So unless someone else out there has an answer you may be out of luck for your internal link...

  • Print word document attached to an order

    my requirement is to print the sap script for the PM order and as well as word documents attached to the order.
    for an order, for an operations when PRT tools selected
    word documents attached to it.
    i need to print those word douments attached to PRT tools for an oparation.
    pgm used is RIPRJT00
    form PM_COMMON
    i am able to oepn the documents attached to the order in PRINT PREVIEW.
    when choosing print option it goes to update termination
    Ajay

    In order to save any type of document on your phone you need to have an app that supports that form of document.
    There are several word processing apps but I prefer Pages.  Buy this app. Once it is on your phone you can tap the Word document in your email to view it then tap the Share icon and Open in Pages.
    If you edit the document and email it you will have the choice to send it as a Pages document, a Word document or a PDF file.

Maybe you are looking for

  • Exchange 2010 SP3 - Delete messages in a folder

    Hi We have an Exchange 2010 SP3 server. One user has a folder ("Inbox\Firewall Alerts") containing about 300,000 messages. How can I use PS to delete all messages older than 10 days in this folder? Best regards Harald

  • Changing music library from broken external to a second external

    My itunes library is(was?) housed in an Iomega external drive.  It's on the fritz...dunno what's up.  I back that drive up every couple of weeks to another external drive...a Seagate. Not the library per se, but all the band folders.  So, all the son

  • DOM XML parser program

    Hi, I am trying to write a sample program using DOM xml parser in java to read the values in a XML file. please suggest me what are all the things I have to do for that. I know Java and XML. I want to know how to access values from XML file in java.

  • HT1351 device not listed in itunes

    on my work computer I cannot get my Nano to list under device. The Sync option is greyed out.  The driver is up-to date in device manager, and shows up as a removable storage device.

  • When MS does updates, why does HP Envy want to do a restore?

    Whenever my MS Windopws 7 OS does an upgdate (security or what ever), my HP Envy wants to do a system restore. This is the only computer I have ever had this happen on. If I let it do the restore, the MS wants to do the update again. Way is this occu