Search code examples
vb.netvisual-studio-2008crystal-reports

Create word report programatically using crystal report on VB.net


Can i create a word report programatically using crystal report on visual studio ?? is there any api to do this ? like using apache poi api in java ?? code to set text, and create document as the example in the link http://tkgospodinov.com/writing-microsoft-word-documents-in-java-with-apache-poi-part-2-creating-tables/


Solution

  • You can export the crystal report to word by adding this code:

       YourReportObject.ExportToHttpResponse(ExportFormatType.WordForWindows, Response, True, "FileName")