I am generating my Report using DevExpress third party tool. my requirement is i have to print report in editable word document that end user can edit text and print.
DevExpress has a sample on how to export to doc/docx: http://devexpress.com/Support/Center/Example/Details/E4530
Needs DevExpress version 2012.2.6 to work though. If you don't have that version I think you need to check for other solutions.
You can use XtraReport.ExportToRtf(). See here for the documentation
Microsoft Word will open and save an .rtf document without any problems. If you really need the output in .doc or .docx format, have a look at this answer.
Related
I'm trying to export a Crystal Report to .docx format but after a quick search through the web i found some relatively old sites where it was said that Crystal Reports doesn't support .docx but only .doc.
Is this still true?
Best regards,
Rafael Valente
Unfortunately the old boards are correct, you can't export to docx. To kind of get around this and get a workable view within Word I export as an HTML file that can be opened in Word then I resave it as docx.
What this does is gives me a better representation of the report as it is in Crystal. If I go doc and save as docx I get some weird anomalies.
I hope this helps. I would have wrote this as a comment however, I don't have enough reputation score to do that yet.
I'm currently working with Microsoft.Office.Interop.Word to open a .docx file and convert to PDF. In order to do that, I'm doing this :
Opening the .docx file with Microsoft.Office.Interop.Word.Documents.Open()
Exporting this document as a PDF with Microsoft.Office.Interop.Word._Document.ExportAsFixedFormat()
I used this method ("Call the Protect method of the Microsoft.Office.Interop.Word.Document that you want to protect") : https://msdn.microsoft.com/library/ms178793(v=vs.110).aspx
I have my PDF file, but I can open it in Microsoft Word and edit it... I don't want this PDF to be editable and I must use Word automation to make the PDF.
My question is in the title:
How to disable Word 2013 PDF edition?
It's not possible to change the way Word converts to PDF. There are some options that can be set, using the method you use, but the basic code can't be changed. If you want special things it might be worthwhile to invest in Adobe Acrobat and/Or its API. Since PDF is Adobe's file format its product will have all the special things - it doesn't license some of these things to third parties (such as Microsoft).
I am using Microsoft.ReportViewer to display SSRS reports from my C# desktop application. The ReportViewr by default provides the 3 modes of export features, 1. Excel. 2. Word, 3. PDF. Now we want another export capability of RTF. Does any one have any idea how to convert the SSRS reports to RTF format?
SQL Server Reporting Services does not support RTF as a rendering format out of the box. If you want this functionality you have two options:
1) Develop a custom rendering extension
or
2) Buy a third-party solution, for example this one
If you can export it to a word file, you can use the word interop to read the file, select all, copy and paste to a richtextbox. You can get the rtf format from the RTF property of the richtextbox.
I have a doc file with picture and table and want to show it in C# form. when i load it in richtextbox the table is not showing correctly
how can i solve this problem ?
A real doc file much more than rtf which is the format the richtextbox understands.
IF you really need to display (perhaps edit or convert to PDF...) a doc file then you will need to use some 3rd-party component like Aspose.Words...
Another option - although only for desktop applications and requiring Word to be installed would be to use Office Automation - see
http://msdn.microsoft.com/en-us/library/dd264733.aspx
C# office 2010 automation
http://www.codeproject.com/KB/office/ms_office_automation.aspx
I'm creating a RDLC report in C#. Is it possible to insert the content of a Word 2003 document (with formatting) in it (either in design time or programmatically) before exporting to PDF. The final result will be a PDF file containing the initial report (fields from database) and the Word document content following it.
Why this? I need to give the user the possibility to fill a form, attach a word document and export the all to PDF as I described earlier (ASP.NET). I don't have Word installed on the server so I can't Interact with its COM objects.
Thank you.
Which format does the word document use? If it's .docx, you can try going with the Open XML SDK from Microsoft.
Not sure about how to import the formatting.
This question was asked a long time ago, so I doubt this answer will be of much use to the OP, but if someone else stumbles across this as I did...
...I would think it should be fairly easy using a 3rd party component to convert the doc to an image and then use that in the RDLC without much hassle at all.