While there is no built-in capability to export documents created by XtraReport to *.doc, *.docx or *.odt file formats, you can accomplish this task by means of the RichEditDocumentServer .
The attached sample illustrates how to add custom bar items to the File Export drop down menu and export a report to these file formats using the RichEditDocumentServer.
Question Comments
Added By: Craig la Buscagne 1 at: 2/22/2013 10:50:04 AM
Do you perchance have an example of this in VB.NET ?
Thanks
Added By: Anastasius at: 2/25/2013 5:42:00 AMIf i use the RichEditDocumentServer, i lose all PageHeaders. Because you export it als html (only "one" page header) and import it again.
If i export it as rtf, and import it in your RichEditDocumentServer i lose all formats and text "positions" (Formating).
Any idea how i can export and import the XtraReport an also the nessesary Page headers?
Added By: Amrit Singh 1 at: 10/21/2013 11:45:19 AMHi --
Is there an answer for Anastasius's question because I've just boarded the boat he is in. According to the logic you've mentioned below in your solution, You're first exporting the report to html and then saving it as doc or docx which generates the data correctly but I get only one table for all the sections in a report. I want different headers(tables) so I could later modify(add/delete columns and rows in separate tables in separate sections) them per my needs . That was the whole requirement behind needing a report export to doc and docx. Please suggest a solution and also please let me know when DevExpress is coming up with an integrated export to Doc and export to Docx features? In which release? Because that would eliminate lots of code in my application.
Thanks Much
Amrit Singh
Hello,
This works for ShowPreviewDialog but how the ShowRibbonPreview for RibbonControl in an MDI window?
Thank you for your help.
Added By: Anders Wang at: 8/22/2014 7:22:08 PMFor simple Report, It is ok. But the problem for report have many tables, after use this way the layout are not acceptable. We see many persons here posted this kind of request for many years. We all know that doc is MS private format. It is difficult to do that. But for docx, it is open standard and published by ms in 2006, they have open sdk. There're also many opensource ooxml library. Is it possible to implement docx first? Many other reporting tools,eg, fastreport,activereport,txcontrol,aspose,ssrs already have this functionality. Could you please take this into account? Thanks a lot for your great help.
Added By: Ingvar (DevExpress Support) at: 8/25/2014 2:09:14 AM Hi Anders,As you know, we are keeping to the WYSIWYG concept, which cannot be properly achieved using OpenXML definition in certain circumstances. We do understand that this is a "must have" export format, but I cannot give you any promises right now.
I want to thank you for your feedback. We greatly appreciate it.Added By: Anders Wang at: 8/29/2014 8:15:21 PM
Hi,
I think not all the certain circumstances you said will be a problem for all of users of this product. So, Please just go ahead first. Of course, you are keeping to WYSIWYG concept, But not all of us need it, i also see you said WYSIWYG concept for a long time. But it is not the one what we needed at current and there 're also many places need to be improved before its popular and been accepted. Currently, no any WYSIWYG product can meet my company's requirement for reporting in the market. All of our complex testing/inspection report is generated by pure code. Because the format is so complex. I see this feature were requested so many years by users here. Why you guys can ignore it year by year. Each time the answer is no immediate plan or estimated time to implement it. We all really appreciate your carefully consideration about the voices of us.
Thanks a lot for your great help.
Added By: Ingvar (DevExpress Support) at: 9/1/2014 6:02:04 AM Thank you for the explanation, Anders. We will definitely take your feedback into account when planning new features.