3

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

Rafael Valente
  • 763
  • 1
  • 6
  • 13
  • AFAIK Crystal Reports does not support `docx`, only `doc` to save. You can save a report to doc, and then [convert it to `docx` format](http://stackoverflow.com/questions/34111015/convert-doc-to-docx-using-c-sharp). –  Apr 18 '17 at 11:12
  • Hi. I will do that. This seems the best solution i have found. Thank you, Rafael Valente. – Rafael Valente Apr 18 '17 at 12:46
  • There is also a free command line tool called pandoc that can convert your doc to docx -- Not sure why you need docx though... Microsoft Word and LibreOffice should be able to .doc files just fine. – Sun Apr 18 '17 at 14:47
  • Hello @Sun, I need to convert from .doc to .docx just for storage purposes. Thank you for your reply. – Rafael Valente Apr 20 '17 at 08:41

1 Answers1

4

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.

JMA.17
  • 65
  • 2
  • 9
  • Hi. I appreciate your response but i have the code built to export to .doc right now so i think that the comment from @RafaelOsipov answers my question. Thank you for your thoughts, though. Rafael Valente – Rafael Valente Apr 18 '17 at 13:27