wordpress hit counter
Welcome to OpenXML Developer Sign in | Join | Help

How to print a .docx OpenXML format document from server

Last post 02-09-2010, 8:44 AM by TXTextControl. 3 replies.
Sort Posts: Previous Next
  •  02-05-2009, 2:58 PM 4030

    How to print a .docx OpenXML format document from server

    Hi,

    To avoid the server side automation issues in MS Word, we opted for doing the automation using OpenXML in .docx (MSWord 2007) format file.

    We are able to create the document as per our requirement by modifying document.xml and the (.docx) file is succussfully created .

    Now the issue is, we need to print the .docx document which is in server. Is it possible to do that  without using word interop?

    Is it possible to load the document.xml in .HTML format to load in Internetexplore browser and use the print option of browser.

    Can somebody give some approach for this scenario?

    Thanks

    Ariharaselvan

     

  •  03-11-2009, 10:38 PM 4256 in reply to 4030

    Re: How to print a .docx OpenXML format document from server

    I'm unsure of any other tools that would allow you to print directly at this stage.

    However for transforming an OpenXML document into HTML I would highly recommend looking at the OpenXML Document Viewer on Codeplex. Currently in CTP it sets out to open standard OpenXML documents (.docx, .xlsx, etc) using a browser based plugin (demonstrated in Firefox here). You should be able to print directly from the browser in that case as the document is rendered as standard HTML.

  •  04-12-2009, 7:50 AM 4470 in reply to 4256

    Re: How to print a .docx OpenXML format document from server

    Hi brycet

    Thanks, This is what exactly i was expecting. In fact i started preparing my own XSLT :). This tool saved lo......t of my work. I am calling this tool through my code and opening the converted html in my browser with a print button.

    Thanks for your help

    Ariharaselvan.s

     

     

  •  02-09-2010, 8:44 AM 8136 in reply to 4470

    Re: How to print a .docx OpenXML format document from server

    Honestly speaking, there is no good way to print the document. Converting to HTML doesn't make sense - you will loose your document (page orientation, headers and footers). MS Word automation is not an alternative. My suggestion: Use our component TX Text Control .NET Server that can be used for both: Creating the document and printing the document without MS Office.
View as RSS news feed in XML