Skip to Content
0
Former Member
Oct 17, 2011 at 09:36 PM

How to export crystal report in text file format programatically

56 Views

HI Experts,

I am trying last three days to export my crystal report in text file, using crystal report RPT i cant see the text file format. I can see the Rich text format but i want the report to export .txt format so user can view the report through notepad application.

I have tried using CRAXDRT.DLL to export the report in text fomat, i got suceed in the machine SAP is not installed but when i am trying to run the same program on the machine were SAP is installed it is giving me error "ActiveX component cannot create object" when i run the application through VB.

When i try running the code through .Net appliaction (C#/.Net) it gives me error "System.Runtime.InteropServices.COMException: Retrieving the com class factory for component with CLSID { -some ID --}" failed due to following error: 800736b1. I am not sure why it is not working i got totally lost... Can you please help to get out of this?

Can some one provide me the sample code to export the report in the text file.

Looking forward for your help!

Regards,

Naresh

Edited by: naresh2684 on Oct 19, 2011 11:10 PM